@stainless-api/docs-ui 0.1.0-beta.53 → 0.1.0-beta.54
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-B3lvHi-c.d.ts → breadcrumbs-CysDvz5L.d.ts} +8 -3
- package/dist/{breadcrumbs-CMuhzgT7.js → breadcrumbs-DgN-xdoA.js} +3 -3
- package/dist/{breadcrumbs-DgJ-MlEX.d.ts → breadcrumbs-Dr94uqc3.d.ts} +8 -3
- package/dist/{component-BYfWhHQW.js → component-CjLDkCLe.js} +2 -2
- package/dist/{component-generics-DXP3ULvt.d.ts → component-generics-DBrwfCEE.d.ts} +2 -2
- package/dist/{component-generics-VJ70v3jX.d.ts → component-generics-XM4u-Dns.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 +2 -2
- package/dist/components/breadcrumbs.js +3 -3
- package/dist/components/icons.d.ts +11 -11
- 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.d.ts +1 -1
- package/dist/components/sdk.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +3 -3
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +1 -1
- package/dist/{components-D8QDCui1.js → components-oq97SH1A.js} +9 -8
- 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 +18 -18
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +14 -14
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/{csharp-Ba5efX6D.js → csharp-E3FbT47c.js} +1 -1
- package/dist/{docs-MVz2XX5s.d.ts → docs-CTY2OmmX.d.ts} +3 -3
- package/dist/{go-CpQCf3l5.js → go-DNSFGJle.js} +1 -1
- package/dist/{http-DnXtwYax.js → http-DXRdcllM.js} +2 -2
- package/dist/{index-DBINmyRo.d.ts → index-B5r4ELg6.d.ts} +30 -30
- package/dist/{index-CNuNmlhP.d.ts → index-BouuY88M.d.ts} +30 -30
- package/dist/{index-xsX1w-7u.d.ts → index-Cr9OL_Cp.d.ts} +9 -9
- package/dist/{index-CX7THZ5A.d.ts → index-I43iZfIE.d.ts} +9 -9
- package/dist/index.d.ts +15 -15
- package/dist/index.js +18 -18
- package/dist/{java-BnaaIuAz.js → java-X1yS0K52.js} +1 -1
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/csharp.js +1 -1
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +1 -1
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +10 -10
- package/dist/languages/index.d.ts +10 -10
- package/dist/languages/index.js +17 -17
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +1 -1
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +1 -1
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +1 -1
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +1 -1
- package/dist/{languages-DXv7zsEW.js → languages-Ir9QQoCT.js} +7 -7
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.js +18 -18
- package/dist/markdown/printer.d.ts +1 -1
- package/dist/markdown/printer.js +19 -19
- package/dist/markdown/utils.d.ts +2 -2
- package/dist/{markdown--wN50S_T.d.ts → markdown-D5IxykeS.d.ts} +2 -2
- package/dist/{method-cLcsCc31.d.ts → method-BDSi2Xo0.d.ts} +7 -7
- package/dist/{method-qhstNvML.js → method-nEcioXL5.js} +2 -2
- package/dist/{method-CrNc3HtN.d.ts → method-yQoZRX6j.d.ts} +7 -7
- package/dist/{navigation-ULXC5uFs.d.ts → navigation-Cy3fvjdT.d.ts} +2 -2
- package/dist/{navigation-BJKh5ucf.d.ts → navigation-DbIx-eWp.d.ts} +3 -3
- package/dist/{overview-B0C2Jc86.js → overview-BQk6WvtS.js} +3 -3
- package/dist/{overview-DaVwshbY.d.ts → overview-Bq6DqXr2.d.ts} +6 -6
- package/dist/{overview-Cy78uUKW.d.ts → overview-YYFEHa8T.d.ts} +6 -6
- package/dist/{primitives-DBllhZFN.js → primitives-1WQd5NT-.js} +2 -2
- package/dist/{primitives-DsRHkHGI.d.ts → primitives-BgkRZCRD.d.ts} +9 -9
- package/dist/{primitives-Bjj20ctf.d.ts → primitives-CXBFkjk0.d.ts} +9 -9
- package/dist/{properties-N8WgxEHE.js → properties-BTdEzx5f.js} +1 -1
- package/dist/{properties-BRaEgTX5.d.ts → properties-BrJy8EG2.d.ts} +5 -5
- package/dist/{properties-fj-2sAW8.d.ts → properties-sqAOq5FR.d.ts} +5 -5
- package/dist/{python-DsTU3C4E.js → python-DqdvqQ9I.js} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/{ruby-CLGbdYN8.js → ruby-CHeld1ey.js} +1 -1
- package/dist/{sdk-zkHxx2nq.d.ts → sdk-BQEqCwI6.d.ts} +13 -13
- package/dist/{sdk-BBe_u8ZX.d.ts → sdk-CpRaFmFQ.d.ts} +14 -14
- package/dist/{sdk-BKdaidz1.js → sdk-DEoUlY8I.js} +1 -1
- package/dist/{sidebar-BaDPwqdV.d.ts → sidebar-CgBa9Ckc.d.ts} +5 -5
- package/dist/{sidebar-sPFdjATU.d.ts → sidebar-DImBt9YH.d.ts} +5 -5
- package/dist/{sidebar-BWDZQSmn.js → sidebar-D_cK7JN_.js} +2 -2
- package/dist/{snippets-DYnUt5eM.js → snippets-BiXJx1BL.js} +1 -1
- package/dist/{snippets-B0sKAjU-.d.ts → snippets-Cemr-6OZ.d.ts} +8 -8
- package/dist/{snippets-BQgrub4H.d.ts → snippets-DCiTB0N4.d.ts} +8 -8
- package/dist/spec.d.ts +3 -3
- package/dist/{style-gnVEeXFj.js → style-cJZFOvnF.js} +3 -0
- package/dist/style.d.ts +3 -0
- package/dist/style.js +1 -1
- package/dist/styles/primitives.css +11 -6
- package/dist/styles/search.css +51 -32
- package/dist/styles.css +62 -38
- package/dist/{typescript-CJraLOyM.js → typescript-C--P_L-R.js} +1 -1
- package/package.json +1 -1
- package/dist/routing-BcWYAHJp.d.ts +0 -54
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-CUnVDpU-.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
4
4
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
5
5
|
|
|
6
6
|
//#region src/components/sdk.d.ts
|
|
@@ -33,7 +33,7 @@ declare function SDKChildren({
|
|
|
33
33
|
paths,
|
|
34
34
|
expand,
|
|
35
35
|
depth
|
|
36
|
-
}: SDKChildrenProps):
|
|
36
|
+
}: SDKChildrenProps): react_jsx_runtime55.JSX.Element;
|
|
37
37
|
type SDKDeclarationProps = {
|
|
38
38
|
path: string;
|
|
39
39
|
expand?: boolean;
|
|
@@ -43,26 +43,26 @@ declare function SDKDeclaration({
|
|
|
43
43
|
path,
|
|
44
44
|
expand,
|
|
45
45
|
depth
|
|
46
|
-
}: SDKDeclarationProps):
|
|
46
|
+
}: SDKDeclarationProps): react_jsx_runtime55.JSX.Element;
|
|
47
47
|
type SDKConstraintsProps = {
|
|
48
48
|
constraints?: Record<string, any>;
|
|
49
49
|
};
|
|
50
50
|
declare function SDKConstraints({
|
|
51
51
|
constraints
|
|
52
|
-
}: SDKConstraintsProps):
|
|
52
|
+
}: SDKConstraintsProps): react_jsx_runtime55.JSX.Element | undefined;
|
|
53
53
|
type SDKIconProps = {
|
|
54
54
|
language: SDKJSON.SnippetLanguage;
|
|
55
55
|
size?: number;
|
|
56
56
|
};
|
|
57
57
|
declare function SDKIcon({
|
|
58
58
|
language
|
|
59
|
-
}: SDKIconProps):
|
|
59
|
+
}: SDKIconProps): react_jsx_runtime55.JSX.Element | null;
|
|
60
60
|
type SDKRequestTitleProps = {
|
|
61
61
|
snippetLanguage: SDKJSON.SnippetLanguage;
|
|
62
62
|
};
|
|
63
63
|
declare function SDKRequestTitle({
|
|
64
64
|
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps):
|
|
65
|
+
}: SDKRequestTitleProps): react_jsx_runtime55.JSX.Element;
|
|
66
66
|
type SDKExampleProps = {
|
|
67
67
|
method: SDKJSON.Method;
|
|
68
68
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
@@ -70,27 +70,27 @@ type SDKExampleProps = {
|
|
|
70
70
|
declare function SDKExample({
|
|
71
71
|
method,
|
|
72
72
|
transformRequestSnippet
|
|
73
|
-
}: SDKExampleProps):
|
|
73
|
+
}: SDKExampleProps): react_jsx_runtime55.JSX.Element;
|
|
74
74
|
type SDKMethodProps = {
|
|
75
75
|
method: SDKJSON.Method;
|
|
76
76
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
77
77
|
};
|
|
78
78
|
declare function SDKMethodHeader({
|
|
79
79
|
method
|
|
80
|
-
}: SDKMethodProps):
|
|
80
|
+
}: SDKMethodProps): react_jsx_runtime55.JSX.Element;
|
|
81
81
|
declare function SDKMethodInfo({
|
|
82
82
|
method
|
|
83
|
-
}: SDKMethodProps):
|
|
83
|
+
}: SDKMethodProps): react_jsx_runtime55.JSX.Element;
|
|
84
84
|
declare function SDKMethod({
|
|
85
85
|
method,
|
|
86
86
|
transformRequestSnippet
|
|
87
|
-
}: SDKMethodProps):
|
|
87
|
+
}: SDKMethodProps): react_jsx_runtime55.JSX.Element;
|
|
88
88
|
type SDKModelProps = {
|
|
89
89
|
model: SDKJSON.Model;
|
|
90
90
|
};
|
|
91
91
|
declare function SDKModel({
|
|
92
92
|
model
|
|
93
|
-
}: SDKModelProps):
|
|
93
|
+
}: SDKModelProps): react_jsx_runtime55.JSX.Element | null;
|
|
94
94
|
type SDKReferenceProps = {
|
|
95
95
|
stainlessPath: string;
|
|
96
96
|
children?: React$1.ReactNode;
|
|
@@ -98,7 +98,7 @@ type SDKReferenceProps = {
|
|
|
98
98
|
declare function SDKReference({
|
|
99
99
|
stainlessPath,
|
|
100
100
|
children
|
|
101
|
-
}: 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> |
|
|
101
|
+
}: SDKReferenceProps): string | number | bigint | boolean | react_jsx_runtime55.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;
|
|
102
102
|
type SDKLanguageBlockProps = {
|
|
103
103
|
language: DocsLanguage;
|
|
104
104
|
version: string;
|
|
@@ -113,6 +113,6 @@ declare function SDKLanguageBlock({
|
|
|
113
113
|
version,
|
|
114
114
|
install,
|
|
115
115
|
links
|
|
116
|
-
}: SDKLanguageBlockProps):
|
|
116
|
+
}: SDKLanguageBlockProps): react_jsx_runtime55.JSX.Element;
|
|
117
117
|
//#endregion
|
|
118
118
|
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 };
|
|
@@ -2,7 +2,7 @@ import { a as useLanguage, l as useSpec, n as useContentPanelLayout, r as useDec
|
|
|
2
2
|
import { n as useNavigation } from "./navigation-C5TN0SgC.js";
|
|
3
3
|
import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
|
|
4
4
|
import { t as useComponents } from "./use-components-DBx5LZk0.js";
|
|
5
|
-
import { t as style_default } from "./style-
|
|
5
|
+
import { t as style_default } from "./style-cJZFOvnF.js";
|
|
6
6
|
import { c as getLanguageSnippet, t as LanguageNames } from "./routing-Dl0FprK1.js";
|
|
7
7
|
import { a as KotlinIcon, c as RubyIcon, i as JavaIcon, l as TerraformIcon, n as CurlIcon, o as PowershellIcon, r as GoIcon, s as PythonIcon, t as CSharpIcon, u as TypescriptIcon } from "./icons-Ckod9aod.js";
|
|
8
8
|
import * as React$1 from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 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_runtime18.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_runtime18.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_runtime18.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_runtime18.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,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime43 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_runtime43.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_runtime43.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_runtime43.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_runtime43.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,7 +1,7 @@
|
|
|
1
1
|
import { n as useNavigation } from "./navigation-C5TN0SgC.js";
|
|
2
2
|
import { t as useComponents } from "./use-components-DBx5LZk0.js";
|
|
3
|
-
import { t as style_default } from "./style-
|
|
4
|
-
import { o as MethodIconBadge } from "./method-
|
|
3
|
+
import { t as style_default } from "./style-cJZFOvnF.js";
|
|
4
|
+
import { o as MethodIconBadge } from "./method-nEcioXL5.js";
|
|
5
5
|
import { r as isResourceEmpty } from "./utils-C12Fme2N.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as useLanguage, c as useSnippet, r as useDeclaration } from "./docs-CXqi26jB.js";
|
|
2
2
|
import { r as useHighlight } from "./markdown-CxdeWgjV.js";
|
|
3
3
|
import { t as useComponents } from "./use-components-DBx5LZk0.js";
|
|
4
|
-
import { t as style_default } from "./style-
|
|
4
|
+
import { t as style_default } from "./style-cJZFOvnF.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { CheckIcon, CircleAlertIcon, CopyIcon } from "lucide-react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-BQEqCwI6.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime47 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_runtime47.JSX.Element;
|
|
16
16
|
type SnippetProps = {
|
|
17
17
|
method: SDKJSON.Method;
|
|
18
18
|
requestTitle?: React$1.ReactNode;
|
|
@@ -24,28 +24,28 @@ type SnippetContainerProps = {
|
|
|
24
24
|
};
|
|
25
25
|
declare function SnippetContainer({
|
|
26
26
|
children
|
|
27
|
-
}: SnippetContainerProps):
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime47.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_runtime47.JSX.Element;
|
|
35
35
|
declare function Snippet({
|
|
36
36
|
requestTitle,
|
|
37
37
|
method,
|
|
38
38
|
transformRequestSnippet
|
|
39
|
-
}: SnippetProps):
|
|
39
|
+
}: SnippetProps): react_jsx_runtime47.JSX.Element | null;
|
|
40
40
|
declare function SnippetButtons({
|
|
41
41
|
content
|
|
42
42
|
}: {
|
|
43
43
|
content: string;
|
|
44
|
-
}):
|
|
44
|
+
}): react_jsx_runtime47.JSX.Element;
|
|
45
45
|
declare function SnippetResponse({
|
|
46
46
|
responses
|
|
47
47
|
}: {
|
|
48
48
|
responses: SDKJSON.Method['exampleResponses'];
|
|
49
|
-
}):
|
|
49
|
+
}): react_jsx_runtime47.JSX.Element | null;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { SnippetContainer as a, SnippetRequestContainer as c, SnippetCodeProps as i, SnippetRequestContainerProps as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetProps as s, Snippet as t, SnippetResponse as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-CpRaFmFQ.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime81 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_runtime81.JSX.Element;
|
|
16
16
|
type SnippetProps = {
|
|
17
17
|
method: SDKJSON.Method;
|
|
18
18
|
requestTitle?: React$1.ReactNode;
|
|
@@ -24,28 +24,28 @@ type SnippetContainerProps = {
|
|
|
24
24
|
};
|
|
25
25
|
declare function SnippetContainer({
|
|
26
26
|
children
|
|
27
|
-
}: SnippetContainerProps):
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime81.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_runtime81.JSX.Element;
|
|
35
35
|
declare function Snippet({
|
|
36
36
|
requestTitle,
|
|
37
37
|
method,
|
|
38
38
|
transformRequestSnippet
|
|
39
|
-
}: SnippetProps):
|
|
39
|
+
}: SnippetProps): react_jsx_runtime81.JSX.Element | null;
|
|
40
40
|
declare function SnippetButtons({
|
|
41
41
|
content
|
|
42
42
|
}: {
|
|
43
43
|
content: string;
|
|
44
|
-
}):
|
|
44
|
+
}): react_jsx_runtime81.JSX.Element;
|
|
45
45
|
declare function SnippetResponse({
|
|
46
46
|
responses
|
|
47
47
|
}: {
|
|
48
48
|
responses: SDKJSON.Method['exampleResponses'];
|
|
49
|
-
}):
|
|
49
|
+
}): react_jsx_runtime81.JSX.Element | null;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { SnippetContainer as a, SnippetRequestContainer as c, SnippetCodeProps as i, SnippetRequestContainerProps as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetProps as s, Snippet as t, SnippetResponse as u };
|
package/dist/spec.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-CUnVDpU-.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: "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
|
|
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: ("http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin")[] | undefined;
|
|
46
46
|
resources: {
|
|
47
47
|
[k: string]: {
|
|
48
48
|
title: string | undefined;
|
|
@@ -20,6 +20,7 @@ var style_default = {
|
|
|
20
20
|
TooltipHost: "stldocs-tooltip-host",
|
|
21
21
|
TooltipContent: "stldocs-tooltip-content",
|
|
22
22
|
Input: "stldocs-input",
|
|
23
|
+
InputDisabled: "stldocs-input-disabled",
|
|
23
24
|
InputTextField: "stldocs-input-textfield",
|
|
24
25
|
MaskedInputWrapper: "stldocs-masked-input-wrapper",
|
|
25
26
|
MaskedInputDisplay: "stldocs-masked-input-display",
|
|
@@ -151,6 +152,8 @@ var style_default = {
|
|
|
151
152
|
SearchResultResourcePath: "stldocs-search-result-resource-path",
|
|
152
153
|
SearchResultGuideTitle: "stldocs-search-result-guide-title",
|
|
153
154
|
SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt",
|
|
155
|
+
SearchDisabledStateContainer: "stldocs-search-disabled-state-container",
|
|
156
|
+
SearchModalCloseButton: "stldocs-search-modal-close-button",
|
|
154
157
|
LanguageBlock: "stldocs-language-block",
|
|
155
158
|
LanguageBlockContent: "stldocs-language-block-content",
|
|
156
159
|
LanguageBlockContentIcon: "stldocs-language-block-content-icon",
|
package/dist/style.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare const _default: {
|
|
|
20
20
|
readonly TooltipHost: "stldocs-tooltip-host";
|
|
21
21
|
readonly TooltipContent: "stldocs-tooltip-content";
|
|
22
22
|
readonly Input: "stldocs-input";
|
|
23
|
+
readonly InputDisabled: "stldocs-input-disabled";
|
|
23
24
|
readonly InputTextField: "stldocs-input-textfield";
|
|
24
25
|
readonly MaskedInputWrapper: "stldocs-masked-input-wrapper";
|
|
25
26
|
readonly MaskedInputDisplay: "stldocs-masked-input-display";
|
|
@@ -151,6 +152,8 @@ declare const _default: {
|
|
|
151
152
|
readonly SearchResultResourcePath: "stldocs-search-result-resource-path";
|
|
152
153
|
readonly SearchResultGuideTitle: "stldocs-search-result-guide-title";
|
|
153
154
|
readonly SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt";
|
|
155
|
+
readonly SearchDisabledStateContainer: "stldocs-search-disabled-state-container";
|
|
156
|
+
readonly SearchModalCloseButton: "stldocs-search-modal-close-button";
|
|
154
157
|
readonly LanguageBlock: "stldocs-language-block";
|
|
155
158
|
readonly LanguageBlockContent: "stldocs-language-block-content";
|
|
156
159
|
readonly LanguageBlockContentIcon: "stldocs-language-block-content-icon";
|
package/dist/style.js
CHANGED
|
@@ -228,6 +228,7 @@
|
|
|
228
228
|
p {
|
|
229
229
|
display: block;
|
|
230
230
|
margin: 0 0 1em;
|
|
231
|
+
line-height: 150%;
|
|
231
232
|
|
|
232
233
|
&:last-child {
|
|
233
234
|
margin: 0;
|
|
@@ -255,21 +256,24 @@
|
|
|
255
256
|
.stldocs-root .stldocs-input {
|
|
256
257
|
border: 1px solid var(--stl-color-border);
|
|
257
258
|
background: var(--stl-color-background);
|
|
258
|
-
border-radius:
|
|
259
|
+
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
259
260
|
display: flex;
|
|
260
|
-
gap: 0.5rem;
|
|
261
261
|
|
|
262
262
|
&:focus-within {
|
|
263
263
|
border-color: var(--stl-color-accent);
|
|
264
264
|
}
|
|
265
265
|
|
|
266
|
+
&.stldocs-input-disabled {
|
|
267
|
+
opacity: 0.5;
|
|
268
|
+
}
|
|
269
|
+
|
|
266
270
|
input,
|
|
267
271
|
.stldocs-masked-input-display {
|
|
268
272
|
flex-grow: 1;
|
|
269
273
|
border: none;
|
|
270
274
|
background-color: transparent;
|
|
271
275
|
margin: 0.5rem;
|
|
272
|
-
font-size:
|
|
276
|
+
font-size: 1rem;
|
|
273
277
|
letter-spacing: initial;
|
|
274
278
|
white-space: pre;
|
|
275
279
|
contain: content;
|
|
@@ -290,8 +294,7 @@
|
|
|
290
294
|
}
|
|
291
295
|
|
|
292
296
|
.stldocs-icon {
|
|
293
|
-
margin
|
|
294
|
-
margin-bottom: auto;
|
|
297
|
+
margin: auto 0.25rem auto 0.75rem;
|
|
295
298
|
}
|
|
296
299
|
}
|
|
297
300
|
|
|
@@ -318,7 +321,9 @@
|
|
|
318
321
|
}
|
|
319
322
|
|
|
320
323
|
[data-stldocs-listview-selected='true'] > :first-child {
|
|
321
|
-
background
|
|
324
|
+
background:
|
|
325
|
+
linear-gradient(var(--stl-color-ui-background-hover), var(--stl-color-ui-background-hover)),
|
|
326
|
+
linear-gradient(var(--stl-color-ui-background), var(--stl-color-ui-background));
|
|
322
327
|
border-radius: 0.5rem;
|
|
323
328
|
}
|
|
324
329
|
}
|
package/dist/styles/search.css
CHANGED
|
@@ -7,32 +7,8 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
gap: 1rem;
|
|
9
9
|
|
|
10
|
-
.
|
|
11
|
-
display: flex;
|
|
10
|
+
.stl-ui-button {
|
|
12
11
|
flex-grow: 1;
|
|
13
|
-
gap: 0.5rem;
|
|
14
|
-
border-radius: 8px;
|
|
15
|
-
padding: 0.4em 0.8em;
|
|
16
|
-
line-height: 1.5;
|
|
17
|
-
justify-content: center;
|
|
18
|
-
font-size: 0.9rem;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
background-color: transparent;
|
|
21
|
-
border: 1px solid var(--stl-color-border);
|
|
22
|
-
|
|
23
|
-
&:hover,
|
|
24
|
-
&[data-stldocs-toggle-selected='true'] {
|
|
25
|
-
background-color: var(--stldocs-color-selected);
|
|
26
|
-
|
|
27
|
-
.stldocs-search-filter-count {
|
|
28
|
-
color: var(--stl-color-inverse-foreground);
|
|
29
|
-
background-color: var(--stl-color-foreground);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.stldocs-icon {
|
|
34
|
-
margin: auto 0;
|
|
35
|
-
}
|
|
36
12
|
|
|
37
13
|
.stldocs-search-filter-count {
|
|
38
14
|
font-size: 0.75rem;
|
|
@@ -71,6 +47,9 @@
|
|
|
71
47
|
.stldocs-search-result-resource-path {
|
|
72
48
|
font-family: var(--stl-typography-font-mono);
|
|
73
49
|
color: var(--stl-color-foreground);
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
text-overflow: ellipsis;
|
|
52
|
+
white-space: nowrap;
|
|
74
53
|
}
|
|
75
54
|
}
|
|
76
55
|
}
|
|
@@ -177,6 +156,9 @@
|
|
|
177
156
|
display: flex;
|
|
178
157
|
gap: 0.5rem;
|
|
179
158
|
font-size: 0.8rem;
|
|
159
|
+
overflow: hidden;
|
|
160
|
+
text-overflow: ellipsis;
|
|
161
|
+
white-space: nowrap;
|
|
180
162
|
|
|
181
163
|
.stldocs-search-breadcrumb-item {
|
|
182
164
|
color: var(--stl-color-foreground-muted);
|
|
@@ -187,31 +169,36 @@
|
|
|
187
169
|
margin-bottom: auto;
|
|
188
170
|
}
|
|
189
171
|
}
|
|
172
|
+
|
|
173
|
+
.stldocs-search-disabled-state-container {
|
|
174
|
+
margin: auto;
|
|
175
|
+
text-align: center;
|
|
176
|
+
}
|
|
190
177
|
}
|
|
191
178
|
|
|
192
179
|
.stldocs-root .stldocs-search-modal {
|
|
193
|
-
height:
|
|
180
|
+
height: calc(100svh - var(--sl-nav-height));
|
|
194
181
|
width: 100%;
|
|
195
182
|
overflow: hidden;
|
|
196
|
-
margin: 3rem auto;
|
|
197
183
|
display: none;
|
|
198
184
|
padding: 1rem;
|
|
199
185
|
inset: 0;
|
|
200
|
-
max-width: 1024px;
|
|
201
|
-
max-height: 80vh;
|
|
202
186
|
background-color: var(--stl-color-background);
|
|
203
187
|
color: var(--stl-color-foreground);
|
|
204
|
-
|
|
205
|
-
border
|
|
188
|
+
gap: 0.5rem;
|
|
189
|
+
border: none;
|
|
206
190
|
|
|
207
191
|
&:popover-open,
|
|
208
192
|
&[data-stldocs-modal-open='true'] {
|
|
209
|
-
display:
|
|
193
|
+
display: flex;
|
|
194
|
+
flex-direction: column;
|
|
210
195
|
position: fixed;
|
|
196
|
+
top: var(--sl-nav-height);
|
|
211
197
|
}
|
|
212
198
|
|
|
213
199
|
.stldocs-search-form {
|
|
214
200
|
height: 100%;
|
|
201
|
+
width: 100%;
|
|
215
202
|
|
|
216
203
|
.stldocs-listview {
|
|
217
204
|
margin: 0.8rem 0;
|
|
@@ -219,10 +206,16 @@
|
|
|
219
206
|
}
|
|
220
207
|
}
|
|
221
208
|
|
|
209
|
+
.stldocs-search-modal-close-button {
|
|
210
|
+
display: flex;
|
|
211
|
+
justify-content: flex-end;
|
|
212
|
+
}
|
|
213
|
+
|
|
222
214
|
&::backdrop {
|
|
223
215
|
background-color: var(--stldocs-color-backdrop-overlay);
|
|
224
216
|
-webkit-backdrop-filter: blur(0.25rem);
|
|
225
217
|
backdrop-filter: blur(0.25rem);
|
|
218
|
+
top: var(--sl-nav-height);
|
|
226
219
|
}
|
|
227
220
|
}
|
|
228
221
|
|
|
@@ -232,6 +225,32 @@
|
|
|
232
225
|
}
|
|
233
226
|
}
|
|
234
227
|
|
|
228
|
+
@media (min-width: 50rem) {
|
|
229
|
+
.stldocs-root {
|
|
230
|
+
.stldocs-search-modal {
|
|
231
|
+
height: 100%;
|
|
232
|
+
max-width: 1024px;
|
|
233
|
+
max-height: 80vh;
|
|
234
|
+
margin: 3rem auto;
|
|
235
|
+
border: 1px solid var(--stl-color-border);
|
|
236
|
+
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
237
|
+
|
|
238
|
+
.stldocs-search-modal-close-button {
|
|
239
|
+
display: none;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&:popover-open,
|
|
243
|
+
&[data-stldocs-modal-open='true'] {
|
|
244
|
+
top: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&::backdrop {
|
|
248
|
+
top: 0;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
235
254
|
@media (max-width: 50rem) {
|
|
236
255
|
.stldocs-root .stldocs-search-modal {
|
|
237
256
|
.stldocs-search-filter-label,
|