@stainless-api/docs-ui 0.1.0-beta.71 → 0.1.0-beta.73
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-Cvm5Ifm7.d.ts → breadcrumbs-Dei_5sHd.d.ts} +3 -3
- package/dist/{breadcrumbs-DA4WgDhR.js → breadcrumbs-oUp-6oJK.js} +3 -3
- package/dist/{cli-DhMMZoiU.js → cli-BX9ofVCR.js} +3 -3
- package/dist/{component-Drp93QK-.js → component-Dl5ZEHxB.js} +2 -2
- package/dist/{component-generics-t_S0Wc9i.d.ts → component-generics-C9ALAcZI.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +5 -5
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +14 -11
- package/dist/components/index.js +14 -14
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +5 -5
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +6 -6
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +4 -4
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +4 -4
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk-sidebar.js +5 -5
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +4 -4
- package/dist/components/snippets.d.ts +14 -3
- package/dist/components/snippets.js +5 -5
- package/dist/components/stl-sidebar.d.ts +1 -1
- package/dist/components/stl-sidebar.js +1 -1
- package/dist/{components-BbJAAdUU.js → components-DQPlXEwE.js} +10 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +13 -11
- package/dist/contexts/component.d.ts +15 -14
- package/dist/contexts/component.js +24 -24
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +2 -2
- package/dist/contexts/index.d.ts +14 -23
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +13 -10
- package/dist/{contexts-CVj20VV4.js → contexts-_NNW5yqC.js} +5 -2
- package/dist/{csharp-D6_jlynY.js → csharp-sn5CJu9t.js} +2 -2
- package/dist/docs-YgoQ3bzY.js +81 -0
- package/dist/{docs-CceV-0oK.d.ts → docs-x-kfjRMc.d.ts} +24 -6
- package/dist/{go-COaHV3Hc.js → go-BoaAVmP0.js} +2 -2
- package/dist/{http-DVyJ-D6t.js → http-Ccj1dOvE.js} +7 -7
- package/dist/{index-CwjGm9zX.d.ts → index-HDt5wRiR.d.ts} +47 -32
- package/dist/index-OCM-LZIo.d.ts +428 -0
- package/dist/index.d.ts +14 -17
- package/dist/index.js +26 -26
- package/dist/{java-CxGSJVvv.js → java-BiLRuLuD.js} +3 -3
- package/dist/languages/cli.d.ts +13 -11
- package/dist/languages/cli.js +15 -15
- package/dist/languages/csharp.d.ts +13 -11
- package/dist/languages/csharp.js +4 -4
- package/dist/languages/go.d.ts +13 -11
- package/dist/languages/go.js +4 -4
- package/dist/languages/http.d.ts +13 -11
- package/dist/languages/http.js +14 -14
- package/dist/languages/index.d.ts +13 -11
- package/dist/languages/index.js +23 -23
- package/dist/languages/java.d.ts +13 -11
- package/dist/languages/java.js +4 -4
- package/dist/languages/python.d.ts +13 -11
- package/dist/languages/python.js +4 -4
- package/dist/languages/ruby.d.ts +13 -11
- package/dist/languages/ruby.js +4 -4
- package/dist/languages/terraform.d.ts +13 -11
- package/dist/languages/terraform.js +4 -4
- package/dist/languages/typescript.d.ts +13 -11
- package/dist/languages/typescript.js +4 -4
- package/dist/languages-COjc0Nwx.js +30 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +24 -24
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +25 -25
- package/dist/markdown/utils.d.ts +4 -4
- package/dist/markdown/utils.js +3 -3
- package/dist/{markdown-HJXGh2Yn.d.ts → markdown-BszOPZhh.d.ts} +2 -2
- package/dist/{markdown-CTKHMLVr.js → markdown-Cq3XEhrR.js} +1 -1
- package/dist/{method-iAV6cZjF.js → method-DjzVBzZe.js} +2 -2
- package/dist/{method-DPnfsySL.d.ts → method-KkWyhvKa.d.ts} +6 -6
- package/dist/{navigation-QXH2ufM3.d.ts → navigation-BZjwfN2P.d.ts} +3 -3
- package/dist/{overview-BR3WhCoz.d.ts → overview-BNmMeDUE.d.ts} +7 -7
- package/dist/{overview-DQIrvYJr.js → overview-Clq5psZe.js} +7 -7
- package/dist/{primitives-D0h4FgbU.d.ts → primitives-B8OnSXRP.d.ts} +11 -11
- package/dist/{primitives-DJEqe_r1.js → primitives-BBUs_flm.js} +4 -4
- package/dist/{properties-CjUi1Cjx.d.ts → properties-BhlRtWo4.d.ts} +5 -5
- package/dist/{properties-PNuJPLqP.js → properties-DQU0NBzb.js} +2 -2
- package/dist/{python-DsTuWCKE.js → python-nqOBH7GS.js} +2 -2
- package/dist/{routing-C64k4fmX.js → routing-GvhEMw6E.js} +1 -1
- package/dist/{routing-utiR5mY3.d.ts → routing-qJMPICGo.d.ts} +2 -2
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{ruby-BncKp6hd.js → ruby-BBc8HdIt.js} +3 -3
- package/dist/{sdk-D3U444dU.d.ts → sdk-C8C6IRQp.d.ts} +17 -17
- package/dist/{sdk-Bw99eXxA.js → sdk-DzCHhEoX.js} +14 -8
- package/dist/{sdk-sidebar-V_MTkVw8.js → sdk-sidebar-CkjSLggl.js} +2 -2
- package/dist/{sdk-sidebar-f7SS4xxq.d.ts → sdk-sidebar-lgNmf-ns.d.ts} +3 -3
- package/dist/snippets-CLpNVNlA.js +181 -0
- package/dist/spec.d.ts +4 -4
- package/dist/spec.js +3 -3
- package/dist/{stl-sidebar-CItXFC3n.d.ts → stl-sidebar-8jF9cdnn.d.ts} +2 -2
- package/dist/{stl-sidebar-WtimNrk1.js → stl-sidebar-DC5UOJiT.js} +1 -1
- package/dist/{style-HpXpcJ9v.js → style-DJIYkFhO.js} +6 -0
- package/dist/style.d.ts +6 -0
- package/dist/style.js +1 -1
- package/dist/styles/main.css +53 -14
- package/dist/styles.css +53 -14
- package/dist/{terraform-B95X4rNK.js → terraform-DVx2ea2h.js} +3 -3
- package/dist/{typescript-n46M9OtL.js → typescript-Cmk-jBBw.js} +3 -3
- package/dist/{utils-DPbkW1Tz.js → utils-D6zJxUZ9.js} +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +2 -2
- package/dist/breadcrumbs-7G1MoVzo.d.ts +0 -25
- package/dist/component-generics-5cSjFCLn.d.ts +0 -30
- package/dist/docs---kdT2w-.d.ts +0 -48
- package/dist/docs-BmOB2f-I.js +0 -61
- package/dist/index-Bc1tYWPC.d.ts +0 -347
- package/dist/index-Cuw1pZs8.d.ts +0 -16
- package/dist/index-DIchpgQZ.d.ts +0 -16
- package/dist/index-DSeLOs29.d.ts +0 -347
- package/dist/languages-C8iNdbjN.js +0 -30
- package/dist/markdown-Cdh0TSHp.d.ts +0 -22
- package/dist/method-R97dH39J.d.ts +0 -59
- package/dist/navigation-dh0gX_lm.d.ts +0 -29
- package/dist/overview-Ddh84S6_.d.ts +0 -39
- package/dist/primitives-xbTKYFgQ.d.ts +0 -105
- package/dist/properties-q3XaAaRo.d.ts +0 -54
- package/dist/sdk-CSKStkB5.d.ts +0 -122
- package/dist/sdk-sidebar-Cf04O8rR.d.ts +0 -15
- package/dist/snippets-BehbU3rt.js +0 -164
- package/dist/snippets-CMtWGDSE.d.ts +0 -53
- package/dist/snippets-DZAozdda.d.ts +0 -53
- package/dist/stl-sidebar-DpnXVa_V.d.ts +0 -58
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
2
|
-
import { t as style_default } from "./style-
|
|
3
|
-
import { i as PropertyToggle } from "./properties-
|
|
2
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
3
|
+
import { i as PropertyToggle } from "./properties-DQU0NBzb.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import clsx from "clsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/method.d.ts
|
|
6
6
|
type MethodHeaderProps = {
|
|
@@ -16,7 +16,7 @@ declare function MethodHeader({
|
|
|
16
16
|
signature,
|
|
17
17
|
children,
|
|
18
18
|
level
|
|
19
|
-
}: MethodHeaderProps):
|
|
19
|
+
}: MethodHeaderProps): react_jsx_runtime20.JSX.Element;
|
|
20
20
|
type MethodRouteProps = {
|
|
21
21
|
httpMethod?: string;
|
|
22
22
|
endpoint?: string | ReactNode;
|
|
@@ -26,13 +26,13 @@ declare function MethodRoute({
|
|
|
26
26
|
httpMethod,
|
|
27
27
|
endpoint,
|
|
28
28
|
iconOnly
|
|
29
|
-
}: MethodRouteProps):
|
|
29
|
+
}: MethodRouteProps): react_jsx_runtime20.JSX.Element;
|
|
30
30
|
type MethodDescriptionProps = {
|
|
31
31
|
description?: string;
|
|
32
32
|
};
|
|
33
33
|
declare function MethodDescription({
|
|
34
34
|
description
|
|
35
|
-
}: MethodDescriptionProps):
|
|
35
|
+
}: MethodDescriptionProps): react_jsx_runtime20.JSX.Element | undefined;
|
|
36
36
|
type MethodInfoProps = {
|
|
37
37
|
children?: ReactNode;
|
|
38
38
|
parameters?: ReactNode;
|
|
@@ -42,7 +42,7 @@ declare function MethodInfo({
|
|
|
42
42
|
children,
|
|
43
43
|
parameters,
|
|
44
44
|
returns
|
|
45
|
-
}: MethodInfoProps):
|
|
45
|
+
}: MethodInfoProps): react_jsx_runtime20.JSX.Element;
|
|
46
46
|
type MethodProps = {
|
|
47
47
|
id?: string;
|
|
48
48
|
header?: ReactNode;
|
|
@@ -54,6 +54,6 @@ declare function Method({
|
|
|
54
54
|
children,
|
|
55
55
|
className,
|
|
56
56
|
...props
|
|
57
|
-
}: MethodProps):
|
|
57
|
+
}: MethodProps): react_jsx_runtime20.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { MethodHeaderProps as a, MethodProps as c, MethodHeader as i, MethodRoute as l, MethodDescription as n, MethodInfo as o, MethodDescriptionProps as r, MethodInfoProps as s, Method as t, MethodRouteProps as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-qJMPICGo.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime94 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/contexts/navigation.d.ts
|
|
6
6
|
type NavigationHandler = (ev: React$1.MouseEvent | null, opts: {
|
|
@@ -24,6 +24,6 @@ declare function NavigationProvider({
|
|
|
24
24
|
selectedPath,
|
|
25
25
|
onNavigate,
|
|
26
26
|
children
|
|
27
|
-
}: NavigationProviderProps):
|
|
27
|
+
}: NavigationProviderProps): react_jsx_runtime94.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as Method, m as Resource } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { d as Method, m as Resource } from "./index-HDt5wRiR.js";
|
|
2
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/overview.d.ts
|
|
5
5
|
type SDKResourceProps = {
|
|
@@ -9,31 +9,31 @@ type SDKResourceProps = {
|
|
|
9
9
|
declare function SDKResourceHeader({
|
|
10
10
|
resource,
|
|
11
11
|
parents
|
|
12
|
-
}: SDKResourceProps):
|
|
12
|
+
}: SDKResourceProps): react_jsx_runtime25.JSX.Element | null;
|
|
13
13
|
type SDKMethodSummaryProps = {
|
|
14
14
|
method: Method;
|
|
15
15
|
};
|
|
16
16
|
declare function SDKMethodSummary({
|
|
17
17
|
method
|
|
18
|
-
}: SDKMethodSummaryProps):
|
|
18
|
+
}: SDKMethodSummaryProps): react_jsx_runtime25.JSX.Element;
|
|
19
19
|
declare function SDKResource({
|
|
20
20
|
resource,
|
|
21
21
|
parents,
|
|
22
22
|
showModels
|
|
23
23
|
}: SDKResourceProps & {
|
|
24
24
|
showModels?: boolean;
|
|
25
|
-
}):
|
|
25
|
+
}): react_jsx_runtime25.JSX.Element;
|
|
26
26
|
type SDKOverviewProps = {
|
|
27
27
|
resource: Resource;
|
|
28
28
|
};
|
|
29
29
|
declare function SDKOverview({
|
|
30
30
|
resource
|
|
31
|
-
}: SDKOverviewProps):
|
|
31
|
+
}: SDKOverviewProps): react_jsx_runtime25.JSX.Element;
|
|
32
32
|
type SDKRootProps = {
|
|
33
33
|
stainlessPath: string;
|
|
34
34
|
};
|
|
35
35
|
declare function SDKRoot({
|
|
36
36
|
stainlessPath
|
|
37
|
-
}: SDKRootProps):
|
|
37
|
+
}: SDKRootProps): react_jsx_runtime25.JSX.Element | null;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { SDKResource as a, SDKRoot as c, SDKOverviewProps as i, SDKRootProps as l, SDKMethodSummaryProps as n, SDKResourceHeader as o, SDKOverview as r, SDKResourceProps as s, SDKMethodSummary as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
1
|
+
import { i as useDeclaration, m as useSpec, s as useLanguage } from "./docs-YgoQ3bzY.js";
|
|
2
|
+
import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
|
|
3
3
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
4
|
-
import { t as style_default } from "./style-
|
|
5
|
-
import { i as PropertyToggle } from "./properties-
|
|
6
|
-
import { p as parseStainlessPath } from "./routing-
|
|
7
|
-
import { s as Markdown } from "./primitives-
|
|
8
|
-
import { r as getResourceFromSpec, t as flatResources } from "./utils-
|
|
4
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
5
|
+
import { i as PropertyToggle } from "./properties-DQU0NBzb.js";
|
|
6
|
+
import { p as parseStainlessPath } from "./routing-GvhEMw6E.js";
|
|
7
|
+
import { s as Markdown } from "./primitives-BBUs_flm.js";
|
|
8
|
+
import { r as getResourceFromSpec, t as flatResources } from "./utils-D6zJxUZ9.js";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { ChevronRight } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/primitives.d.ts
|
|
6
6
|
type JoinProps = {
|
|
@@ -12,7 +12,7 @@ declare function Join({
|
|
|
12
12
|
items,
|
|
13
13
|
limit,
|
|
14
14
|
children
|
|
15
|
-
}: JoinProps):
|
|
15
|
+
}: JoinProps): react_jsx_runtime30.JSX.Element[];
|
|
16
16
|
type ExpanderProps = {
|
|
17
17
|
id?: string;
|
|
18
18
|
open?: boolean;
|
|
@@ -28,19 +28,19 @@ declare function Expander({
|
|
|
28
28
|
virtual,
|
|
29
29
|
muted,
|
|
30
30
|
children
|
|
31
|
-
}: ExpanderProps):
|
|
31
|
+
}: ExpanderProps): react_jsx_runtime30.JSX.Element;
|
|
32
32
|
declare function VirtualExpander({
|
|
33
33
|
id,
|
|
34
34
|
open: isOpen,
|
|
35
35
|
muted,
|
|
36
36
|
summary,
|
|
37
37
|
children
|
|
38
|
-
}: Omit<ExpanderProps, 'virtual'>):
|
|
38
|
+
}: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime30.JSX.Element;
|
|
39
39
|
declare function Markdown({
|
|
40
40
|
content
|
|
41
41
|
}: {
|
|
42
42
|
content: string;
|
|
43
|
-
}): "" |
|
|
43
|
+
}): "" | react_jsx_runtime30.JSX.Element | undefined;
|
|
44
44
|
type BadgeProps = {
|
|
45
45
|
id: string;
|
|
46
46
|
children?: ReactNode;
|
|
@@ -48,7 +48,7 @@ type BadgeProps = {
|
|
|
48
48
|
declare function Badge({
|
|
49
49
|
id,
|
|
50
50
|
children
|
|
51
|
-
}: BadgeProps):
|
|
51
|
+
}: BadgeProps): react_jsx_runtime30.JSX.Element;
|
|
52
52
|
type TooltipProps = {
|
|
53
53
|
content: ReactNode;
|
|
54
54
|
children: ReactNode;
|
|
@@ -56,7 +56,7 @@ type TooltipProps = {
|
|
|
56
56
|
declare function Tooltip({
|
|
57
57
|
content,
|
|
58
58
|
children
|
|
59
|
-
}: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
59
|
+
}: TooltipProps): string | number | bigint | boolean | react_jsx_runtime30.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
60
60
|
type LinkProps = {
|
|
61
61
|
stainlessPath?: string;
|
|
62
62
|
scroll?: boolean;
|
|
@@ -67,7 +67,7 @@ declare function Link({
|
|
|
67
67
|
scroll,
|
|
68
68
|
children,
|
|
69
69
|
...props
|
|
70
|
-
}: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> |
|
|
70
|
+
}: LinkProps): string | number | bigint | boolean | react_jsx_runtime30.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
|
|
71
71
|
type InputProps = {
|
|
72
72
|
left?: ReactNode;
|
|
73
73
|
right?: ReactNode;
|
|
@@ -79,7 +79,7 @@ declare function Input({
|
|
|
79
79
|
ref,
|
|
80
80
|
className,
|
|
81
81
|
...props
|
|
82
|
-
}: InputProps):
|
|
82
|
+
}: InputProps): react_jsx_runtime30.JSX.Element;
|
|
83
83
|
type ToggleButtonProps = {
|
|
84
84
|
children?: ReactNode;
|
|
85
85
|
selected?: boolean;
|
|
@@ -89,7 +89,7 @@ declare function ToggleButton({
|
|
|
89
89
|
selected,
|
|
90
90
|
ref,
|
|
91
91
|
...props
|
|
92
|
-
}: ToggleButtonProps):
|
|
92
|
+
}: ToggleButtonProps): react_jsx_runtime30.JSX.Element;
|
|
93
93
|
type ListViewProps<TItem> = {
|
|
94
94
|
items: Array<TItem>;
|
|
95
95
|
itemDelegate: (item: TItem, selected: boolean) => React.ReactNode;
|
|
@@ -100,6 +100,6 @@ declare function ListView<TItem>({
|
|
|
100
100
|
itemDelegate,
|
|
101
101
|
onSelectListItem,
|
|
102
102
|
...rest
|
|
103
|
-
}: ListViewProps<TItem>):
|
|
103
|
+
}: ListViewProps<TItem>): react_jsx_runtime30.JSX.Element;
|
|
104
104
|
//#endregion
|
|
105
105
|
export { Join as a, ListViewProps as c, ToggleButtonProps as d, Tooltip as f, InputProps as i, Markdown as l, Expander as n, Link as o, VirtualExpander as p, Input as r, ListView as s, Badge as t, ToggleButton as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { l as useSettings, s as useLanguage } from "./docs-
|
|
1
|
+
import { l as useSettings, s as useLanguage } from "./docs-YgoQ3bzY.js";
|
|
2
2
|
import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
|
|
3
|
-
import { a as useRenderMarkdown } from "./markdown-
|
|
4
|
-
import { t as style_default } from "./style-
|
|
5
|
-
import { s as generateRoute } from "./routing-
|
|
3
|
+
import { a as useRenderMarkdown } from "./markdown-Cq3XEhrR.js";
|
|
4
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
5
|
+
import { s as generateRoute } from "./routing-GvhEMw6E.js";
|
|
6
6
|
import { Fragment, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import clsx from "clsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime40 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):
|
|
10
|
+
}: PropertyToggleProps): react_jsx_runtime40.JSX.Element;
|
|
11
11
|
type PropertyDescriptionProps = {
|
|
12
12
|
description?: string;
|
|
13
13
|
};
|
|
14
14
|
declare function PropertyDescription({
|
|
15
15
|
description
|
|
16
|
-
}: PropertyDescriptionProps):
|
|
16
|
+
}: PropertyDescriptionProps): react_jsx_runtime40.JSX.Element | undefined;
|
|
17
17
|
type PropertyTitleProps = {
|
|
18
18
|
title?: string;
|
|
19
19
|
};
|
|
20
20
|
declare function PropertyTitle({
|
|
21
21
|
title
|
|
22
|
-
}: PropertyTitleProps):
|
|
22
|
+
}: PropertyTitleProps): react_jsx_runtime40.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):
|
|
52
|
+
}: PropertyProps): react_jsx_runtime40.JSX.Element | null;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { PropertyTitle as a, PropertyToggleProps as c, PropertyProps as i, PropertyDescription as n, PropertyTitleProps as o, PropertyDescriptionProps as r, PropertyToggle as s, Property as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as useSettings, o as useIgnoredResources, s as useLanguage } from "./docs-
|
|
1
|
+
import { l as useSettings, o as useIgnoredResources, s as useLanguage } from "./docs-YgoQ3bzY.js";
|
|
2
2
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
3
|
-
import { t as style_default } from "./style-
|
|
3
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowDownWideNarrowIcon, ArrowUpNarrowWideIcon } from "lucide-react";
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
2
|
+
import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
|
|
3
3
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
4
|
-
import { t as style_default } from "./style-
|
|
4
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -167,7 +167,7 @@ function generateRouteList({ spec, languages, excludeLanguages = [] }) {
|
|
|
167
167
|
}
|
|
168
168
|
function generateMissingRouteList({ spec, basePath }) {
|
|
169
169
|
const entries = Array.from(walkTree(spec));
|
|
170
|
-
return (spec.docs?.languages ?? ["http"]).filter((lang) => Languages.includes(lang)
|
|
170
|
+
return (spec.docs?.languages ?? ["http"]).filter((lang) => Languages.includes(lang)).flatMap((language) => entries.filter(({ data: { stainlessPath, ...rest } }) => {
|
|
171
171
|
if (spec.decls?.[language]?.[stainlessPath] === void 0) return rest.kind === "http_method";
|
|
172
172
|
return false;
|
|
173
173
|
}).map(({ path }) => `${basePath.endsWith("/") ? basePath.slice(0, -1) : basePath}/${language === "http" ? path.join("/") : [language, ...path].join("/")}`));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as Spec, d as Method, f as Model, m as Resource } from "./index-
|
|
1
|
+
import { _ as Spec, d as Method, f as Model, m as Resource } from "./index-HDt5wRiR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/routing.d.ts
|
|
4
4
|
declare namespace routing_d_exports {
|
|
@@ -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" | "
|
|
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 { S as walkTree, _ as parseStainlessPath, a as RouteEntry, b as trimStainlessPath, c as expandToElement, d as generateRoute, f as generateRouteList, g as parseRoute, h as isSupportedLanguage, i as ParsedStainlessPath, l as findNavigationPath, m as getResource, n as LanguageNames, o as SpecTreeEntry, p as getLanguageSnippet, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateMissingRouteList, x as updateHistory, y as scrollToPath } from "./routing-
|
|
1
|
+
import { S as walkTree, _ as parseStainlessPath, a as RouteEntry, b as trimStainlessPath, c as expandToElement, d as generateRoute, f as generateRouteList, g as parseRoute, h as isSupportedLanguage, i as ParsedStainlessPath, l as findNavigationPath, m as getResource, n as LanguageNames, o as SpecTreeEntry, p as getLanguageSnippet, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateMissingRouteList, x as updateHistory, y as scrollToPath } from "./routing-qJMPICGo.js";
|
|
2
2
|
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
|
package/dist/routing.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { _ as updateHistory, a as findNavigationPath, c as generateRouteList, d as isSupportedLanguage, f as parseRoute, g as trimStainlessPath, h as scrollToPath, i as expandToElement, l as getLanguageSnippet, n as Languages, o as generateMissingRouteList, p as parseStainlessPath, r as SupportedLanguageSyntaxes, s as generateRoute, t as LanguageNames, u as getResource, v as walkTree } from "./routing-
|
|
1
|
+
import { _ as updateHistory, a as findNavigationPath, c as generateRouteList, d as isSupportedLanguage, f as parseRoute, g as trimStainlessPath, h as scrollToPath, i as expandToElement, l as getLanguageSnippet, n as Languages, o as generateMissingRouteList, p as parseStainlessPath, r as SupportedLanguageSyntaxes, s as generateRoute, t as LanguageNames, u as getResource, v as walkTree } from "./routing-GvhEMw6E.js";
|
|
2
2
|
|
|
3
3
|
export { LanguageNames, Languages, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
2
|
+
import { i as useDeclaration, m as useSpec, s as useLanguage } from "./docs-YgoQ3bzY.js";
|
|
3
|
+
import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
|
|
4
4
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
5
|
-
import { t as style_default } from "./style-
|
|
5
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as ID, d as Method, f as Model, g as SnippetLanguage, o as HasStainlessPath, t as BaseDeclaration } from "./index-
|
|
2
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { c as ID, d as Method, f as Model, g as SnippetLanguage, o as HasStainlessPath, t as BaseDeclaration } from "./index-HDt5wRiR.js";
|
|
2
|
+
import { t as DocsLanguage } from "./routing-qJMPICGo.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime51 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):
|
|
36
|
+
}: SDKChildrenProps): react_jsx_runtime51.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_runtime51.JSX.Element;
|
|
47
47
|
type SDKConstraintsProps = {
|
|
48
|
-
constraints?: Record<string,
|
|
48
|
+
constraints?: Record<string, unknown>;
|
|
49
49
|
};
|
|
50
50
|
declare function SDKConstraints({
|
|
51
51
|
constraints
|
|
52
|
-
}: SDKConstraintsProps):
|
|
52
|
+
}: SDKConstraintsProps): react_jsx_runtime51.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):
|
|
59
|
+
}: SDKIconProps): react_jsx_runtime51.JSX.Element | null;
|
|
60
60
|
type SDKRequestTitleProps = {
|
|
61
61
|
snippetLanguage: SnippetLanguage;
|
|
62
62
|
};
|
|
63
63
|
declare function SDKRequestTitle({
|
|
64
64
|
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps):
|
|
65
|
+
}: SDKRequestTitleProps): react_jsx_runtime51.JSX.Element;
|
|
66
66
|
type SDKExampleProps = {
|
|
67
67
|
method: Partial<Method> & HasStainlessPath;
|
|
68
68
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
@@ -70,31 +70,31 @@ type SDKExampleProps = {
|
|
|
70
70
|
declare function SDKExample({
|
|
71
71
|
method,
|
|
72
72
|
transformRequestSnippet
|
|
73
|
-
}: SDKExampleProps):
|
|
73
|
+
}: SDKExampleProps): react_jsx_runtime51.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):
|
|
80
|
+
}: SDKMethodProps): react_jsx_runtime51.JSX.Element;
|
|
81
81
|
declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
|
|
82
82
|
declare function SDKMethodInfo({
|
|
83
83
|
method
|
|
84
|
-
}: SDKMethodProps):
|
|
84
|
+
}: SDKMethodProps): react_jsx_runtime51.JSX.Element;
|
|
85
85
|
declare function SDKMethodNotImplemented({
|
|
86
86
|
method
|
|
87
|
-
}: SDKMethodProps):
|
|
87
|
+
}: SDKMethodProps): react_jsx_runtime51.JSX.Element;
|
|
88
88
|
declare function SDKMethod({
|
|
89
89
|
method,
|
|
90
90
|
transformRequestSnippet
|
|
91
|
-
}: SDKMethodProps):
|
|
91
|
+
}: SDKMethodProps): react_jsx_runtime51.JSX.Element;
|
|
92
92
|
type SDKModelProps = {
|
|
93
93
|
model: Model;
|
|
94
94
|
};
|
|
95
95
|
declare function SDKModel({
|
|
96
96
|
model
|
|
97
|
-
}: SDKModelProps):
|
|
97
|
+
}: SDKModelProps): react_jsx_runtime51.JSX.Element | null;
|
|
98
98
|
type SDKReferenceProps = {
|
|
99
99
|
stainlessPath: string;
|
|
100
100
|
children?: React$1.ReactNode;
|
|
@@ -102,7 +102,7 @@ type SDKReferenceProps = {
|
|
|
102
102
|
declare function SDKReference({
|
|
103
103
|
stainlessPath,
|
|
104
104
|
children
|
|
105
|
-
}: 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> |
|
|
105
|
+
}: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime51.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;
|
|
106
106
|
type SDKLanguageBlockProps = {
|
|
107
107
|
language: DocsLanguage;
|
|
108
108
|
version: string;
|
|
@@ -117,6 +117,6 @@ declare function SDKLanguageBlock({
|
|
|
117
117
|
version,
|
|
118
118
|
install,
|
|
119
119
|
links
|
|
120
|
-
}: SDKLanguageBlockProps):
|
|
120
|
+
}: SDKLanguageBlockProps): react_jsx_runtime51.JSX.Element;
|
|
121
121
|
//#endregion
|
|
122
122
|
export { SDKSnippetLanguagesType as C, useStreamingResponse as D, useReferenceNesting as E, SDKSnippetLanguages as S, usePropertyModel as T, SDKModel as _, SDKChildren as a, SDKRequestTitle as b, SDKDeclaration as c, SDKLanguageBlock as d, SDKMethod as f, SDKMethodProps as g, SDKMethodNotImplemented 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, SDKModelProps as v, TransformRequestSnippetFn as w, SDKRequestTitleProps as x, SDKReference as y };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as
|
|
1
|
+
import { d as useSnippetIds, f as useSnippetResponse, i as useDeclaration, l as useSettings, m as useSpec, n as useAvailableLanguages, r as useContentPanelLayout, s as useLanguage } from "./docs-YgoQ3bzY.js";
|
|
2
2
|
import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
|
|
3
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
3
|
+
import { n as useLanguageComponents } from "./contexts-_NNW5yqC.js";
|
|
4
4
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
5
|
-
import { t as style_default } from "./style-
|
|
6
|
-
import { l as getLanguageSnippet, p as parseStainlessPath, s as generateRoute, t as LanguageNames } from "./routing-
|
|
5
|
+
import { t as style_default } from "./style-DJIYkFhO.js";
|
|
6
|
+
import { l as getLanguageSnippet, p as parseStainlessPath, s as generateRoute, t as LanguageNames } from "./routing-GvhEMw6E.js";
|
|
7
7
|
import { a as JavaIcon, c as PythonIcon, d as TypescriptIcon, i as GoIcon, l as RubyIcon, n as CSharpIcon, o as KotlinIcon, r as CurlIcon, s as PowershellIcon, t as CLIIcon, u as TerraformIcon } from "./icons-BYKn5X8E.js";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -96,7 +96,7 @@ function SDKDeclaration({ path, expand, depth = 0 }) {
|
|
|
96
96
|
const parsedPath = selectedPath ? parseStainlessPath(selectedPath) : null;
|
|
97
97
|
const modelPropSetting = settings?.properties?.includeModelProperties;
|
|
98
98
|
const inlineModelProps = modelPropSetting === "method-page" ? Boolean(parsedPath?.method) : modelPropSetting !== false;
|
|
99
|
-
const isUnion = "childrenParentSchema" in decl && decl.childrenParentSchema && ["enum", "union"].includes(decl.childrenParentSchema);
|
|
99
|
+
const isUnion = "childrenParentSchema" in decl && decl.childrenParentSchema && decl.kind !== "CLIFlag" && decl.kind !== "CLISchemaProperty" && ["enum", "union"].includes(decl.childrenParentSchema);
|
|
100
100
|
const id = model?.propertyPath ? `${model.propertyPath} + ${path}` : path;
|
|
101
101
|
const shouldExpand = selectedPath?.startsWith(path) && nesting.length < 1 || settings?.properties?.expandDepth && depth <= settings?.properties?.expandDepth && !isUnion || expand;
|
|
102
102
|
const hasChildren = "children" in decl && (decl.children?.length ?? 0) > 0 && !decl.children?.includes(path) && !(isUnion && decl.childrenParentSchema === "enum" && decl.children?.length === 1) && (inlineModelProps || !("modelPath" in decl));
|
|
@@ -105,7 +105,7 @@ function SDKDeclaration({ path, expand, depth = 0 }) {
|
|
|
105
105
|
children: ({ ...props }) => /* @__PURE__ */ jsx(Docs.Property, {
|
|
106
106
|
id,
|
|
107
107
|
expand: shouldExpand,
|
|
108
|
-
constraints: "constraints" in decl && /* @__PURE__ */ jsx(Docs.SDKConstraints, { constraints: decl["constraints"] }),
|
|
108
|
+
constraints: "constraints" in decl && decl.kind !== "CLIFlag" && decl.kind !== "CLISchemaProperty" && /* @__PURE__ */ jsx(Docs.SDKConstraints, { constraints: decl["constraints"] }),
|
|
109
109
|
declaration: /* @__PURE__ */ jsx(Lang.Declaration, { decl }),
|
|
110
110
|
title: "title" in decl ? decl.title : void 0,
|
|
111
111
|
description: "docstring" in decl ? decl["docstring"] : void 0,
|
|
@@ -180,7 +180,12 @@ function SDKRequestTitle({ snippetLanguage }) {
|
|
|
180
180
|
}
|
|
181
181
|
function SDKExample({ method, transformRequestSnippet }) {
|
|
182
182
|
const Docs = useComponents();
|
|
183
|
-
const
|
|
183
|
+
const language = useLanguage();
|
|
184
|
+
const snippetLanguage = getLanguageSnippet(language);
|
|
185
|
+
if ((useSnippetIds(method.stainlessPath, language)?.filter((id) => id !== "default")?.length ?? 0) >= 2) return /* @__PURE__ */ jsx(Docs.MultiSnippets, {
|
|
186
|
+
requestTitle: /* @__PURE__ */ jsx(Docs.SDKRequestTitle, { snippetLanguage }),
|
|
187
|
+
method
|
|
188
|
+
});
|
|
184
189
|
return /* @__PURE__ */ jsx(Docs.Snippet, {
|
|
185
190
|
requestTitle: /* @__PURE__ */ jsx(Docs.SDKRequestTitle, { snippetLanguage }),
|
|
186
191
|
method,
|
|
@@ -284,6 +289,7 @@ function SDKMethod({ method, transformRequestSnippet }) {
|
|
|
284
289
|
const Docs = useComponents();
|
|
285
290
|
const decl = useDeclaration(method?.stainlessPath, false);
|
|
286
291
|
const layout = useContentPanelLayout();
|
|
292
|
+
const defaultResponses = useSnippetResponse(method.stainlessPath);
|
|
287
293
|
if (!decl) return /* @__PURE__ */ jsx(SDKMethodNotImplemented, { method });
|
|
288
294
|
return /* @__PURE__ */ jsxs(Docs.Method, {
|
|
289
295
|
id: method.stainlessPath,
|
|
@@ -306,7 +312,7 @@ function SDKMethod({ method, transformRequestSnippet }) {
|
|
|
306
312
|
}),
|
|
307
313
|
/* @__PURE__ */ jsxs("div", {
|
|
308
314
|
className: style_default.MethodResponseColumn,
|
|
309
|
-
children: [/* @__PURE__ */ jsx("h5", { children: "Returns Examples" }), /* @__PURE__ */ jsx(Docs.SnippetResponse, { responses:
|
|
315
|
+
children: [/* @__PURE__ */ jsx("h5", { children: "Returns Examples" }), /* @__PURE__ */ jsx(Docs.SnippetResponse, { responses: defaultResponses })]
|
|
310
316
|
})
|
|
311
317
|
]
|
|
312
318
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
|
|
2
|
-
import { i as isResourceEmpty } from "./utils-
|
|
3
|
-
import { t as StlSidebar } from "./stl-sidebar-
|
|
2
|
+
import { i as isResourceEmpty } from "./utils-D6zJxUZ9.js";
|
|
3
|
+
import { t as StlSidebar } from "./stl-sidebar-DC5UOJiT.js";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
import { Badge, getHttpMethod } from "@stainless-api/ui-primitives";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as Resource } from "./index-
|
|
2
|
-
import * as
|
|
1
|
+
import { m as Resource } from "./index-HDt5wRiR.js";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sdk-sidebar.d.ts
|
|
5
5
|
type SDKSidebarProps = {
|
|
@@ -10,6 +10,6 @@ type SDKSidebarProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare function SDKSidebar({
|
|
12
12
|
resources
|
|
13
|
-
}: SDKSidebarProps):
|
|
13
|
+
}: SDKSidebarProps): react_jsx_runtime0.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SDKSidebarProps as n, SDKSidebar as t };
|