@stainless-api/docs-ui 0.1.0-beta.81 → 0.1.0-beta.82
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.
|
@@ -58,7 +58,7 @@ type TooltipProps = {
|
|
|
58
58
|
declare function Tooltip({
|
|
59
59
|
content,
|
|
60
60
|
children
|
|
61
|
-
}: TooltipProps): string | number | bigint | boolean |
|
|
61
|
+
}: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
62
62
|
type LinkProps = {
|
|
63
63
|
stainlessPath?: string;
|
|
64
64
|
scroll?: boolean;
|
|
@@ -69,7 +69,7 @@ declare function Link({
|
|
|
69
69
|
scroll,
|
|
70
70
|
children,
|
|
71
71
|
...props
|
|
72
|
-
}: LinkProps): string | number | bigint | boolean |
|
|
72
|
+
}: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime0.JSX.Element | null | undefined;
|
|
73
73
|
type InputProps = {
|
|
74
74
|
left?: ReactNode;
|
|
75
75
|
right?: ReactNode;
|
package/dist/components/sdk.d.ts
CHANGED
|
@@ -108,7 +108,7 @@ type SDKReferenceProps = {
|
|
|
108
108
|
declare function SDKReference({
|
|
109
109
|
stainlessPath,
|
|
110
110
|
children
|
|
111
|
-
}: SDKReferenceProps): string | number | bigint | boolean |
|
|
111
|
+
}: 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_runtime0.JSX.Element | null | undefined;
|
|
112
112
|
type SDKLanguageBlockProps = {
|
|
113
113
|
language: DocsLanguage;
|
|
114
114
|
version: string;
|
package/dist/contexts/docs.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare function useDeclaration<Required extends boolean>(stainlessPath: string,
|
|
|
47
47
|
declare function useAvailableLanguages(stainlessPath: string): SpecLanguage[];
|
|
48
48
|
declare function useIgnoredResources(): string[];
|
|
49
49
|
declare function useResource(name: string): Resource | undefined;
|
|
50
|
-
declare function useLanguage(): "
|
|
50
|
+
declare function useLanguage(): "cli" | "csharp" | "go" | "http" | "java" | "kotlin" | "node" | "php" | "python" | "ruby" | "terraform" | "typescript";
|
|
51
51
|
declare function useContentPanelLayout(): ContentPanelLayout;
|
|
52
52
|
type DocsProviderProps = DocsContextType & {
|
|
53
53
|
children: React$1.ReactNode;
|
package/dist/routing.d.ts
CHANGED
|
@@ -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" | "cli.default" | "csharp.default" | "go.default" | "java.default" | "kotlin.default" | "node.default" | "php.default" | "python.default" | "ruby.default" | "terraform.default" | "typescript.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/spec.d.ts
CHANGED
|
@@ -36,13 +36,13 @@ declare function generateNavigation(resource: Partial<Resource>): {
|
|
|
36
36
|
declare function generateSpecForResource(spec: Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<Spec>;
|
|
37
37
|
declare function transform(spec: Spec, transforms: SpecTransforms): {
|
|
38
38
|
name: string;
|
|
39
|
-
lang: "
|
|
39
|
+
lang: "cli" | "csharp" | "go" | "http" | "java" | "kotlin" | "node" | "php" | "python" | "ruby" | "terraform" | "typescript";
|
|
40
40
|
spec: Partial<Spec>;
|
|
41
41
|
}[];
|
|
42
42
|
declare function split(spec: Spec, transforms?: SpecTransforms): {
|
|
43
43
|
resources: ReturnType<typeof transform>;
|
|
44
44
|
navigation: {
|
|
45
|
-
languages: ("
|
|
45
|
+
languages: ("cli" | "csharp" | "go" | "http" | "java" | "kotlin" | "node" | "php" | "python" | "ruby" | "terraform" | "typescript" | "sql" | "openapi")[] | undefined;
|
|
46
46
|
resources: {
|
|
47
47
|
[k: string]: {
|
|
48
48
|
title: string | undefined;
|
|
@@ -511,7 +511,7 @@
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
/* show link button when expander summary is hovered */
|
|
514
|
-
& > .stldocs-expander:has(> .stldocs-expander-summary:
|
|
514
|
+
& > .stldocs-expander:has(> .stldocs-expander-summary:hover) + .stldocs-deep-link-button,
|
|
515
515
|
/* show link button when non-expander rows are hovered */
|
|
516
516
|
&:not(:has(> .stldocs-expander)):hover > .stldocs-deep-link-button,
|
|
517
517
|
/* keep it visible when it itself is hovered or focused */
|
package/dist/styles.css
CHANGED
|
@@ -1903,7 +1903,7 @@ a.stl-ui-button {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
|
|
1905
1905
|
/* show link button when expander summary is hovered */
|
|
1906
|
-
& > .stldocs-expander:has(> .stldocs-expander-summary:
|
|
1906
|
+
& > .stldocs-expander:has(> .stldocs-expander-summary:hover) + .stldocs-deep-link-button,
|
|
1907
1907
|
/* show link button when non-expander rows are hovered */
|
|
1908
1908
|
&:not(:has(> .stldocs-expander)):hover > .stldocs-deep-link-button,
|
|
1909
1909
|
/* keep it visible when it itself is hovered or focused */
|