@stainless-api/docs-ui 0.1.0-beta.63 → 0.1.0-beta.65
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-hzZqGExJ.js → breadcrumbs-C22Eos5U.js} +3 -3
- package/dist/{breadcrumbs-DwldC63b.d.ts → breadcrumbs-Cvm5Ifm7.d.ts} +1 -1
- package/dist/{cli-BAhN1pvm.js → cli-C9b02R53.js} +2 -2
- package/dist/{component-Bf-__z99.js → component-B5j-H4cO.js} +2 -2
- package/dist/{component-generics-uYXTXWFi.d.ts → component-generics-DBuEnCtJ.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 +2 -2
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +11 -11
- package/dist/components/index.js +10 -10
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +2 -2
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +3 -3
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +1 -1
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +1 -1
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk-sidebar.js +2 -2
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +1 -1
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +1 -1
- package/dist/components/stl-sidebar.d.ts +2 -2
- package/dist/components/stl-sidebar.js +1 -1
- package/dist/{components-CwIKWfid.js → components-C4bGzXqr.js} +9 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +11 -11
- package/dist/contexts/component.d.ts +14 -14
- package/dist/contexts/component.js +21 -20
- 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 +10 -10
- package/dist/{csharp-BD37FKH6.js → csharp-Ckuihkec.js} +1 -1
- package/dist/{docs-Chc8A7zc.d.ts → docs-CMkfabi3.d.ts} +3 -3
- package/dist/{go-v-i4WDzK.js → go-DrZxKwGv.js} +1 -1
- package/dist/{http-BKoVLcpv.js → http-BoZv04yo.js} +33 -4
- package/dist/{index-Dz6SFEud.d.ts → index-BYTDY59Z.d.ts} +10 -10
- package/dist/{index-DuHyTVVD.d.ts → index-CwjGm9zX.d.ts} +33 -2
- package/dist/index-DCqDybi3.d.ts +345 -0
- package/dist/index.d.ts +16 -16
- package/dist/index.js +23 -22
- package/dist/{java-A6j1NMJ7.js → java-DB33acTL.js} +1 -1
- package/dist/languages/cli.d.ts +11 -11
- package/dist/languages/cli.js +12 -12
- package/dist/languages/csharp.d.ts +11 -11
- package/dist/languages/csharp.js +1 -1
- package/dist/languages/go.d.ts +11 -11
- package/dist/languages/go.js +1 -1
- package/dist/languages/http.d.ts +11 -11
- package/dist/languages/http.js +11 -11
- package/dist/languages/index.d.ts +12 -12
- package/dist/languages/index.js +21 -20
- package/dist/languages/java.d.ts +11 -11
- package/dist/languages/java.js +1 -1
- package/dist/languages/python.d.ts +11 -11
- package/dist/languages/python.js +1 -1
- package/dist/languages/ruby.d.ts +11 -11
- package/dist/languages/ruby.js +1 -1
- package/dist/languages/terraform.d.ts +12 -0
- package/dist/languages/terraform.js +9 -0
- package/dist/languages/typescript.d.ts +11 -11
- package/dist/languages/typescript.js +1 -1
- package/dist/languages-ZaloBYTK.js +30 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +21 -20
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +22 -21
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/{markdown-CoIy7fea.d.ts → markdown-9xLfF9XX.d.ts} +2 -2
- package/dist/{method-Bt3V4B4q.d.ts → method-BwXzL3P1.d.ts} +6 -6
- package/dist/{method-mosT_h9v.js → method-DuiknwGt.js} +9 -3
- package/dist/{navigation-CHVw_t5x.d.ts → navigation-C7KdkOOQ.d.ts} +3 -3
- package/dist/{overview-9J_EJ4Uv.d.ts → overview-Bgw9OG4s.d.ts} +7 -7
- package/dist/{overview-dG8i3EyZ.js → overview-CcVRPEBm.js} +10 -11
- package/dist/{primitives-B6nufz49.js → primitives-B6y6nqBK.js} +2 -2
- package/dist/{primitives-BkenBSev.d.ts → primitives-BFT7Ya7M.d.ts} +11 -11
- package/dist/{properties-4w8hy0hf.js → properties-D2J5gvC-.js} +1 -1
- package/dist/{python-CtQJaLw5.js → python-CU3scKKD.js} +1 -1
- package/dist/{routing-CLgL--x1.js → routing-B7QoUwlD.js} +1 -1
- package/dist/{routing-CqnhQY4G.d.ts → routing-Cm_9XJiQ.d.ts} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{ruby-DJqEHgOw.js → ruby-DGRZDnHB.js} +1 -1
- package/dist/{sdk-BDzHdl2y.d.ts → sdk-AjblXmHS.d.ts} +3 -3
- package/dist/{sdk-afI6c7Wd.js → sdk-CR-rCp9e.js} +4 -4
- package/dist/{sdk-sidebar-CoVgP38f.d.ts → sdk-sidebar-D0TtSeoG.d.ts} +1 -1
- package/dist/{sdk-sidebar-ZaXTw63C.js → sdk-sidebar-FL7e7_BM.js} +24 -10
- package/dist/{snippets-Dfd3zU_j.d.ts → snippets-Cp1UqKR_.d.ts} +11 -11
- package/dist/{snippets-bh8lfniq.js → snippets-Us8YSl3A.js} +2 -2
- package/dist/spec.d.ts +4 -4
- package/dist/spec.js +2 -2
- package/dist/{stl-sidebar-D6OGr1Gl.d.ts → stl-sidebar-GAhLy2ST.d.ts} +22 -9
- package/dist/stl-sidebar-WtimNrk1.js +106 -0
- package/dist/{style-Bxr5gqcM.js → style-HpXpcJ9v.js} +2 -0
- package/dist/style.d.ts +2 -0
- package/dist/style.js +1 -1
- package/dist/styles/main.css +20 -3
- package/dist/styles/sidebar.css +45 -109
- package/dist/styles.css +67 -115
- package/dist/terraform-BD7o7zbh.js +243 -0
- package/dist/{typescript-DA7mcN1t.js → typescript-CEVQ6kS_.js} +1 -1
- package/dist/{utils-36jzmKxv.js → utils-KWHcUI-r.js} +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/breadcrumbs-CpdCGzeH.d.ts +0 -25
- package/dist/component-generics-Bs9VsgxB.d.ts +0 -30
- package/dist/docs-FJV1-6V2.d.ts +0 -47
- package/dist/index-C9bUFWfw.d.ts +0 -302
- package/dist/index-WHKRwqwo.d.ts +0 -302
- package/dist/index-_wZU78e1.d.ts +0 -16
- package/dist/languages-BPVYg1lj.js +0 -28
- package/dist/markdown-IA9nH38V.d.ts +0 -22
- package/dist/method-CZDrcjKP.d.ts +0 -59
- package/dist/navigation-CIQImbWI.d.ts +0 -29
- package/dist/overview-DVklHrbY.d.ts +0 -39
- package/dist/primitives-Bmr19wBU.d.ts +0 -105
- package/dist/properties-NrkX1jGk.d.ts +0 -54
- package/dist/sdk-hDAzjotL.d.ts +0 -122
- package/dist/sdk-sidebar-ByMsvpUm.d.ts +0 -15
- package/dist/snippets-BqKFOZfY.d.ts +0 -53
- package/dist/stl-sidebar-DdxZx2KK.js +0 -82
- package/dist/stl-sidebar-nQWQbRVM.d.ts +0 -45
- /package/dist/{properties-Dx6tQNus.d.ts → properties-Dw7HWUj0.d.ts} +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/method.d.ts
|
|
6
|
-
type MethodHeaderProps = {
|
|
7
|
-
title: ReactNode;
|
|
8
|
-
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
|
|
9
|
-
signature?: ReactNode;
|
|
10
|
-
badges?: ReactNode;
|
|
11
|
-
children?: ReactNode;
|
|
12
|
-
};
|
|
13
|
-
declare function MethodHeader({
|
|
14
|
-
title,
|
|
15
|
-
badges,
|
|
16
|
-
signature,
|
|
17
|
-
children,
|
|
18
|
-
level
|
|
19
|
-
}: MethodHeaderProps): react_jsx_runtime50.JSX.Element;
|
|
20
|
-
type MethodRouteProps = {
|
|
21
|
-
httpMethod?: string;
|
|
22
|
-
endpoint?: string | ReactNode;
|
|
23
|
-
iconOnly?: boolean;
|
|
24
|
-
};
|
|
25
|
-
declare function MethodRoute({
|
|
26
|
-
httpMethod,
|
|
27
|
-
endpoint,
|
|
28
|
-
iconOnly
|
|
29
|
-
}: MethodRouteProps): react_jsx_runtime50.JSX.Element;
|
|
30
|
-
type MethodDescriptionProps = {
|
|
31
|
-
description?: string;
|
|
32
|
-
};
|
|
33
|
-
declare function MethodDescription({
|
|
34
|
-
description
|
|
35
|
-
}: MethodDescriptionProps): react_jsx_runtime50.JSX.Element | undefined;
|
|
36
|
-
type MethodInfoProps = {
|
|
37
|
-
children?: ReactNode;
|
|
38
|
-
parameters?: ReactNode;
|
|
39
|
-
returns?: ReactNode;
|
|
40
|
-
};
|
|
41
|
-
declare function MethodInfo({
|
|
42
|
-
children,
|
|
43
|
-
parameters,
|
|
44
|
-
returns
|
|
45
|
-
}: MethodInfoProps): react_jsx_runtime50.JSX.Element;
|
|
46
|
-
type MethodProps = {
|
|
47
|
-
id?: string;
|
|
48
|
-
header?: ReactNode;
|
|
49
|
-
children?: ReactNode;
|
|
50
|
-
} & React$1.HTMLProps<HTMLDivElement>;
|
|
51
|
-
declare function Method({
|
|
52
|
-
id,
|
|
53
|
-
header,
|
|
54
|
-
children,
|
|
55
|
-
className,
|
|
56
|
-
...props
|
|
57
|
-
}: MethodProps): react_jsx_runtime50.JSX.Element;
|
|
58
|
-
//#endregion
|
|
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,29 +0,0 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-CqnhQY4G.js";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/contexts/navigation.d.ts
|
|
6
|
-
type NavigationHandler = (ev: React$1.MouseEvent | null, opts: {
|
|
7
|
-
href: string;
|
|
8
|
-
language: DocsLanguage;
|
|
9
|
-
stainlessPath: string;
|
|
10
|
-
scroll: boolean;
|
|
11
|
-
}) => void;
|
|
12
|
-
type NavigationContextType = {
|
|
13
|
-
basePath?: string;
|
|
14
|
-
selectedPath?: string;
|
|
15
|
-
navigationPath?: string[];
|
|
16
|
-
onNavigate?: NavigationHandler;
|
|
17
|
-
};
|
|
18
|
-
declare function useNavigation(): NavigationContextType;
|
|
19
|
-
type NavigationProviderProps = NavigationContextType & {
|
|
20
|
-
children: React$1.ReactNode;
|
|
21
|
-
};
|
|
22
|
-
declare function NavigationProvider({
|
|
23
|
-
basePath,
|
|
24
|
-
selectedPath,
|
|
25
|
-
onNavigate,
|
|
26
|
-
children
|
|
27
|
-
}: NavigationProviderProps): react_jsx_runtime0.JSX.Element;
|
|
28
|
-
//#endregion
|
|
29
|
-
export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { p as Resource, u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/overview.d.ts
|
|
5
|
-
type SDKResourceProps = {
|
|
6
|
-
resource: Resource;
|
|
7
|
-
parents?: Resource[];
|
|
8
|
-
};
|
|
9
|
-
declare function SDKResourceHeader({
|
|
10
|
-
resource,
|
|
11
|
-
parents
|
|
12
|
-
}: SDKResourceProps): react_jsx_runtime55.JSX.Element | null;
|
|
13
|
-
type SDKMethodSummaryProps = {
|
|
14
|
-
method: Method;
|
|
15
|
-
};
|
|
16
|
-
declare function SDKMethodSummary({
|
|
17
|
-
method
|
|
18
|
-
}: SDKMethodSummaryProps): react_jsx_runtime55.JSX.Element;
|
|
19
|
-
declare function SDKResource({
|
|
20
|
-
resource,
|
|
21
|
-
parents,
|
|
22
|
-
showModels
|
|
23
|
-
}: SDKResourceProps & {
|
|
24
|
-
showModels?: boolean;
|
|
25
|
-
}): react_jsx_runtime55.JSX.Element;
|
|
26
|
-
type SDKOverviewProps = {
|
|
27
|
-
resource: Resource;
|
|
28
|
-
};
|
|
29
|
-
declare function SDKOverview({
|
|
30
|
-
resource
|
|
31
|
-
}: SDKOverviewProps): react_jsx_runtime55.JSX.Element;
|
|
32
|
-
type SDKRootProps = {
|
|
33
|
-
stainlessPath: string;
|
|
34
|
-
};
|
|
35
|
-
declare function SDKRoot({
|
|
36
|
-
stainlessPath
|
|
37
|
-
}: SDKRootProps): react_jsx_runtime55.JSX.Element | null;
|
|
38
|
-
//#endregion
|
|
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,105 +0,0 @@
|
|
|
1
|
-
import * as react0 from "react";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/primitives.d.ts
|
|
6
|
-
type JoinProps = {
|
|
7
|
-
items: ReactNode[];
|
|
8
|
-
limit?: number;
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare function Join({
|
|
12
|
-
items,
|
|
13
|
-
limit,
|
|
14
|
-
children
|
|
15
|
-
}: JoinProps): react_jsx_runtime60.JSX.Element[];
|
|
16
|
-
type ExpanderProps = {
|
|
17
|
-
id?: string;
|
|
18
|
-
open?: boolean;
|
|
19
|
-
summary: ReactNode;
|
|
20
|
-
virtual?: boolean;
|
|
21
|
-
muted?: boolean;
|
|
22
|
-
children?: ReactNode;
|
|
23
|
-
};
|
|
24
|
-
declare function Expander({
|
|
25
|
-
id,
|
|
26
|
-
open,
|
|
27
|
-
summary,
|
|
28
|
-
virtual,
|
|
29
|
-
muted,
|
|
30
|
-
children
|
|
31
|
-
}: ExpanderProps): react_jsx_runtime60.JSX.Element;
|
|
32
|
-
declare function VirtualExpander({
|
|
33
|
-
id,
|
|
34
|
-
open: isOpen,
|
|
35
|
-
muted,
|
|
36
|
-
summary,
|
|
37
|
-
children
|
|
38
|
-
}: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime60.JSX.Element;
|
|
39
|
-
declare function Markdown({
|
|
40
|
-
content
|
|
41
|
-
}: {
|
|
42
|
-
content: string;
|
|
43
|
-
}): "" | react_jsx_runtime60.JSX.Element | undefined;
|
|
44
|
-
type BadgeProps = {
|
|
45
|
-
id: string;
|
|
46
|
-
children?: ReactNode;
|
|
47
|
-
};
|
|
48
|
-
declare function Badge({
|
|
49
|
-
id,
|
|
50
|
-
children
|
|
51
|
-
}: BadgeProps): react_jsx_runtime60.JSX.Element;
|
|
52
|
-
type TooltipProps = {
|
|
53
|
-
content: ReactNode;
|
|
54
|
-
children: ReactNode;
|
|
55
|
-
};
|
|
56
|
-
declare function Tooltip({
|
|
57
|
-
content,
|
|
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> | react_jsx_runtime60.JSX.Element | null | undefined;
|
|
60
|
-
type LinkProps = {
|
|
61
|
-
stainlessPath?: string;
|
|
62
|
-
scroll?: boolean;
|
|
63
|
-
children?: ReactNode;
|
|
64
|
-
} & React.HTMLProps<HTMLAnchorElement>;
|
|
65
|
-
declare function Link({
|
|
66
|
-
stainlessPath,
|
|
67
|
-
scroll,
|
|
68
|
-
children,
|
|
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> | react_jsx_runtime60.JSX.Element | null | undefined;
|
|
71
|
-
type InputProps = {
|
|
72
|
-
left?: ReactNode;
|
|
73
|
-
right?: ReactNode;
|
|
74
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
75
|
-
} & React.InputHTMLAttributes<HTMLInputElement>;
|
|
76
|
-
declare function Input({
|
|
77
|
-
left,
|
|
78
|
-
right,
|
|
79
|
-
ref,
|
|
80
|
-
className,
|
|
81
|
-
...props
|
|
82
|
-
}: InputProps): react_jsx_runtime60.JSX.Element;
|
|
83
|
-
type ToggleButtonProps = {
|
|
84
|
-
children?: ReactNode;
|
|
85
|
-
selected?: boolean;
|
|
86
|
-
} & React.ComponentProps<'button'>;
|
|
87
|
-
declare function ToggleButton({
|
|
88
|
-
children,
|
|
89
|
-
selected,
|
|
90
|
-
ref,
|
|
91
|
-
...props
|
|
92
|
-
}: ToggleButtonProps): react_jsx_runtime60.JSX.Element;
|
|
93
|
-
type ListViewProps<TItem> = {
|
|
94
|
-
items: Array<TItem>;
|
|
95
|
-
itemDelegate: (item: TItem, selected: boolean) => React.ReactNode;
|
|
96
|
-
onSelectListItem?: (item: TItem) => void;
|
|
97
|
-
} & React.HTMLAttributes<HTMLDivElement>;
|
|
98
|
-
declare function ListView<TItem>({
|
|
99
|
-
items,
|
|
100
|
-
itemDelegate,
|
|
101
|
-
onSelectListItem,
|
|
102
|
-
...rest
|
|
103
|
-
}: ListViewProps<TItem>): react_jsx_runtime60.JSX.Element;
|
|
104
|
-
//#endregion
|
|
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,54 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/properties.d.ts
|
|
5
|
-
type PropertyToggleProps = {
|
|
6
|
-
target: string;
|
|
7
|
-
};
|
|
8
|
-
declare function PropertyToggle({
|
|
9
|
-
target
|
|
10
|
-
}: PropertyToggleProps): react_jsx_runtime38.JSX.Element;
|
|
11
|
-
type PropertyDescriptionProps = {
|
|
12
|
-
description?: string;
|
|
13
|
-
};
|
|
14
|
-
declare function PropertyDescription({
|
|
15
|
-
description
|
|
16
|
-
}: PropertyDescriptionProps): react_jsx_runtime38.JSX.Element | undefined;
|
|
17
|
-
type PropertyTitleProps = {
|
|
18
|
-
title?: string;
|
|
19
|
-
};
|
|
20
|
-
declare function PropertyTitle({
|
|
21
|
-
title
|
|
22
|
-
}: PropertyTitleProps): react_jsx_runtime38.JSX.Element | undefined;
|
|
23
|
-
type PropertyProps = {
|
|
24
|
-
id?: string;
|
|
25
|
-
name?: ReactNode;
|
|
26
|
-
typeName?: ReactNode;
|
|
27
|
-
badges?: ReactNode;
|
|
28
|
-
type?: ReactNode;
|
|
29
|
-
description?: string;
|
|
30
|
-
title?: string;
|
|
31
|
-
expand?: boolean;
|
|
32
|
-
deprecated?: boolean | string;
|
|
33
|
-
additional?: ReactNode;
|
|
34
|
-
declaration?: ReactNode;
|
|
35
|
-
constraints?: ReactNode;
|
|
36
|
-
children?: ReactNode;
|
|
37
|
-
};
|
|
38
|
-
declare function Property({
|
|
39
|
-
id,
|
|
40
|
-
name,
|
|
41
|
-
typeName,
|
|
42
|
-
badges,
|
|
43
|
-
type,
|
|
44
|
-
declaration,
|
|
45
|
-
description,
|
|
46
|
-
title,
|
|
47
|
-
deprecated,
|
|
48
|
-
expand,
|
|
49
|
-
additional,
|
|
50
|
-
constraints,
|
|
51
|
-
children
|
|
52
|
-
}: PropertyProps): react_jsx_runtime38.JSX.Element;
|
|
53
|
-
//#endregion
|
|
54
|
-
export { PropertyTitle as a, PropertyToggleProps as c, PropertyProps as i, PropertyDescription as n, PropertyTitleProps as o, PropertyDescriptionProps as r, PropertyToggle as s, Property as t };
|
package/dist/sdk-hDAzjotL.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { d as Model, h as SnippetLanguage, s as ID, t as BaseDeclaration, u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
import { t as DocsLanguage } from "./routing-CqnhQY4G.js";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
|
-
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/sdk.d.ts
|
|
7
|
-
type PropertyModelContextType = {
|
|
8
|
-
modelPath?: string;
|
|
9
|
-
propertyPath?: string;
|
|
10
|
-
};
|
|
11
|
-
declare const PropertyModelContext: React$1.Context<PropertyModelContextType>;
|
|
12
|
-
declare function usePropertyModel(): PropertyModelContextType;
|
|
13
|
-
type ReferenceNestingContextType = string[];
|
|
14
|
-
declare const ReferenceNestingContext: React$1.Context<ReferenceNestingContextType>;
|
|
15
|
-
declare function useReferenceNesting(): ReferenceNestingContextType;
|
|
16
|
-
type SDKSnippetLanguagesType = Record<SnippetLanguage, {
|
|
17
|
-
name: string;
|
|
18
|
-
}>;
|
|
19
|
-
declare const SDKSnippetLanguages: SDKSnippetLanguagesType;
|
|
20
|
-
type TransformRequestSnippetFn = ({
|
|
21
|
-
snippet,
|
|
22
|
-
language
|
|
23
|
-
}: {
|
|
24
|
-
snippet: string;
|
|
25
|
-
language: DocsLanguage;
|
|
26
|
-
}) => string;
|
|
27
|
-
type SDKChildrenProps = {
|
|
28
|
-
paths: ID[];
|
|
29
|
-
expand?: boolean;
|
|
30
|
-
depth?: number;
|
|
31
|
-
};
|
|
32
|
-
declare function SDKChildren({
|
|
33
|
-
paths,
|
|
34
|
-
expand,
|
|
35
|
-
depth
|
|
36
|
-
}: SDKChildrenProps): react_jsx_runtime61.JSX.Element;
|
|
37
|
-
type SDKDeclarationProps = {
|
|
38
|
-
path: string;
|
|
39
|
-
expand?: boolean;
|
|
40
|
-
depth?: number;
|
|
41
|
-
};
|
|
42
|
-
declare function SDKDeclaration({
|
|
43
|
-
path,
|
|
44
|
-
expand,
|
|
45
|
-
depth
|
|
46
|
-
}: SDKDeclarationProps): react_jsx_runtime61.JSX.Element;
|
|
47
|
-
type SDKConstraintsProps = {
|
|
48
|
-
constraints?: Record<string, any>;
|
|
49
|
-
};
|
|
50
|
-
declare function SDKConstraints({
|
|
51
|
-
constraints
|
|
52
|
-
}: SDKConstraintsProps): react_jsx_runtime61.JSX.Element | undefined;
|
|
53
|
-
type SDKIconProps = {
|
|
54
|
-
language: SnippetLanguage;
|
|
55
|
-
size?: number;
|
|
56
|
-
};
|
|
57
|
-
declare function SDKIcon({
|
|
58
|
-
language
|
|
59
|
-
}: SDKIconProps): react_jsx_runtime61.JSX.Element | null;
|
|
60
|
-
type SDKRequestTitleProps = {
|
|
61
|
-
snippetLanguage: SnippetLanguage;
|
|
62
|
-
};
|
|
63
|
-
declare function SDKRequestTitle({
|
|
64
|
-
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps): react_jsx_runtime61.JSX.Element;
|
|
66
|
-
type SDKExampleProps = {
|
|
67
|
-
method: Method;
|
|
68
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
69
|
-
};
|
|
70
|
-
declare function SDKExample({
|
|
71
|
-
method,
|
|
72
|
-
transformRequestSnippet
|
|
73
|
-
}: SDKExampleProps): react_jsx_runtime61.JSX.Element;
|
|
74
|
-
type SDKMethodProps = {
|
|
75
|
-
method: Method;
|
|
76
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
77
|
-
};
|
|
78
|
-
declare function SDKMethodHeader({
|
|
79
|
-
method
|
|
80
|
-
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
81
|
-
declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
|
|
82
|
-
declare function SDKMethodInfo({
|
|
83
|
-
method
|
|
84
|
-
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
85
|
-
declare function SDKMethodNotImplemented({
|
|
86
|
-
method
|
|
87
|
-
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
88
|
-
declare function SDKMethod({
|
|
89
|
-
method,
|
|
90
|
-
transformRequestSnippet
|
|
91
|
-
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
92
|
-
type SDKModelProps = {
|
|
93
|
-
model: Model;
|
|
94
|
-
};
|
|
95
|
-
declare function SDKModel({
|
|
96
|
-
model
|
|
97
|
-
}: SDKModelProps): react_jsx_runtime61.JSX.Element | null;
|
|
98
|
-
type SDKReferenceProps = {
|
|
99
|
-
stainlessPath: string;
|
|
100
|
-
children?: React$1.ReactNode;
|
|
101
|
-
};
|
|
102
|
-
declare function SDKReference({
|
|
103
|
-
stainlessPath,
|
|
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> | react_jsx_runtime61.JSX.Element | null | undefined;
|
|
106
|
-
type SDKLanguageBlockProps = {
|
|
107
|
-
language: DocsLanguage;
|
|
108
|
-
version: string;
|
|
109
|
-
install: string;
|
|
110
|
-
links: {
|
|
111
|
-
repo: string;
|
|
112
|
-
docs: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
declare function SDKLanguageBlock({
|
|
116
|
-
language,
|
|
117
|
-
version,
|
|
118
|
-
install,
|
|
119
|
-
links
|
|
120
|
-
}: SDKLanguageBlockProps): react_jsx_runtime61.JSX.Element;
|
|
121
|
-
//#endregion
|
|
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,15 +0,0 @@
|
|
|
1
|
-
import { p as Resource } from "./index-DuHyTVVD.js";
|
|
2
|
-
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/sdk-sidebar.d.ts
|
|
5
|
-
type SDKSidebarProps = {
|
|
6
|
-
resources: Resource[];
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* Given some SDKJSON.Resources, calls into StlSidebar with the appropriate sidebar entries.
|
|
10
|
-
*/
|
|
11
|
-
declare function SDKSidebar({
|
|
12
|
-
resources
|
|
13
|
-
}: SDKSidebarProps): react_jsx_runtime60.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { SDKSidebarProps as n, SDKSidebar as t };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
import { w as TransformRequestSnippetFn } from "./sdk-hDAzjotL.js";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
|
-
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region src/components/snippets.d.ts
|
|
7
|
-
type SnippetCodeProps = {
|
|
8
|
-
content: string;
|
|
9
|
-
signature?: string;
|
|
10
|
-
language?: string;
|
|
11
|
-
};
|
|
12
|
-
declare function SnippetCode({
|
|
13
|
-
content,
|
|
14
|
-
language
|
|
15
|
-
}: SnippetCodeProps): react_jsx_runtime75.JSX.Element;
|
|
16
|
-
type SnippetProps = {
|
|
17
|
-
method: Method;
|
|
18
|
-
requestTitle?: React$1.ReactNode;
|
|
19
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
20
|
-
};
|
|
21
|
-
type SnippetContainerProps = {
|
|
22
|
-
method: Method;
|
|
23
|
-
children: React$1.ReactNode;
|
|
24
|
-
signature?: string;
|
|
25
|
-
};
|
|
26
|
-
declare function SnippetContainer({
|
|
27
|
-
children
|
|
28
|
-
}: SnippetContainerProps): react_jsx_runtime75.JSX.Element;
|
|
29
|
-
type SnippetRequestContainerProps = {
|
|
30
|
-
children?: React$1.ReactNode;
|
|
31
|
-
signature?: string;
|
|
32
|
-
};
|
|
33
|
-
declare function SnippetRequestContainer({
|
|
34
|
-
children
|
|
35
|
-
}: SnippetRequestContainerProps): react_jsx_runtime75.JSX.Element;
|
|
36
|
-
declare function Snippet({
|
|
37
|
-
requestTitle,
|
|
38
|
-
method,
|
|
39
|
-
transformRequestSnippet
|
|
40
|
-
}: SnippetProps): react_jsx_runtime75.JSX.Element | null;
|
|
41
|
-
declare function SnippetButtons({
|
|
42
|
-
content
|
|
43
|
-
}: {
|
|
44
|
-
content: string;
|
|
45
|
-
}): react_jsx_runtime75.JSX.Element;
|
|
46
|
-
declare function SnippetFooter(): React$1.ReactNode;
|
|
47
|
-
declare function SnippetResponse({
|
|
48
|
-
responses
|
|
49
|
-
}: {
|
|
50
|
-
responses: Method['exampleResponses'];
|
|
51
|
-
}): react_jsx_runtime75.JSX.Element | null;
|
|
52
|
-
//#endregion
|
|
53
|
-
export { SnippetContainer as a, SnippetProps as c, SnippetResponse as d, SnippetCodeProps as i, SnippetRequestContainer as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetFooter as s, Snippet as t, SnippetRequestContainerProps as u };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
2
|
-
import { t as style_default } from "./style-Bxr5gqcM.js";
|
|
3
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
import clsx from "clsx";
|
|
5
|
-
import { ChevronRight } from "lucide-react";
|
|
6
|
-
|
|
7
|
-
//#region src/components/stl-sidebar.tsx
|
|
8
|
-
function StlSidebarSublist({ entries, entryToIndex }) {
|
|
9
|
-
const Docs = useComponents();
|
|
10
|
-
return /* @__PURE__ */ jsx("ul", {
|
|
11
|
-
className: style_default.SidebarList,
|
|
12
|
-
children: entries.map((entry, index) => {
|
|
13
|
-
const restorePointIndex = entryToIndex?.get(entry);
|
|
14
|
-
const hasLink = !!(entry.href || entry.stainlessPath);
|
|
15
|
-
return /* @__PURE__ */ jsx("li", {
|
|
16
|
-
className: clsx(style_default.SidebarEntry, entry.type === "link" ? style_default.SidebarEntryLink : style_default.SidebarEntryGroup),
|
|
17
|
-
children: entry.type === "link" ? /* @__PURE__ */ jsx(Docs.Link, {
|
|
18
|
-
href: entry.href,
|
|
19
|
-
stainlessPath: entry.stainlessPath,
|
|
20
|
-
"aria-current": entry.isCurrent ? "page" : void 0,
|
|
21
|
-
...entry.attrs,
|
|
22
|
-
children: entry.label
|
|
23
|
-
}) : /* @__PURE__ */ jsxs(Fragment, { children: [hasLink && /* @__PURE__ */ jsx(Docs.Link, {
|
|
24
|
-
href: entry.href,
|
|
25
|
-
stainlessPath: entry.stainlessPath,
|
|
26
|
-
"aria-current": entry.isCurrent ? "page" : void 0,
|
|
27
|
-
children: entry.label
|
|
28
|
-
}), /* @__PURE__ */ jsxs("details", {
|
|
29
|
-
className: style_default.SidebarExpander,
|
|
30
|
-
open: flattenStlSidebar(entry.entries).some((i) => i.isCurrent) || !entry.collapsed,
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ jsxs("summary", {
|
|
33
|
-
className: style_default.ExpanderSummary,
|
|
34
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
35
|
-
"aria-hidden": hasLink ? "true" : void 0,
|
|
36
|
-
children: entry.label
|
|
37
|
-
}), entry.entries.length > 0 && /* @__PURE__ */ jsx(ChevronRight, {
|
|
38
|
-
size: 16,
|
|
39
|
-
strokeWidth: 1,
|
|
40
|
-
className: `${style_default.Icon} ${style_default.ExpanderSummaryIcon}`
|
|
41
|
-
})]
|
|
42
|
-
}),
|
|
43
|
-
restorePointIndex !== void 0 && /* @__PURE__ */ jsx("sl-sidebar-restore", { "data-index": restorePointIndex }),
|
|
44
|
-
entry.entries.length > 0 && /* @__PURE__ */ jsx(StlSidebarSublist, {
|
|
45
|
-
entries: entry.entries,
|
|
46
|
-
entryToIndex
|
|
47
|
-
})
|
|
48
|
-
]
|
|
49
|
-
})] })
|
|
50
|
-
}, index);
|
|
51
|
-
})
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function StlSidebar({ entries, withStarlightRestoration }) {
|
|
55
|
-
const entryToIndex = withStarlightRestoration ? computeEntryToIndex(entries) : void 0;
|
|
56
|
-
return /* @__PURE__ */ jsx("div", {
|
|
57
|
-
className: `${style_default.Root} ${style_default.Sidebar}`,
|
|
58
|
-
children: /* @__PURE__ */ jsx(StlSidebarSublist, {
|
|
59
|
-
entries,
|
|
60
|
-
entryToIndex
|
|
61
|
-
})
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
function computeEntryToIndex(allEntries) {
|
|
65
|
-
const entryToIndex = /* @__PURE__ */ new Map();
|
|
66
|
-
let currentIndex = 0;
|
|
67
|
-
function addEntries(entries) {
|
|
68
|
-
for (const entry of entries) if (entry.type === "group") {
|
|
69
|
-
entryToIndex.set(entry, currentIndex);
|
|
70
|
-
currentIndex++;
|
|
71
|
-
addEntries(entry.entries);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
addEntries(allEntries);
|
|
75
|
-
return entryToIndex;
|
|
76
|
-
}
|
|
77
|
-
function flattenStlSidebar(sidebar) {
|
|
78
|
-
return sidebar.flatMap((entry) => entry.type === "group" ? flattenStlSidebar(entry.entries) : entry);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
//#endregion
|
|
82
|
-
export { StlSidebar as t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
//#region src/components/stl-sidebar.d.ts
|
|
4
|
-
declare module 'react' {
|
|
5
|
-
namespace JSX {
|
|
6
|
-
interface IntrinsicElements {
|
|
7
|
-
/**
|
|
8
|
-
* Custom element defined by Starlight's <SidebarPersister>.
|
|
9
|
-
*/
|
|
10
|
-
'sl-sidebar-restore': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
interface StlSidebarLink {
|
|
15
|
-
type: 'link';
|
|
16
|
-
label: string;
|
|
17
|
-
isCurrent?: boolean;
|
|
18
|
-
attrs: Record<string, unknown>;
|
|
19
|
-
href?: string;
|
|
20
|
-
stainlessPath?: string;
|
|
21
|
-
}
|
|
22
|
-
interface StlSidebarGroup {
|
|
23
|
-
type: 'group';
|
|
24
|
-
label: string;
|
|
25
|
-
entries: Array<StlSidebarLink | StlSidebarGroup>;
|
|
26
|
-
collapsed: boolean;
|
|
27
|
-
isCurrent?: boolean;
|
|
28
|
-
href?: string;
|
|
29
|
-
stainlessPath?: string;
|
|
30
|
-
}
|
|
31
|
-
type StlSidebarEntry = StlSidebarLink | StlSidebarGroup;
|
|
32
|
-
type StlSidebarProps = {
|
|
33
|
-
entries: StlSidebarEntry[];
|
|
34
|
-
/**
|
|
35
|
-
* If set, add <sl-sidebar-restore> custom elements (as defined by Starlight's SidebarPersister)
|
|
36
|
-
* which are used to save/restore sidebar state.
|
|
37
|
-
*/
|
|
38
|
-
withStarlightRestoration?: boolean;
|
|
39
|
-
};
|
|
40
|
-
declare function StlSidebar({
|
|
41
|
-
entries,
|
|
42
|
-
withStarlightRestoration
|
|
43
|
-
}: StlSidebarProps): react_jsx_runtime34.JSX.Element;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { StlSidebarProps as a, StlSidebarLink as i, StlSidebarEntry as n, StlSidebarGroup as r, StlSidebar as t };
|
|
File without changes
|