@stainless-api/docs-ui 0.1.0-beta.42 → 0.1.0-beta.44
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-CzclTthi.d.ts → breadcrumbs-BWIz-BrA.d.ts} +2 -2
- package/dist/{component-generics-ByT1vFgt.d.ts → component-generics-ofm2M82q.d.ts} +2 -2
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/icons.d.ts +10 -10
- package/dist/components/index.d.ts +9 -9
- package/dist/components/index.js +2 -2
- package/dist/components/method.js +2 -2
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +2 -2
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +2 -2
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +2 -2
- package/dist/components/sdk.d.ts +2 -2
- package/dist/components/sdk.js +2 -2
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +2 -2
- package/dist/components/snippets.d.ts +3 -3
- package/dist/components/snippets.js +2 -2
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +10 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/component.js +2 -2
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +17 -17
- package/dist/contexts/index.js +2 -2
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/navigation.d.ts +2 -2
- package/dist/contexts/search.d.ts +3 -3
- package/dist/contexts/search.js +2 -2
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/{contexts-B-OYzYpz.js → contexts-2HSNy-rE.js} +14 -2
- package/dist/{docs-DjCwGdhK.d.ts → docs-BvahWQ28.d.ts} +3 -3
- package/dist/{index-BchNyYyr.d.ts → index--xwumGAy.d.ts} +6 -6
- package/dist/{index-DdYaNcsn.d.ts → index-BYYbjUs7.d.ts} +7 -7
- package/dist/{index-BBTCk8F3.d.ts → index-C6aGoMyw.d.ts} +26 -26
- package/dist/index.d.ts +17 -17
- package/dist/index.js +2 -2
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +2 -2
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +2 -2
- package/dist/languages/index.d.ts +10 -10
- package/dist/languages/index.js +2 -2
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +2 -2
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +2 -2
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +2 -2
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +2 -2
- package/dist/markdown/index.d.ts +3 -3
- package/dist/markdown/index.js +2 -2
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/{markdown-B98iHG-U.d.ts → markdown-R3kFvQtF.d.ts} +2 -2
- package/dist/{navigation-Dvvk40UA.d.ts → navigation-qVV3i91K.d.ts} +3 -3
- package/dist/{overview-BNHqNXZ5.d.ts → overview-CAseV8q5.d.ts} +6 -6
- package/dist/{primitives-DU9e5Y2K.d.ts → primitives-DKSwbXPi.d.ts} +9 -9
- package/dist/{properties-BK5RP5vK.d.ts → properties-CqXos0BH.d.ts} +4 -4
- package/dist/{routing-CHvzedJA.d.ts → routing-DNN8R6bZ.d.ts} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/{sdk-CrU50vjY.d.ts → sdk-Rlr-Kw5_.d.ts} +14 -14
- package/dist/search/index.d.ts +2 -2
- package/dist/search/index.js +2 -2
- package/dist/search/providers/algolia.d.ts +4 -3
- package/dist/search/providers/algolia.js +3 -3
- package/dist/search/providers/fuse.d.ts +2 -2
- package/dist/search/providers/fuse.js +2 -2
- package/dist/search/providers/pagefind.d.ts +2 -2
- package/dist/search/providers/walker.d.ts +2 -2
- package/dist/search/providers/walker.js +2 -2
- package/dist/search/types.d.ts +3 -3
- package/dist/search/types.js +2 -2
- package/dist/{search-TTlfngs0.d.ts → search-1-mboDcE.d.ts} +3 -3
- package/dist/{sidebar-C3geti3a.d.ts → sidebar-C1v1VnyN.d.ts} +5 -5
- package/dist/{snippets-0rq2aalF.d.ts → snippets-CmrvrMkn.d.ts} +7 -7
- package/dist/spec.d.ts +3 -3
- package/dist/{types-fEIVKcbt.d.ts → types-BSnSUlkN.d.ts} +10 -2
- package/dist/{types-__XoFvJ_.js → types-u0fUIalc.js} +2 -1
- package/dist/{utils-x3A8NyHj.d.ts → utils-C5oXAzyN.d.ts} +2 -2
- package/package.json +4 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime33 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_runtime33.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
3
|
|
|
4
4
|
//#region src/components/overview.d.ts
|
|
@@ -9,31 +9,31 @@ type SDKResourceProps = {
|
|
|
9
9
|
declare function SDKResourceHeader({
|
|
10
10
|
resource,
|
|
11
11
|
parents
|
|
12
|
-
}: SDKResourceProps):
|
|
12
|
+
}: SDKResourceProps): react_jsx_runtime10.JSX.Element | null;
|
|
13
13
|
type SDKMethodSummaryProps = {
|
|
14
14
|
method: SDKJSON.Method;
|
|
15
15
|
};
|
|
16
16
|
declare function SDKMethodSummary({
|
|
17
17
|
method
|
|
18
|
-
}: SDKMethodSummaryProps):
|
|
18
|
+
}: SDKMethodSummaryProps): react_jsx_runtime10.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_runtime10.JSX.Element;
|
|
26
26
|
type SDKOverviewProps = {
|
|
27
27
|
resource: SDKJSON.Resource;
|
|
28
28
|
};
|
|
29
29
|
declare function SDKOverview({
|
|
30
30
|
resource
|
|
31
|
-
}: SDKOverviewProps):
|
|
31
|
+
}: SDKOverviewProps): react_jsx_runtime10.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_runtime10.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,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_runtime67 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_runtime67.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_runtime67.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_runtime67.JSX.Element;
|
|
39
39
|
declare function Markdown({
|
|
40
40
|
content
|
|
41
41
|
}: {
|
|
42
42
|
content: string;
|
|
43
|
-
}): "" |
|
|
43
|
+
}): "" | react_jsx_runtime67.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_runtime67.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<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> |
|
|
59
|
+
}: TooltipProps): string | number | bigint | boolean | react_jsx_runtime67.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;
|
|
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<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> |
|
|
70
|
+
}: LinkProps): string | number | bigint | boolean | react_jsx_runtime67.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;
|
|
71
71
|
type InputProps = {
|
|
72
72
|
left?: ReactNode;
|
|
73
73
|
right?: ReactNode;
|
|
@@ -94,6 +94,6 @@ declare function ListView<TItem>({
|
|
|
94
94
|
itemDelegate,
|
|
95
95
|
onSelectListItem,
|
|
96
96
|
...rest
|
|
97
|
-
}: ListViewProps<TItem>):
|
|
97
|
+
}: ListViewProps<TItem>): react_jsx_runtime67.JSX.Element;
|
|
98
98
|
//#endregion
|
|
99
99
|
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,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime64 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/properties.d.ts
|
|
5
5
|
type PropertyToggleProps = {
|
|
@@ -7,13 +7,13 @@ type PropertyToggleProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare function PropertyToggle({
|
|
9
9
|
target
|
|
10
|
-
}: PropertyToggleProps):
|
|
10
|
+
}: PropertyToggleProps): react_jsx_runtime64.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_runtime64.JSX.Element | undefined;
|
|
17
17
|
type PropertyProps = {
|
|
18
18
|
id?: string;
|
|
19
19
|
name?: ReactNode;
|
|
@@ -41,6 +41,6 @@ declare function Property({
|
|
|
41
41
|
additional,
|
|
42
42
|
constraints,
|
|
43
43
|
children
|
|
44
|
-
}: PropertyProps):
|
|
44
|
+
}: PropertyProps): react_jsx_runtime64.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { PropertyToggle as a, PropertyProps as i, PropertyDescription as n, PropertyToggleProps as o, PropertyDescriptionProps as r, Property as t };
|
|
@@ -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" | "node.default" | "
|
|
11
|
+
declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "node.default" | "go.default" | "python.default" | "terraform.default" | "typescript.default" | "ruby.default" | "java.default" | "kotlin.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 { a as RouteEntry, b as updateHistory, c as expandToElement, d as generateRouteList, f as getLanguageSnippet, g as parseStainlessPath, h as parseRoute, i as ParsedStainlessPath, l as findNavigationPath, m as isSupportedLanguage, n as LanguageNames, o as SpecTreeEntry, p as getResource, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateRoute, v as scrollToPath, x as walkTree, y as trimStainlessPath } from "./routing-
|
|
1
|
+
import { a as RouteEntry, b as updateHistory, c as expandToElement, d as generateRouteList, f as getLanguageSnippet, g as parseStainlessPath, h as parseRoute, i as ParsedStainlessPath, l as findNavigationPath, m as isSupportedLanguage, n as LanguageNames, o as SpecTreeEntry, p as getResource, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateRoute, v as scrollToPath, x as walkTree, y as trimStainlessPath } from "./routing-DNN8R6bZ.js";
|
|
2
2
|
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
4
4
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
5
5
|
|
|
6
6
|
//#region src/components/sdk.d.ts
|
|
@@ -34,7 +34,7 @@ declare function SDKChildren({
|
|
|
34
34
|
paths,
|
|
35
35
|
expand,
|
|
36
36
|
depth
|
|
37
|
-
}: SDKChildrenProps):
|
|
37
|
+
}: SDKChildrenProps): react_jsx_runtime21.JSX.Element;
|
|
38
38
|
type SDKDeclarationProps = {
|
|
39
39
|
path: string;
|
|
40
40
|
expand?: boolean;
|
|
@@ -44,26 +44,26 @@ declare function SDKDeclaration({
|
|
|
44
44
|
path,
|
|
45
45
|
expand,
|
|
46
46
|
depth
|
|
47
|
-
}: SDKDeclarationProps):
|
|
47
|
+
}: SDKDeclarationProps): react_jsx_runtime21.JSX.Element;
|
|
48
48
|
type SDKConstraintsProps = {
|
|
49
49
|
constraints?: Record<string, any>;
|
|
50
50
|
};
|
|
51
51
|
declare function SDKConstraints({
|
|
52
52
|
constraints
|
|
53
|
-
}: SDKConstraintsProps):
|
|
53
|
+
}: SDKConstraintsProps): react_jsx_runtime21.JSX.Element | undefined;
|
|
54
54
|
type SDKIconProps = {
|
|
55
55
|
language: SDKJSON.SnippetLanguage;
|
|
56
56
|
size?: number;
|
|
57
57
|
};
|
|
58
58
|
declare function SDKIcon({
|
|
59
59
|
language
|
|
60
|
-
}: SDKIconProps):
|
|
60
|
+
}: SDKIconProps): react_jsx_runtime21.JSX.Element | null;
|
|
61
61
|
type SDKRequestTitleProps = {
|
|
62
62
|
snippetLanguage: SDKJSON.SnippetLanguage;
|
|
63
63
|
};
|
|
64
64
|
declare function SDKRequestTitle({
|
|
65
65
|
snippetLanguage
|
|
66
|
-
}: SDKRequestTitleProps):
|
|
66
|
+
}: SDKRequestTitleProps): react_jsx_runtime21.JSX.Element;
|
|
67
67
|
type SDKExampleProps = {
|
|
68
68
|
method: SDKJSON.Method;
|
|
69
69
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
@@ -71,27 +71,27 @@ type SDKExampleProps = {
|
|
|
71
71
|
declare function SDKExample({
|
|
72
72
|
method,
|
|
73
73
|
transformRequestSnippet
|
|
74
|
-
}: SDKExampleProps):
|
|
74
|
+
}: SDKExampleProps): react_jsx_runtime21.JSX.Element;
|
|
75
75
|
type SDKMethodProps = {
|
|
76
76
|
method: SDKJSON.Method;
|
|
77
77
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
78
78
|
};
|
|
79
79
|
declare function SDKMethodHeader({
|
|
80
80
|
method
|
|
81
|
-
}: SDKMethodProps):
|
|
81
|
+
}: SDKMethodProps): react_jsx_runtime21.JSX.Element;
|
|
82
82
|
declare function SDKMethodInfo({
|
|
83
83
|
method
|
|
84
|
-
}: SDKMethodProps):
|
|
84
|
+
}: SDKMethodProps): react_jsx_runtime21.JSX.Element;
|
|
85
85
|
declare function SDKMethod({
|
|
86
86
|
method,
|
|
87
87
|
transformRequestSnippet
|
|
88
|
-
}: SDKMethodProps):
|
|
88
|
+
}: SDKMethodProps): react_jsx_runtime21.JSX.Element;
|
|
89
89
|
type SDKModelProps = {
|
|
90
90
|
model: SDKJSON.Model;
|
|
91
91
|
};
|
|
92
92
|
declare function SDKModel({
|
|
93
93
|
model
|
|
94
|
-
}: SDKModelProps):
|
|
94
|
+
}: SDKModelProps): react_jsx_runtime21.JSX.Element | null;
|
|
95
95
|
type SDKReferenceProps = {
|
|
96
96
|
stainlessPath: string;
|
|
97
97
|
children?: React$1.ReactNode;
|
|
@@ -99,7 +99,7 @@ type SDKReferenceProps = {
|
|
|
99
99
|
declare function SDKReference({
|
|
100
100
|
stainlessPath,
|
|
101
101
|
children
|
|
102
|
-
}: 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> |
|
|
102
|
+
}: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime21.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;
|
|
103
103
|
type SDKLanguageBlockProps = {
|
|
104
104
|
language: DocsLanguage;
|
|
105
105
|
version: string;
|
|
@@ -114,6 +114,6 @@ declare function SDKLanguageBlock({
|
|
|
114
114
|
version,
|
|
115
115
|
install,
|
|
116
116
|
links
|
|
117
|
-
}: SDKLanguageBlockProps):
|
|
117
|
+
}: SDKLanguageBlockProps): react_jsx_runtime21.JSX.Element;
|
|
118
118
|
//#endregion
|
|
119
119
|
export { TransformRequestSnippetFn as C, SDKSnippetLanguagesType as S, useReferenceNesting as T, SDKModelProps as _, SDKChildren as a, SDKRequestTitleProps as b, SDKDeclaration as c, SDKLanguageBlock as d, SDKMethod as f, SDKModel as g, SDKMethodProps 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, SDKReference as v, usePropertyModel as w, SDKSnippetLanguages as x, SDKRequestTitle as y };
|
package/dist/search/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../routing-
|
|
2
|
-
import {
|
|
1
|
+
import "../routing-DNN8R6bZ.js";
|
|
2
|
+
import { l as QueryKindsType, u as ResultData } from "../types-BSnSUlkN.js";
|
|
3
3
|
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/search/form.d.ts
|
package/dist/search/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import "../markdown-Diyg-eof.js";
|
|
|
5
5
|
import "../routing-qs2YNG9o.js";
|
|
6
6
|
import { t as style_default } from "../style-BhhgPVF6.js";
|
|
7
7
|
import { t as useComponents } from "../use-components-BHEwm0mE.js";
|
|
8
|
-
import { a as useSearchContext, i as useSearch } from "../contexts-
|
|
8
|
+
import { a as useSearchContext, i as useSearch } from "../contexts-2HSNy-rE.js";
|
|
9
9
|
import "../icons-yb-Jhkmg.js";
|
|
10
10
|
import "../utils-FnJ4tyuN.js";
|
|
11
11
|
import "../md-DxiV1_vy.js";
|
|
12
12
|
import "../utils-Jo_o4DX9.js";
|
|
13
|
-
import { t as QueryKinds } from "../types-
|
|
13
|
+
import { t as QueryKinds } from "../types-u0fUIalc.js";
|
|
14
14
|
import { t as guideSearch } from "../pagefind-BaK1krMe.js";
|
|
15
15
|
import * as React$1 from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import "../../routing-
|
|
2
|
-
import {
|
|
1
|
+
import "../../routing-DNN8R6bZ.js";
|
|
2
|
+
import { f as ResultType, g as SearchSettings, h as SearchParams, s as ProseIndexEntry } from "../../types-BSnSUlkN.js";
|
|
3
3
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
4
|
|
|
5
5
|
//#region src/search/providers/algolia.d.ts
|
|
6
6
|
declare function buildIndex(appId: string, indexName: string, writeKey: string, spec: SDKJSON.Spec, renderMarkdown: (_: string) => string | null): Promise<void>;
|
|
7
7
|
declare function buildChatIndex(appId: string, indexName: string, writeKey: string, spec: SDKJSON.Spec): Promise<void>;
|
|
8
|
+
declare function buildProseIndex(appId: string, indexName: string, writeKey: string, objects: ProseIndexEntry[]): Promise<void>;
|
|
8
9
|
declare function search({
|
|
9
10
|
settings: {
|
|
10
11
|
appId,
|
|
@@ -21,4 +22,4 @@ declare function search({
|
|
|
21
22
|
settings: SearchSettings;
|
|
22
23
|
}): Promise<ResultType | undefined>;
|
|
23
24
|
//#endregion
|
|
24
|
-
export { buildChatIndex, buildIndex, search };
|
|
25
|
+
export { buildChatIndex, buildIndex, buildProseIndex, search };
|
|
@@ -5,11 +5,11 @@ import "../../markdown-Diyg-eof.js";
|
|
|
5
5
|
import "../../routing-qs2YNG9o.js";
|
|
6
6
|
import "../../style-BhhgPVF6.js";
|
|
7
7
|
import "../../use-components-BHEwm0mE.js";
|
|
8
|
-
import { c as search, o as buildChatIndex, s as buildIndex } from "../../contexts-
|
|
8
|
+
import { c as buildProseIndex, l as search, o as buildChatIndex, s as buildIndex } from "../../contexts-2HSNy-rE.js";
|
|
9
9
|
import "../../icons-yb-Jhkmg.js";
|
|
10
10
|
import "../../utils-FnJ4tyuN.js";
|
|
11
11
|
import "../../md-DxiV1_vy.js";
|
|
12
12
|
import "../../utils-Jo_o4DX9.js";
|
|
13
|
-
import "../../types-
|
|
13
|
+
import "../../types-u0fUIalc.js";
|
|
14
14
|
|
|
15
|
-
export { buildChatIndex, buildIndex, search };
|
|
15
|
+
export { buildChatIndex, buildIndex, buildProseIndex, search };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "../../routing-
|
|
2
|
-
import { n as IndexEntry } from "../../types-
|
|
1
|
+
import { t as DocsLanguage } from "../../routing-DNN8R6bZ.js";
|
|
2
|
+
import { n as IndexEntry } from "../../types-BSnSUlkN.js";
|
|
3
3
|
import * as fuse_js0 from "fuse.js";
|
|
4
4
|
import { FuseIndex } from "fuse.js";
|
|
5
5
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
@@ -5,12 +5,12 @@ import "../../markdown-Diyg-eof.js";
|
|
|
5
5
|
import "../../routing-qs2YNG9o.js";
|
|
6
6
|
import "../../style-BhhgPVF6.js";
|
|
7
7
|
import "../../use-components-BHEwm0mE.js";
|
|
8
|
-
import {
|
|
8
|
+
import { u as generateIndex } from "../../contexts-2HSNy-rE.js";
|
|
9
9
|
import "../../icons-yb-Jhkmg.js";
|
|
10
10
|
import "../../utils-FnJ4tyuN.js";
|
|
11
11
|
import "../../md-DxiV1_vy.js";
|
|
12
12
|
import "../../utils-Jo_o4DX9.js";
|
|
13
|
-
import { n as SearchableAttributes } from "../../types-
|
|
13
|
+
import { n as SearchableAttributes } from "../../types-u0fUIalc.js";
|
|
14
14
|
import Fuse from "fuse.js";
|
|
15
15
|
|
|
16
16
|
//#region src/search/providers/fuse.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../routing-
|
|
2
|
-
import { t as GuideResultType } from "../../types-
|
|
1
|
+
import "../../routing-DNN8R6bZ.js";
|
|
2
|
+
import { t as GuideResultType } from "../../types-BSnSUlkN.js";
|
|
3
3
|
|
|
4
4
|
//#region src/search/providers/pagefind.d.ts
|
|
5
5
|
declare function guideSearch(loadPath: string, query: string, limit?: number): Promise<GuideResultType[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "../../routing-
|
|
2
|
-
import { n as IndexEntry } from "../../types-
|
|
1
|
+
import { t as DocsLanguage } from "../../routing-DNN8R6bZ.js";
|
|
2
|
+
import { n as IndexEntry } from "../../types-BSnSUlkN.js";
|
|
3
3
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
4
|
|
|
5
5
|
//#region src/search/providers/walker.d.ts
|
|
@@ -5,12 +5,12 @@ import "../../markdown-Diyg-eof.js";
|
|
|
5
5
|
import "../../routing-qs2YNG9o.js";
|
|
6
6
|
import "../../style-BhhgPVF6.js";
|
|
7
7
|
import "../../use-components-BHEwm0mE.js";
|
|
8
|
-
import {
|
|
8
|
+
import { u as generateIndex } from "../../contexts-2HSNy-rE.js";
|
|
9
9
|
import "../../icons-yb-Jhkmg.js";
|
|
10
10
|
import "../../utils-FnJ4tyuN.js";
|
|
11
11
|
import "../../md-DxiV1_vy.js";
|
|
12
12
|
import "../../utils-Jo_o4DX9.js";
|
|
13
|
-
import { n as SearchableAttributes } from "../../types-
|
|
13
|
+
import { n as SearchableAttributes } from "../../types-u0fUIalc.js";
|
|
14
14
|
|
|
15
15
|
//#region src/search/providers/walker.ts
|
|
16
16
|
function buildIndex(spec) {
|
package/dist/search/types.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../routing-
|
|
2
|
-
import { _ as
|
|
3
|
-
export { GuideResultType, IndexEntry, IndexMethod, IndexModel, IndexProperty, IndexResource, QueryKinds, QueryKindsType, ResultData, ResultRecordType, ResultType, RoutableJsonNode, SearchAttributeNames, SearchParams, SearchSettings, SearchableAttributes, SearchableAttributesChat };
|
|
1
|
+
import "../routing-DNN8R6bZ.js";
|
|
2
|
+
import { _ as SearchableAttributes, a as IndexProperty, c as QueryKinds, d as ResultRecordType, f as ResultType, g as SearchSettings, h as SearchParams, i as IndexModel, l as QueryKindsType, m as SearchAttributeNames, n as IndexEntry, o as IndexResource, p as RoutableJsonNode, r as IndexMethod, s as ProseIndexEntry, t as GuideResultType, u as ResultData, v as SearchableAttributesChat, y as SearchableAttributesProse } from "../types-BSnSUlkN.js";
|
|
3
|
+
export { GuideResultType, IndexEntry, IndexMethod, IndexModel, IndexProperty, IndexResource, ProseIndexEntry, QueryKinds, QueryKindsType, ResultData, ResultRecordType, ResultType, RoutableJsonNode, SearchAttributeNames, SearchParams, SearchSettings, SearchableAttributes, SearchableAttributesChat, SearchableAttributesProse };
|
package/dist/search/types.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as SearchableAttributes, r as SearchableAttributesChat, t as QueryKinds } from "../types-
|
|
1
|
+
import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat, t as QueryKinds } from "../types-u0fUIalc.js";
|
|
2
2
|
|
|
3
|
-
export { QueryKinds, SearchableAttributes, SearchableAttributesChat };
|
|
3
|
+
export { QueryKinds, SearchableAttributes, SearchableAttributesChat, SearchableAttributesProse };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as ResultType, g as SearchSettings, h as SearchParams } from "./types-BSnSUlkN.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/contexts/search.d.ts
|
|
6
6
|
type SearchContextType = {
|
|
@@ -16,6 +16,6 @@ type SearchProviderProps = SearchContextType & {
|
|
|
16
16
|
declare function SearchProvider({
|
|
17
17
|
children,
|
|
18
18
|
...props
|
|
19
|
-
}: SearchProviderProps):
|
|
19
|
+
}: SearchProviderProps): react_jsx_runtime15.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { useSearchContext as a, useSearch as i, SearchProvider as n, SearchProviderProps as r, SearchContextType as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
3
3
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
4
|
|
|
5
5
|
//#region src/components/sidebar.d.ts
|
|
@@ -12,25 +12,25 @@ declare function SidebarExpander({
|
|
|
12
12
|
open,
|
|
13
13
|
summary,
|
|
14
14
|
children
|
|
15
|
-
}: SidebarExpanderProps):
|
|
15
|
+
}: SidebarExpanderProps): react_jsx_runtime35.JSX.Element;
|
|
16
16
|
type SidebarMethodProps = {
|
|
17
17
|
method: SDKJSON.Method;
|
|
18
18
|
};
|
|
19
19
|
declare function SidebarMethod({
|
|
20
20
|
method
|
|
21
|
-
}: SidebarMethodProps):
|
|
21
|
+
}: SidebarMethodProps): react_jsx_runtime35.JSX.Element;
|
|
22
22
|
type SidebarResourceProps = {
|
|
23
23
|
resource: SDKJSON.Resource;
|
|
24
24
|
};
|
|
25
25
|
declare function SidebarResource({
|
|
26
26
|
resource
|
|
27
|
-
}: SidebarResourceProps):
|
|
27
|
+
}: SidebarResourceProps): react_jsx_runtime35.JSX.Element;
|
|
28
28
|
type SidebarProps = {
|
|
29
29
|
resources: SDKJSON.Resource[];
|
|
30
30
|
selectedPath?: string;
|
|
31
31
|
};
|
|
32
32
|
declare function Sidebar({
|
|
33
33
|
resources
|
|
34
|
-
}: SidebarProps):
|
|
34
|
+
}: SidebarProps): react_jsx_runtime35.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-Rlr-Kw5_.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
4
4
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
5
5
|
|
|
6
6
|
//#region src/components/snippets.d.ts
|
|
@@ -12,7 +12,7 @@ type SnippetCodeProps = {
|
|
|
12
12
|
declare function SnippetCode({
|
|
13
13
|
content,
|
|
14
14
|
language
|
|
15
|
-
}: SnippetCodeProps):
|
|
15
|
+
}: SnippetCodeProps): react_jsx_runtime76.JSX.Element;
|
|
16
16
|
type SnippetProps = {
|
|
17
17
|
method: SDKJSON.Method;
|
|
18
18
|
requestTitle?: React$1.ReactNode;
|
|
@@ -24,23 +24,23 @@ type SnippetContainerProps = {
|
|
|
24
24
|
};
|
|
25
25
|
declare function SnippetContainer({
|
|
26
26
|
children
|
|
27
|
-
}: SnippetContainerProps):
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime76.JSX.Element;
|
|
28
28
|
type SnippetRequestContainerProps = {
|
|
29
29
|
children?: React$1.ReactNode;
|
|
30
30
|
signature?: string;
|
|
31
31
|
};
|
|
32
32
|
declare function SnippetRequestContainer({
|
|
33
33
|
children
|
|
34
|
-
}: SnippetRequestContainerProps):
|
|
34
|
+
}: SnippetRequestContainerProps): react_jsx_runtime76.JSX.Element;
|
|
35
35
|
declare function Snippet({
|
|
36
36
|
requestTitle,
|
|
37
37
|
method,
|
|
38
38
|
transformRequestSnippet
|
|
39
|
-
}: SnippetProps):
|
|
39
|
+
}: SnippetProps): react_jsx_runtime76.JSX.Element | null;
|
|
40
40
|
declare function SnippetResponse({
|
|
41
41
|
responses
|
|
42
42
|
}: {
|
|
43
43
|
responses: SDKJSON.Method['exampleResponses'];
|
|
44
|
-
}):
|
|
44
|
+
}): react_jsx_runtime76.JSX.Element | null;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SnippetContainerProps as a, SnippetRequestContainerProps as c, SnippetContainer as i, SnippetResponse as l, SnippetCode as n, SnippetProps as o, SnippetCodeProps as r, SnippetRequestContainer as s, Snippet as t };
|
package/dist/spec.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
|
|
2
2
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.d.ts
|
|
@@ -36,13 +36,13 @@ declare function generateNavigation(resource: Partial<SDKJSON.Resource>): {
|
|
|
36
36
|
declare function generateSpecForResource(spec: SDKJSON.Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<SDKJSON.Spec>;
|
|
37
37
|
declare function transform(spec: SDKJSON.Spec, transforms: SpecTransforms): {
|
|
38
38
|
name: string;
|
|
39
|
-
lang: "
|
|
39
|
+
lang: "node" | "go" | "python" | "terraform" | "http" | "typescript" | "ruby" | "java" | "kotlin";
|
|
40
40
|
spec: Partial<SDKJSON.Spec>;
|
|
41
41
|
}[];
|
|
42
42
|
declare function split(spec: SDKJSON.Spec, transforms?: SpecTransforms): {
|
|
43
43
|
resources: ReturnType<typeof transform>;
|
|
44
44
|
navigation: {
|
|
45
|
-
languages: ("
|
|
45
|
+
languages: ("node" | "go" | "python" | "terraform" | "http" | "typescript" | "ruby" | "java" | "kotlin")[] | undefined;
|
|
46
46
|
resources: {
|
|
47
47
|
[k: string]: {
|
|
48
48
|
title: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
|
|
2
2
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
3
|
|
|
4
4
|
//#region src/search/types.d.ts
|
|
@@ -39,6 +39,7 @@ type IndexMethod = Pick<SDKJSON.Method, 'kind' | 'summary' | 'description' | 'en
|
|
|
39
39
|
};
|
|
40
40
|
declare const SearchableAttributes: readonly ["name", "title", "ident", "Name", "qualified", "QualifiedName", "endpoint", "summary", "description", "docstring"];
|
|
41
41
|
declare const SearchableAttributesChat: string[];
|
|
42
|
+
declare const SearchableAttributesProse: string[];
|
|
42
43
|
type SearchAttributeNames = (typeof SearchableAttributes)[number];
|
|
43
44
|
type RoutableJsonNode = SDKJSON.Method | SDKJSON.Model | SDKJSON.Resource;
|
|
44
45
|
type IndexEntry = Pick<RoutableJsonNode, 'name' | 'stainlessPath'> & (IndexProperty | IndexModel | IndexResource | IndexMethod) & {
|
|
@@ -79,5 +80,12 @@ type ResultData = {
|
|
|
79
80
|
items: Array<ResultRecordType | GuideResultType>;
|
|
80
81
|
counts: Partial<Record<QueryKindsType, number>>;
|
|
81
82
|
};
|
|
83
|
+
type ProseIndexEntry = {
|
|
84
|
+
id?: string;
|
|
85
|
+
tag: string;
|
|
86
|
+
content: string;
|
|
87
|
+
source?: string;
|
|
88
|
+
[additional: string]: unknown;
|
|
89
|
+
};
|
|
82
90
|
//#endregion
|
|
83
|
-
export {
|
|
91
|
+
export { SearchableAttributes as _, IndexProperty as a, QueryKinds as c, ResultRecordType as d, ResultType as f, SearchSettings as g, SearchParams as h, IndexModel as i, QueryKindsType as l, SearchAttributeNames as m, IndexEntry as n, IndexResource as o, RoutableJsonNode as p, IndexMethod as r, ProseIndexEntry as s, GuideResultType as t, ResultData as u, SearchableAttributesChat as v, SearchableAttributesProse as y };
|
|
@@ -29,6 +29,7 @@ const SearchableAttributesChat = [
|
|
|
29
29
|
"ident",
|
|
30
30
|
"content"
|
|
31
31
|
];
|
|
32
|
+
const SearchableAttributesProse = ["content"];
|
|
32
33
|
|
|
33
34
|
//#endregion
|
|
34
|
-
export { SearchableAttributes as n, SearchableAttributesChat as r, QueryKinds as t };
|
|
35
|
+
export { SearchableAttributesProse as i, SearchableAttributes as n, SearchableAttributesChat as r, QueryKinds as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
2
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
|
|
2
|
+
import { C as TransformRequestSnippetFn } from "./sdk-Rlr-Kw5_.js";
|
|
3
3
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/utils.d.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.44",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"fuse.js": "^7.1.0",
|
|
21
21
|
"htmlparser2": "^10.0.0",
|
|
22
22
|
"lucide-react": "^0.555.0",
|
|
23
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
23
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.32"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "24.10.1",
|
|
27
27
|
"@types/react": "^19.2.7",
|
|
28
28
|
"@types/react-dom": "^19.2.3",
|
|
29
29
|
"dotenv": "17.2.3",
|
|
30
|
-
"react": "^19.2.
|
|
31
|
-
"react-dom": "^19.2.
|
|
30
|
+
"react": "^19.2.1",
|
|
31
|
+
"react-dom": "^19.2.1",
|
|
32
32
|
"tsdown": "^0.16.8",
|
|
33
33
|
"typescript": "5.9.3",
|
|
34
34
|
"@stainless/eslint-config": "0.1.0-beta.0",
|