@stainless-api/docs-ui 0.1.0-beta.64 → 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-LWaLZTKQ.js → breadcrumbs-C22Eos5U.js} +2 -2
- package/dist/{breadcrumbs--UnnviuM.d.ts → breadcrumbs-Cvm5Ifm7.d.ts} +2 -2
- package/dist/{cli-DxaqMIw8.js → cli-C9b02R53.js} +2 -2
- package/dist/{component-DJPAOOcm.js → component-B5j-H4cO.js} +2 -2
- package/dist/{component-generics-MlWbpDgJ.d.ts → component-generics-DBuEnCtJ.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +1 -1
- 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 +10 -10
- 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 +1 -1
- package/dist/components/stl-sidebar.js +1 -1
- package/dist/{components-BDWui61-.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 -21
- 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-DG58HgOR.js → csharp-Ckuihkec.js} +1 -1
- package/dist/{docs-QzBZ07DA.d.ts → docs-CMkfabi3.d.ts} +2 -2
- package/dist/{go-FsjdFhA1.js → go-DrZxKwGv.js} +1 -1
- package/dist/{http-BjtWXfQq.js → http-BoZv04yo.js} +33 -4
- package/dist/{index-DJvggpZ-.d.ts → index-BYTDY59Z.d.ts} +9 -9
- package/dist/{index-DbDRmfDC.d.ts → index-DCqDybi3.d.ts} +39 -39
- package/dist/index.d.ts +16 -16
- package/dist/index.js +21 -21
- package/dist/{java-Bd6ywsPr.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 +11 -11
- package/dist/languages/index.js +20 -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 +11 -11
- package/dist/languages/terraform.js +1 -1
- 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 +1 -1
- package/dist/markdown/index.js +21 -21
- package/dist/markdown/printer.d.ts +1 -1
- package/dist/markdown/printer.js +22 -22
- package/dist/markdown/utils.d.ts +2 -2
- package/dist/{markdown-DJp68jgE.d.ts → markdown-9xLfF9XX.d.ts} +2 -2
- package/dist/{method-Co4oGHq0.d.ts → method-BwXzL3P1.d.ts} +6 -6
- package/dist/{method-Cz2lZSmc.js → method-DuiknwGt.js} +9 -3
- package/dist/{navigation-D3NgO72i.d.ts → navigation-C7KdkOOQ.d.ts} +2 -2
- package/dist/{overview-Cj_1NjH4.d.ts → overview-Bgw9OG4s.d.ts} +6 -6
- package/dist/{overview-Rmj_2SSL.js → overview-CcVRPEBm.js} +4 -4
- package/dist/{primitives-CLz53F72.js → primitives-B6y6nqBK.js} +1 -1
- package/dist/{primitives-BVImQZIK.d.ts → primitives-BFT7Ya7M.d.ts} +11 -11
- package/dist/{properties-USEPePSD.js → properties-D2J5gvC-.js} +1 -1
- package/dist/{properties-DrXRF5dN.d.ts → properties-Dw7HWUj0.d.ts} +5 -5
- package/dist/{python-DuKMXtnf.js → python-CU3scKKD.js} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/{ruby-caNh8R-U.js → ruby-DGRZDnHB.js} +1 -1
- package/dist/{sdk-BiZDCG58.d.ts → sdk-AjblXmHS.d.ts} +15 -15
- package/dist/{sdk-BjiDGP5c.js → sdk-CR-rCp9e.js} +3 -3
- package/dist/{sdk-sidebar-f7SS4xxq.d.ts → sdk-sidebar-D0TtSeoG.d.ts} +2 -2
- package/dist/{sdk-sidebar-DdpmtIRH.js → sdk-sidebar-FL7e7_BM.js} +1 -1
- package/dist/{snippets-DWblYtQ8.d.ts → snippets-Cp1UqKR_.d.ts} +1 -1
- package/dist/{snippets-DSwfbtDo.js → snippets-Us8YSl3A.js} +2 -2
- package/dist/spec.d.ts +3 -3
- package/dist/{stl-sidebar-BKBJelb1.d.ts → stl-sidebar-GAhLy2ST.d.ts} +2 -2
- package/dist/{stl-sidebar-Cygo6VjR.js → stl-sidebar-WtimNrk1.js} +1 -1
- package/dist/{style-Btdhlyzs.js → style-HpXpcJ9v.js} +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -1
- package/dist/styles/main.css +7 -0
- package/dist/styles.css +9 -3
- package/dist/{terraform-C5niSkCy.js → terraform-BD7o7zbh.js} +1 -1
- package/dist/{typescript-MlS1z4sG.js → typescript-CEVQ6kS_.js} +1 -1
- package/package.json +2 -2
- package/dist/breadcrumbs-D-5T4feJ.d.ts +0 -25
- package/dist/component-generics-B7o0uTDM.d.ts +0 -30
- package/dist/docs-B7UKWxWn.d.ts +0 -47
- package/dist/index-D7cYRCX9.d.ts +0 -345
- package/dist/index-DRblqs_x.d.ts +0 -16
- package/dist/languages-BN8-A3YZ.js +0 -30
- package/dist/markdown-Dg9HMal8.d.ts +0 -22
- package/dist/method-O9UBNEp2.d.ts +0 -59
- package/dist/navigation-B4vW2BCl.d.ts +0 -29
- package/dist/overview-LaDqIxPP.d.ts +0 -39
- package/dist/primitives-ClTSL56K.d.ts +0 -105
- package/dist/properties-CjcmtaiQ.d.ts +0 -54
- package/dist/routing-BEbg8P4_.d.ts +0 -61
- package/dist/sdk-hxjRpJH0.d.ts +0 -122
- package/dist/sdk-sidebar-COHATE2-.d.ts +0 -15
- package/dist/snippets-Ci86b9RQ.d.ts +0 -53
- package/dist/stl-sidebar-BUEH7mR_.d.ts +0 -58
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import * as react0 from "react";
|
|
2
|
-
import { ReactNode } from "react";
|
|
3
|
-
import * as react_jsx_runtime22 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_runtime22.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_runtime22.JSX.Element;
|
|
32
|
-
declare function VirtualExpander({
|
|
33
|
-
id,
|
|
34
|
-
open: isOpen,
|
|
35
|
-
muted,
|
|
36
|
-
summary,
|
|
37
|
-
children
|
|
38
|
-
}: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime22.JSX.Element;
|
|
39
|
-
declare function Markdown({
|
|
40
|
-
content
|
|
41
|
-
}: {
|
|
42
|
-
content: string;
|
|
43
|
-
}): "" | react_jsx_runtime22.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_runtime22.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 | react_jsx_runtime22.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
|
-
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 | react_jsx_runtime22.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
|
-
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_runtime22.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_runtime22.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_runtime22.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_runtime4 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_runtime4.JSX.Element;
|
|
11
|
-
type PropertyDescriptionProps = {
|
|
12
|
-
description?: string;
|
|
13
|
-
};
|
|
14
|
-
declare function PropertyDescription({
|
|
15
|
-
description
|
|
16
|
-
}: PropertyDescriptionProps): react_jsx_runtime4.JSX.Element | undefined;
|
|
17
|
-
type PropertyTitleProps = {
|
|
18
|
-
title?: string;
|
|
19
|
-
};
|
|
20
|
-
declare function PropertyTitle({
|
|
21
|
-
title
|
|
22
|
-
}: PropertyTitleProps): react_jsx_runtime4.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_runtime4.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 };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { _ as Spec, d as Method, f as Model, m as Resource } from "./index-CwjGm9zX.js";
|
|
2
|
-
|
|
3
|
-
//#region src/routing.d.ts
|
|
4
|
-
declare namespace routing_d_exports {
|
|
5
|
-
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, 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", "cli"];
|
|
8
|
-
declare const SupportedLanguageSyntaxes: string[];
|
|
9
|
-
type DocsLanguage = (typeof Languages)[number];
|
|
10
|
-
declare const LanguageNames: Record<DocsLanguage, string>;
|
|
11
|
-
declare function getLanguageSnippet(language: DocsLanguage): "cli.default" | "csharp.default" | "go.default" | "http.curl" | "java.default" | "kotlin.default" | "node.default" | "php.default" | "python.default" | "ruby.default" | "terraform.default" | "typescript.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: Method | Resource | Model;
|
|
29
|
-
path: string[];
|
|
30
|
-
};
|
|
31
|
-
declare function walkTree(spec: 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: Spec;
|
|
45
|
-
languages?: DocsLanguage[];
|
|
46
|
-
excludeLanguages?: DocsLanguage[];
|
|
47
|
-
}): RouteEntry[];
|
|
48
|
-
declare function generateMissingRouteList({
|
|
49
|
-
spec,
|
|
50
|
-
basePath
|
|
51
|
-
}: {
|
|
52
|
-
spec: Spec;
|
|
53
|
-
basePath: string;
|
|
54
|
-
}): string[];
|
|
55
|
-
type ResourceOrMethod = Resource | Method;
|
|
56
|
-
declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
|
|
57
|
-
declare function expandToElement(el: HTMLElement | null): void;
|
|
58
|
-
declare function scrollToPath(stainlessPath: string): void;
|
|
59
|
-
declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { walkTree as S, parseStainlessPath as _, RouteEntry as a, trimStainlessPath as b, expandToElement as c, generateRoute as d, generateRouteList as f, parseRoute as g, isSupportedLanguage as h, ParsedStainlessPath as i, findNavigationPath as l, getResource as m, LanguageNames as n, SpecTreeEntry as o, getLanguageSnippet as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateMissingRouteList as u, routing_d_exports as v, updateHistory as x, scrollToPath as y };
|
package/dist/sdk-hxjRpJH0.d.ts
DELETED
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { c as ID, d as Method, f as Model, g as SnippetLanguage, o as HasStainlessPath, t as BaseDeclaration } from "./index-CwjGm9zX.js";
|
|
2
|
-
import { t as DocsLanguage } from "./routing-Cm_9XJiQ.js";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
|
-
import * as react_jsx_runtime47 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_runtime47.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_runtime47.JSX.Element;
|
|
47
|
-
type SDKConstraintsProps = {
|
|
48
|
-
constraints?: Record<string, any>;
|
|
49
|
-
};
|
|
50
|
-
declare function SDKConstraints({
|
|
51
|
-
constraints
|
|
52
|
-
}: SDKConstraintsProps): react_jsx_runtime47.JSX.Element | undefined;
|
|
53
|
-
type SDKIconProps = {
|
|
54
|
-
language: SnippetLanguage;
|
|
55
|
-
size?: number;
|
|
56
|
-
};
|
|
57
|
-
declare function SDKIcon({
|
|
58
|
-
language
|
|
59
|
-
}: SDKIconProps): react_jsx_runtime47.JSX.Element | null;
|
|
60
|
-
type SDKRequestTitleProps = {
|
|
61
|
-
snippetLanguage: SnippetLanguage;
|
|
62
|
-
};
|
|
63
|
-
declare function SDKRequestTitle({
|
|
64
|
-
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps): react_jsx_runtime47.JSX.Element;
|
|
66
|
-
type SDKExampleProps = {
|
|
67
|
-
method: Partial<Method> & HasStainlessPath;
|
|
68
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
69
|
-
};
|
|
70
|
-
declare function SDKExample({
|
|
71
|
-
method,
|
|
72
|
-
transformRequestSnippet
|
|
73
|
-
}: SDKExampleProps): react_jsx_runtime47.JSX.Element;
|
|
74
|
-
type SDKMethodProps = {
|
|
75
|
-
method: Method;
|
|
76
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
77
|
-
};
|
|
78
|
-
declare function SDKMethodHeader({
|
|
79
|
-
method
|
|
80
|
-
}: SDKMethodProps): react_jsx_runtime47.JSX.Element;
|
|
81
|
-
declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
|
|
82
|
-
declare function SDKMethodInfo({
|
|
83
|
-
method
|
|
84
|
-
}: SDKMethodProps): react_jsx_runtime47.JSX.Element;
|
|
85
|
-
declare function SDKMethodNotImplemented({
|
|
86
|
-
method
|
|
87
|
-
}: SDKMethodProps): react_jsx_runtime47.JSX.Element;
|
|
88
|
-
declare function SDKMethod({
|
|
89
|
-
method,
|
|
90
|
-
transformRequestSnippet
|
|
91
|
-
}: SDKMethodProps): react_jsx_runtime47.JSX.Element;
|
|
92
|
-
type SDKModelProps = {
|
|
93
|
-
model: Model;
|
|
94
|
-
};
|
|
95
|
-
declare function SDKModel({
|
|
96
|
-
model
|
|
97
|
-
}: SDKModelProps): react_jsx_runtime47.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 | react_jsx_runtime47.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
|
-
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_runtime47.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 { m as Resource } from "./index-CwjGm9zX.js";
|
|
2
|
-
import * as react_jsx_runtime37 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_runtime37.JSX.Element;
|
|
14
|
-
//#endregion
|
|
15
|
-
export { SDKSidebarProps as n, SDKSidebar as t };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { d as Method, o as HasStainlessPath } from "./index-CwjGm9zX.js";
|
|
2
|
-
import { w as TransformRequestSnippetFn } from "./sdk-hxjRpJH0.js";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
|
-
import * as react_jsx_runtime38 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_runtime38.JSX.Element;
|
|
16
|
-
type SnippetProps = {
|
|
17
|
-
method: Partial<Method> & HasStainlessPath;
|
|
18
|
-
requestTitle?: React$1.ReactNode;
|
|
19
|
-
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
20
|
-
};
|
|
21
|
-
type SnippetContainerProps = {
|
|
22
|
-
method: Partial<Method> & HasStainlessPath;
|
|
23
|
-
children: React$1.ReactNode;
|
|
24
|
-
signature?: string;
|
|
25
|
-
};
|
|
26
|
-
declare function SnippetContainer({
|
|
27
|
-
children
|
|
28
|
-
}: SnippetContainerProps): react_jsx_runtime38.JSX.Element;
|
|
29
|
-
type SnippetRequestContainerProps = {
|
|
30
|
-
children?: React$1.ReactNode;
|
|
31
|
-
signature?: string;
|
|
32
|
-
};
|
|
33
|
-
declare function SnippetRequestContainer({
|
|
34
|
-
children
|
|
35
|
-
}: SnippetRequestContainerProps): react_jsx_runtime38.JSX.Element;
|
|
36
|
-
declare function Snippet({
|
|
37
|
-
requestTitle,
|
|
38
|
-
method,
|
|
39
|
-
transformRequestSnippet
|
|
40
|
-
}: SnippetProps): react_jsx_runtime38.JSX.Element | null;
|
|
41
|
-
declare function SnippetButtons({
|
|
42
|
-
content
|
|
43
|
-
}: {
|
|
44
|
-
content: string;
|
|
45
|
-
}): react_jsx_runtime38.JSX.Element;
|
|
46
|
-
declare function SnippetFooter(): React$1.ReactNode;
|
|
47
|
-
declare function SnippetResponse({
|
|
48
|
-
responses
|
|
49
|
-
}: {
|
|
50
|
-
responses: Method['exampleResponses'];
|
|
51
|
-
}): react_jsx_runtime38.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,58 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from "react";
|
|
2
|
-
import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/components/stl-sidebar.d.ts
|
|
5
|
-
declare module 'react' {
|
|
6
|
-
namespace JSX {
|
|
7
|
-
interface IntrinsicElements {
|
|
8
|
-
/**
|
|
9
|
-
* Custom element defined by Starlight's <SidebarPersister>.
|
|
10
|
-
*/
|
|
11
|
-
'sl-sidebar-restore': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
type StlSidebarTarget = {
|
|
16
|
-
type: 'href';
|
|
17
|
-
href: string;
|
|
18
|
-
} | {
|
|
19
|
-
type: 'stainlessPath';
|
|
20
|
-
stainlessPath: string;
|
|
21
|
-
};
|
|
22
|
-
interface StlSidebarLink {
|
|
23
|
-
type: 'link';
|
|
24
|
-
icon?: ReactNode;
|
|
25
|
-
label: string;
|
|
26
|
-
/** Current sidebar item is highlighted. */
|
|
27
|
-
isCurrent?: boolean;
|
|
28
|
-
target: StlSidebarTarget;
|
|
29
|
-
/** Additional HTML attributes that will be attached to the anchor element. */
|
|
30
|
-
attrs?: Record<string, unknown>;
|
|
31
|
-
}
|
|
32
|
-
interface StlSidebarGroup {
|
|
33
|
-
type: 'group';
|
|
34
|
-
icon?: ReactNode;
|
|
35
|
-
label: string;
|
|
36
|
-
entries: Array<StlSidebarLink | StlSidebarGroup>;
|
|
37
|
-
/** Defaults to true. */
|
|
38
|
-
collapsible?: boolean;
|
|
39
|
-
collapsed?: boolean;
|
|
40
|
-
/** Current sidebar item is highlighted. */
|
|
41
|
-
isCurrent?: boolean;
|
|
42
|
-
target?: StlSidebarTarget;
|
|
43
|
-
}
|
|
44
|
-
type StlSidebarEntry = StlSidebarLink | StlSidebarGroup;
|
|
45
|
-
type StlSidebarProps = {
|
|
46
|
-
entries: StlSidebarEntry[];
|
|
47
|
-
/**
|
|
48
|
-
* If set, add <sl-sidebar-restore> custom elements (as defined by Starlight's SidebarPersister)
|
|
49
|
-
* which are used to save/restore sidebar state.
|
|
50
|
-
*/
|
|
51
|
-
withStarlightRestoration?: boolean;
|
|
52
|
-
};
|
|
53
|
-
declare function StlSidebar({
|
|
54
|
-
entries,
|
|
55
|
-
withStarlightRestoration
|
|
56
|
-
}: StlSidebarProps): react_jsx_runtime44.JSX.Element;
|
|
57
|
-
//#endregion
|
|
58
|
-
export { StlSidebarProps as a, StlSidebarLink as i, StlSidebarEntry as n, StlSidebarTarget as o, StlSidebarGroup as r, StlSidebar as t };
|