@stainless-api/docs-ui 0.1.0-beta.83 → 0.1.0-beta.84
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/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;
|
|
@@ -194,6 +194,13 @@
|
|
|
194
194
|
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
195
195
|
padding-right: var(--stldocs-expander-right-margin);
|
|
196
196
|
}
|
|
197
|
+
/* move margin to .stldocs-property parent where possible to fix safari subgrid bug */
|
|
198
|
+
.stldocs-property:has(> .stldocs-expander) {
|
|
199
|
+
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
200
|
+
& > .stldocs-expander {
|
|
201
|
+
margin-left: 0;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
197
204
|
}
|
|
198
205
|
}
|
|
199
206
|
}
|
package/dist/styles.css
CHANGED
|
@@ -1586,6 +1586,13 @@ a.stl-ui-button {
|
|
|
1586
1586
|
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
1587
1587
|
padding-right: var(--stldocs-expander-right-margin);
|
|
1588
1588
|
}
|
|
1589
|
+
/* move margin to .stldocs-property parent where possible to fix safari subgrid bug */
|
|
1590
|
+
.stldocs-property:has(> .stldocs-expander) {
|
|
1591
|
+
margin-left: calc(-1 * var(--stldocs-expander-margin-shift));
|
|
1592
|
+
& > .stldocs-expander {
|
|
1593
|
+
margin-left: 0;
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1589
1596
|
}
|
|
1590
1597
|
}
|
|
1591
1598
|
}
|