@stainless-api/docs-ui 0.1.0-beta.70 → 0.1.0-beta.72
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-Cvm5Ifm7.d.ts → breadcrumbs-46Qjx1Pd.d.ts} +3 -3
- package/dist/{breadcrumbs-BhYwbXkc.d.ts → breadcrumbs-BZ4wBC9-.d.ts} +3 -3
- package/dist/{breadcrumbs-DA4WgDhR.js → breadcrumbs-BiBfNqBI.js} +2 -2
- package/dist/{cli-F3kMmeoJ.js → cli-hduQ5XS1.js} +3 -3
- package/dist/{component-P9sn5yyG.js → component-BU8BTbqz.js} +2 -2
- package/dist/{component-generics-zU0Pqx8m.d.ts → component-generics-Bw4ZOyEG.d.ts} +2 -2
- package/dist/{component-generics-ByGsYTc8.d.ts → component-generics-D-WarFUb.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 +1 -1
- package/dist/components/breadcrumbs.js +5 -5
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +14 -11
- package/dist/components/index.js +14 -14
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +5 -5
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +6 -6
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +4 -4
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +4 -4
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk-sidebar.js +5 -5
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +4 -4
- package/dist/components/snippets.d.ts +14 -3
- package/dist/components/snippets.js +5 -5
- package/dist/components/stl-sidebar.d.ts +1 -1
- package/dist/components/stl-sidebar.js +1 -1
- package/dist/{components-w1JmIrB0.js → components-9NMl1791.js} +10 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +13 -11
- package/dist/contexts/component.d.ts +15 -14
- package/dist/contexts/component.js +24 -24
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +2 -2
- package/dist/contexts/index.d.ts +14 -23
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +13 -10
- package/dist/{contexts-CVj20VV4.js → contexts-_NNW5yqC.js} +5 -2
- package/dist/{csharp-D6_jlynY.js → csharp-sn5CJu9t.js} +2 -2
- package/dist/{docs-g4IPmtZr.d.ts → docs-Cu9Yl6-y.d.ts} +24 -6
- package/dist/docs-YgoQ3bzY.js +81 -0
- package/dist/{docs-z3fl2eW-.d.ts → docs-xb5wYGjM.d.ts} +25 -7
- package/dist/{go-COaHV3Hc.js → go-BoaAVmP0.js} +2 -2
- package/dist/{http-fOPCX17A.js → http-B3qTyMc3.js} +5 -5
- package/dist/index-BOmn7DHa.d.ts +428 -0
- package/dist/index-BvcPmB0r.d.ts +428 -0
- package/dist/{index-CwjGm9zX.d.ts → index-W4Td2Hl7.d.ts} +46 -31
- package/dist/index.d.ts +14 -17
- package/dist/index.js +24 -24
- package/dist/{java-CxGSJVvv.js → java-BiLRuLuD.js} +3 -3
- package/dist/languages/cli.d.ts +13 -11
- package/dist/languages/cli.js +15 -15
- package/dist/languages/csharp.d.ts +13 -11
- package/dist/languages/csharp.js +4 -4
- package/dist/languages/go.d.ts +13 -11
- package/dist/languages/go.js +4 -4
- package/dist/languages/http.d.ts +13 -11
- package/dist/languages/http.js +14 -14
- package/dist/languages/index.d.ts +13 -11
- package/dist/languages/index.js +23 -23
- package/dist/languages/java.d.ts +13 -11
- package/dist/languages/java.js +4 -4
- package/dist/languages/python.d.ts +13 -11
- package/dist/languages/python.js +4 -4
- package/dist/languages/ruby.d.ts +13 -11
- package/dist/languages/ruby.js +4 -4
- package/dist/languages/terraform.d.ts +13 -11
- package/dist/languages/terraform.js +4 -4
- package/dist/languages/typescript.d.ts +13 -11
- package/dist/languages/typescript.js +4 -4
- package/dist/languages-vUhD5Hu_.js +30 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +24 -24
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +25 -25
- package/dist/markdown/utils.d.ts +4 -4
- package/dist/markdown/utils.js +3 -3
- package/dist/{markdown-Cibv9fDR.d.ts → markdown-BszOPZhh.d.ts} +2 -2
- package/dist/{markdown-CTKHMLVr.js → markdown-Cq3XEhrR.js} +1 -1
- package/dist/{markdown-Cdh0TSHp.d.ts → markdown-plMAoN22.d.ts} +2 -2
- package/dist/{method-630cPKDl.d.ts → method-C4PgTWAu.d.ts} +6 -6
- package/dist/{method-BzkPRXGL.d.ts → method-D6R_farj.d.ts} +6 -6
- package/dist/{method-BPDUyBlD.js → method-DjzVBzZe.js} +2 -2
- package/dist/{navigation-BW-SBvb4.d.ts → navigation-HiZWRl34.d.ts} +3 -3
- package/dist/{navigation-DWYqC_HX.d.ts → navigation-MrP4Ubbg.d.ts} +3 -3
- package/dist/{overview-Cui1XtuC.d.ts → overview-CTeKhpQq.d.ts} +7 -7
- package/dist/{overview-RXc9iPzz.d.ts → overview-Yf1PTJNi.d.ts} +7 -7
- package/dist/{overview-DFwfIK6k.js → overview-ocTARt-j.js} +5 -5
- package/dist/{primitives-DJEqe_r1.js → primitives-CNG-fEhQ.js} +3 -3
- package/dist/{primitives-DhGxFYx6.d.ts → primitives-K7NijV36.d.ts} +11 -11
- package/dist/{primitives-MsH-h0bU.d.ts → primitives-WGxdBJDS.d.ts} +11 -11
- package/dist/{properties-C9W4QJ_F.d.ts → properties-Bu4nW9JD.d.ts} +5 -5
- package/dist/{properties-BnbBKd5a.js → properties-DQU0NBzb.js} +11 -5
- package/dist/{python-DsTuWCKE.js → python-nqOBH7GS.js} +2 -2
- package/dist/{routing-Cm_9XJiQ.d.ts → routing-pAL4V4hv.d.ts} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/{ruby-BncKp6hd.js → ruby-BBc8HdIt.js} +3 -3
- package/dist/{sdk-Bw99eXxA.js → sdk-BSdgEEJw.js} +13 -7
- package/dist/{sdk-GMOw94wL.d.ts → sdk-BVCk1ox2.d.ts} +17 -17
- package/dist/{sdk-BvZeXpsj.d.ts → sdk-Dm0S-XQE.d.ts} +17 -17
- package/dist/{sdk-sidebar-VNY2-O1Y.d.ts → sdk-sidebar-B1ehT_xI.d.ts} +3 -3
- package/dist/{sdk-sidebar-V_MTkVw8.js → sdk-sidebar-BDn8S1xS.js} +1 -1
- package/dist/{sdk-sidebar-NCBSWuUW.d.ts → sdk-sidebar-Dqeu7C1-.d.ts} +3 -3
- package/dist/snippets-CLpNVNlA.js +181 -0
- package/dist/spec.d.ts +2 -2
- package/dist/spec.js +1 -1
- package/dist/{stl-sidebar-CXzs_shz.d.ts → stl-sidebar-BTTErIJs.d.ts} +2 -2
- package/dist/{stl-sidebar-DSkUHwcU.d.ts → stl-sidebar-C7GNALtk.d.ts} +2 -2
- package/dist/{stl-sidebar-WtimNrk1.js → stl-sidebar-DC5UOJiT.js} +1 -1
- package/dist/{style-HpXpcJ9v.js → style-DJIYkFhO.js} +6 -0
- package/dist/style.d.ts +6 -0
- package/dist/style.js +1 -1
- package/dist/styles/main.css +59 -14
- package/dist/styles.css +59 -14
- package/dist/{terraform-B95X4rNK.js → terraform-DVx2ea2h.js} +3 -3
- package/dist/{typescript-n46M9OtL.js → typescript-Cmk-jBBw.js} +3 -3
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -2
- package/dist/docs-BmOB2f-I.js +0 -61
- package/dist/index-B8Zys1C2.d.ts +0 -347
- package/dist/index-C5Zmb2CI.d.ts +0 -16
- package/dist/index-D7PkxNgB.d.ts +0 -16
- package/dist/index-DIaM6Ync.d.ts +0 -347
- package/dist/languages-B6eap2M6.js +0 -30
- package/dist/routing-utiR5mY3.d.ts +0 -61
- package/dist/snippets-BehbU3rt.js +0 -164
- package/dist/snippets-Bj7Ey56K.d.ts +0 -53
- package/dist/snippets-CQQSDvg2.d.ts +0 -53
package/dist/index-DIaM6Ync.d.ts
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import { a as GoAST, b as TerraformAST, h as RubyAST, i as DeclarationNode, l as JavaAST, m as Resource$1, n as CLIAST, p as PythonAST, r as CSharpAST, s as HttpAST, x as Type$9, y as TSAST } from "./index-CwjGm9zX.js";
|
|
2
|
-
import { i as PropertyProps$9 } from "./properties-Bynmj9_H.js";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
|
-
import React, { ReactNode } from "react";
|
|
5
|
-
import * as react_jsx_runtime83 from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
//#region src/languages/typescript.d.ts
|
|
8
|
-
declare namespace typescript_d_exports {
|
|
9
|
-
export { Declaration$8 as Declaration, DeclarationProps$8 as DeclarationProps, MethodSignature$8 as MethodSignature, MethodSignatureProps$7 as MethodSignatureProps, Property$8 as Property, PropertyProps$8 as PropertyProps, Type$8 as Type, TypeName$8 as TypeName };
|
|
10
|
-
}
|
|
11
|
-
type TypeProps$8 = {
|
|
12
|
-
type: TSAST.TSType;
|
|
13
|
-
};
|
|
14
|
-
declare function TypeName$8({
|
|
15
|
-
type
|
|
16
|
-
}: TypeProps$8): string | react_jsx_runtime83.JSX.Element;
|
|
17
|
-
declare function Type$8({
|
|
18
|
-
type
|
|
19
|
-
}: TypeProps$8): react_jsx_runtime83.JSX.Element;
|
|
20
|
-
type MethodSignatureProps$7 = {
|
|
21
|
-
decl: TSAST.TSDeclFunction;
|
|
22
|
-
};
|
|
23
|
-
declare function MethodSignature$8({
|
|
24
|
-
decl
|
|
25
|
-
}: MethodSignatureProps$7): react_jsx_runtime83.JSX.Element;
|
|
26
|
-
type PropertyProps$8 = {
|
|
27
|
-
decl: TSAST.TSDeclaration;
|
|
28
|
-
children: PropertyFn;
|
|
29
|
-
};
|
|
30
|
-
declare function Property$8({
|
|
31
|
-
decl,
|
|
32
|
-
children
|
|
33
|
-
}: PropertyProps$8): React$1.ReactNode;
|
|
34
|
-
type DeclarationProps$8 = {
|
|
35
|
-
decl: TSAST.TSDeclaration;
|
|
36
|
-
};
|
|
37
|
-
declare function Declaration$8({
|
|
38
|
-
decl
|
|
39
|
-
}: DeclarationProps$8): react_jsx_runtime83.JSX.Element | undefined;
|
|
40
|
-
declare namespace java_d_exports {
|
|
41
|
-
export { Declaration$7 as Declaration, DeclarationProps$7 as DeclarationProps, MethodSignature$7 as MethodSignature, MethodSignatureProps$6 as MethodSignatureProps, Property$7 as Property, PropertyProps$7 as PropertyProps, Type$7 as Type, TypeName$7 as TypeName };
|
|
42
|
-
}
|
|
43
|
-
type TypeProps$7 = {
|
|
44
|
-
type: JavaAST.JavaType;
|
|
45
|
-
optional?: boolean;
|
|
46
|
-
};
|
|
47
|
-
declare function TypeName$7({
|
|
48
|
-
type,
|
|
49
|
-
optional
|
|
50
|
-
}: TypeProps$7): react_jsx_runtime83.JSX.Element | "List";
|
|
51
|
-
declare function Type$7({
|
|
52
|
-
type,
|
|
53
|
-
optional
|
|
54
|
-
}: TypeProps$7): react_jsx_runtime83.JSX.Element;
|
|
55
|
-
type MethodSignatureProps$6 = {
|
|
56
|
-
decl: JavaAST.JavaDeclFunction;
|
|
57
|
-
};
|
|
58
|
-
declare function MethodSignature$7({
|
|
59
|
-
decl
|
|
60
|
-
}: MethodSignatureProps$6): react_jsx_runtime83.JSX.Element;
|
|
61
|
-
type PropertyProps$7 = {
|
|
62
|
-
decl: JavaAST.JavaDeclaration;
|
|
63
|
-
children: PropertyFn;
|
|
64
|
-
};
|
|
65
|
-
declare function Property$7({
|
|
66
|
-
decl,
|
|
67
|
-
children
|
|
68
|
-
}: PropertyProps$7): React$1.ReactNode;
|
|
69
|
-
type DeclarationProps$7 = {
|
|
70
|
-
decl: JavaAST.JavaDeclaration;
|
|
71
|
-
};
|
|
72
|
-
declare function Declaration$7({
|
|
73
|
-
decl
|
|
74
|
-
}: DeclarationProps$7): react_jsx_runtime83.JSX.Element | null | undefined;
|
|
75
|
-
declare namespace go_d_exports {
|
|
76
|
-
export { Declaration$6 as Declaration, DeclarationProps$6 as DeclarationProps, MethodSignature$6 as MethodSignature, MethodSignatureProps$5 as MethodSignatureProps, Property$6 as Property, PropertyProps$6 as PropertyProps, Type$6 as Type, TypeName$6 as TypeName, TypeProps$6 as TypeProps };
|
|
77
|
-
}
|
|
78
|
-
type TypeProps$6 = {
|
|
79
|
-
type: GoAST.GoType;
|
|
80
|
-
};
|
|
81
|
-
declare function TypeName$6({
|
|
82
|
-
type
|
|
83
|
-
}: TypeProps$6): string | react_jsx_runtime83.JSX.Element;
|
|
84
|
-
declare function Type$6({
|
|
85
|
-
type
|
|
86
|
-
}: TypeProps$6): react_jsx_runtime83.JSX.Element;
|
|
87
|
-
type MethodSignatureProps$5 = {
|
|
88
|
-
decl: GoAST.GoDeclFunction;
|
|
89
|
-
};
|
|
90
|
-
declare function MethodSignature$6({
|
|
91
|
-
decl
|
|
92
|
-
}: MethodSignatureProps$5): react_jsx_runtime83.JSX.Element;
|
|
93
|
-
type PropertyProps$6 = {
|
|
94
|
-
decl: GoAST.GoDeclaration;
|
|
95
|
-
children: PropertyFn;
|
|
96
|
-
};
|
|
97
|
-
declare function Property$6({
|
|
98
|
-
decl,
|
|
99
|
-
children
|
|
100
|
-
}: PropertyProps$6): React$1.ReactNode;
|
|
101
|
-
type DeclarationProps$6 = {
|
|
102
|
-
decl: GoAST.GoDeclaration;
|
|
103
|
-
};
|
|
104
|
-
declare function Declaration$6({
|
|
105
|
-
decl
|
|
106
|
-
}: DeclarationProps$6): react_jsx_runtime83.JSX.Element | undefined;
|
|
107
|
-
declare namespace python_d_exports {
|
|
108
|
-
export { Declaration$5 as Declaration, DeclarationProps$5 as DeclarationProps, MethodSignature$5 as MethodSignature, MethodSignatureProps$4 as MethodSignatureProps, Property$5 as Property, PropertyProps$5 as PropertyProps, Type$5 as Type, TypeName$5 as TypeName };
|
|
109
|
-
}
|
|
110
|
-
type TypeProps$5 = {
|
|
111
|
-
type: PythonAST.PythonType;
|
|
112
|
-
};
|
|
113
|
-
declare function TypeName$5({
|
|
114
|
-
type
|
|
115
|
-
}: TypeProps$5): string | react_jsx_runtime83.JSX.Element;
|
|
116
|
-
declare function Type$5({
|
|
117
|
-
type
|
|
118
|
-
}: TypeProps$5): react_jsx_runtime83.JSX.Element;
|
|
119
|
-
type MethodSignatureProps$4 = {
|
|
120
|
-
decl: PythonAST.PythonDeclFunction;
|
|
121
|
-
};
|
|
122
|
-
declare function MethodSignature$5({
|
|
123
|
-
decl
|
|
124
|
-
}: MethodSignatureProps$4): react_jsx_runtime83.JSX.Element;
|
|
125
|
-
type PropertyProps$5 = {
|
|
126
|
-
decl: PythonAST.PythonDeclaration;
|
|
127
|
-
children: PropertyFn;
|
|
128
|
-
};
|
|
129
|
-
declare function Property$5({
|
|
130
|
-
decl,
|
|
131
|
-
children
|
|
132
|
-
}: PropertyProps$5): React$1.ReactNode;
|
|
133
|
-
type DeclarationProps$5 = {
|
|
134
|
-
decl: PythonAST.PythonDeclaration;
|
|
135
|
-
};
|
|
136
|
-
declare function Declaration$5({
|
|
137
|
-
decl
|
|
138
|
-
}: DeclarationProps$5): react_jsx_runtime83.JSX.Element | undefined;
|
|
139
|
-
declare namespace ruby_d_exports {
|
|
140
|
-
export { Declaration$4 as Declaration, DeclarationProps$4 as DeclarationProps, MethodSignature$4 as MethodSignature, MethodSignatureProps$3 as MethodSignatureProps, Property$4 as Property, PropertyProps$4 as PropertyProps, Type$4 as Type, TypeName$4 as TypeName };
|
|
141
|
-
}
|
|
142
|
-
type TypeProps$4 = {
|
|
143
|
-
type: RubyAST.RubyType;
|
|
144
|
-
};
|
|
145
|
-
declare function TypeName$4({
|
|
146
|
-
type
|
|
147
|
-
}: TypeProps$4): string | react_jsx_runtime83.JSX.Element;
|
|
148
|
-
declare function Type$4({
|
|
149
|
-
type
|
|
150
|
-
}: TypeProps$4): react_jsx_runtime83.JSX.Element;
|
|
151
|
-
type MethodSignatureProps$3 = {
|
|
152
|
-
decl: RubyAST.RubyDeclFunction;
|
|
153
|
-
};
|
|
154
|
-
declare function MethodSignature$4({
|
|
155
|
-
decl
|
|
156
|
-
}: MethodSignatureProps$3): react_jsx_runtime83.JSX.Element;
|
|
157
|
-
type PropertyProps$4 = {
|
|
158
|
-
decl: RubyAST.RubyDeclaration;
|
|
159
|
-
children: PropertyFn;
|
|
160
|
-
};
|
|
161
|
-
declare function Property$4({
|
|
162
|
-
decl,
|
|
163
|
-
children
|
|
164
|
-
}: PropertyProps$4): React$1.ReactNode;
|
|
165
|
-
type DeclarationProps$4 = {
|
|
166
|
-
decl: RubyAST.RubyDeclaration;
|
|
167
|
-
};
|
|
168
|
-
declare function Declaration$4({
|
|
169
|
-
decl
|
|
170
|
-
}: DeclarationProps$4): react_jsx_runtime83.JSX.Element | undefined;
|
|
171
|
-
declare namespace http_d_exports {
|
|
172
|
-
export { Declaration$3 as Declaration, DeclarationProps$3 as DeclarationProps, MethodInfo, MethodSignature$3 as MethodSignature, MethodSignatureProps$2 as MethodSignatureProps, Property$3 as Property, PropertyProps$3 as PropertyProps, Type$3 as Type, TypeName$3 as TypeName };
|
|
173
|
-
}
|
|
174
|
-
type TypeProps$3 = {
|
|
175
|
-
type: HttpAST.HttpType;
|
|
176
|
-
};
|
|
177
|
-
declare function TypeName$3({
|
|
178
|
-
type
|
|
179
|
-
}: TypeProps$3): string | react_jsx_runtime83.JSX.Element;
|
|
180
|
-
declare function Type$3({
|
|
181
|
-
type
|
|
182
|
-
}: TypeProps$3): react_jsx_runtime83.JSX.Element;
|
|
183
|
-
type MethodSignatureProps$2 = {
|
|
184
|
-
decl: HttpAST.HttpDeclFunction;
|
|
185
|
-
};
|
|
186
|
-
declare function MethodSignature$3({
|
|
187
|
-
decl
|
|
188
|
-
}: MethodSignatureProps$2): null;
|
|
189
|
-
declare function MethodInfo({
|
|
190
|
-
decl,
|
|
191
|
-
children
|
|
192
|
-
}: MethodSignatureProps$2 & {
|
|
193
|
-
children: React.ReactNode;
|
|
194
|
-
}): react_jsx_runtime83.JSX.Element;
|
|
195
|
-
type PropertyProps$3 = {
|
|
196
|
-
decl: HttpAST.HttpDeclaration;
|
|
197
|
-
children: PropertyFn;
|
|
198
|
-
};
|
|
199
|
-
declare function Property$3({
|
|
200
|
-
decl,
|
|
201
|
-
children
|
|
202
|
-
}: PropertyProps$3): React.ReactNode;
|
|
203
|
-
type DeclarationProps$3 = {
|
|
204
|
-
decl: HttpAST.HttpDeclaration;
|
|
205
|
-
};
|
|
206
|
-
declare function Declaration$3({
|
|
207
|
-
decl
|
|
208
|
-
}: DeclarationProps$3): react_jsx_runtime83.JSX.Element | undefined;
|
|
209
|
-
declare namespace csharp_d_exports {
|
|
210
|
-
export { Declaration$2 as Declaration, DeclarationProps$2 as DeclarationProps, MethodSignature$2 as MethodSignature, MethodSignatureProps$1 as MethodSignatureProps, Property$2 as Property, PropertyProps$2 as PropertyProps, Type$2 as Type, TypeName$2 as TypeName };
|
|
211
|
-
}
|
|
212
|
-
declare function TypeName$2({
|
|
213
|
-
type,
|
|
214
|
-
optional
|
|
215
|
-
}: TypeProps$2): react_jsx_runtime83.JSX.Element;
|
|
216
|
-
type TypeProps$2 = {
|
|
217
|
-
type: CSharpAST.CSharpType;
|
|
218
|
-
optional?: boolean;
|
|
219
|
-
};
|
|
220
|
-
declare function Type$2({
|
|
221
|
-
type
|
|
222
|
-
}: TypeProps$2): react_jsx_runtime83.JSX.Element;
|
|
223
|
-
type MethodSignatureProps$1 = {
|
|
224
|
-
decl: CSharpAST.CSharpDeclFunction;
|
|
225
|
-
};
|
|
226
|
-
declare function MethodSignature$2({
|
|
227
|
-
decl
|
|
228
|
-
}: MethodSignatureProps$1): react_jsx_runtime83.JSX.Element;
|
|
229
|
-
type PropertyProps$2 = {
|
|
230
|
-
decl: CSharpAST.CSharpDeclaration;
|
|
231
|
-
children: PropertyFn;
|
|
232
|
-
};
|
|
233
|
-
declare function Property$2({
|
|
234
|
-
decl,
|
|
235
|
-
children
|
|
236
|
-
}: PropertyProps$2): React$1.ReactNode;
|
|
237
|
-
type DeclarationProps$2 = {
|
|
238
|
-
decl: CSharpAST.CSharpDeclaration;
|
|
239
|
-
};
|
|
240
|
-
declare function Declaration$2({
|
|
241
|
-
decl
|
|
242
|
-
}: DeclarationProps$2): react_jsx_runtime83.JSX.Element | null | undefined;
|
|
243
|
-
declare namespace cli_d_exports {
|
|
244
|
-
export { Declaration$1 as Declaration, DeclarationProps$1 as DeclarationProps, MethodSignature$1 as MethodSignature, MethodSignatureProps, Property$1 as Property, PropertyProps$1 as PropertyProps, Type$1 as Type, TypeName$1 as TypeName };
|
|
245
|
-
}
|
|
246
|
-
type TypeProps$1 = {
|
|
247
|
-
type: HttpAST.HttpType;
|
|
248
|
-
};
|
|
249
|
-
declare function TypeName$1(props: TypeProps$1): string | react_jsx_runtime83.JSX.Element;
|
|
250
|
-
declare function Type$1({
|
|
251
|
-
type
|
|
252
|
-
}: TypeProps$1): react_jsx_runtime83.JSX.Element;
|
|
253
|
-
type MethodSignatureProps = {
|
|
254
|
-
decl: CLIAST.CLICommand;
|
|
255
|
-
};
|
|
256
|
-
declare function MethodSignature$1({
|
|
257
|
-
decl
|
|
258
|
-
}: MethodSignatureProps): react_jsx_runtime83.JSX.Element;
|
|
259
|
-
type PropertyProps$1 = {
|
|
260
|
-
decl: CLIAST.CLIDeclaration;
|
|
261
|
-
children: PropertyFn;
|
|
262
|
-
};
|
|
263
|
-
declare function Property$1({
|
|
264
|
-
decl,
|
|
265
|
-
children
|
|
266
|
-
}: PropertyProps$1): React.ReactNode;
|
|
267
|
-
type DeclarationProps$1 = {
|
|
268
|
-
decl: CLIAST.CLIDeclaration;
|
|
269
|
-
};
|
|
270
|
-
declare function Declaration$1({
|
|
271
|
-
decl
|
|
272
|
-
}: DeclarationProps$1): react_jsx_runtime83.JSX.Element | undefined;
|
|
273
|
-
declare namespace terraform_d_exports {
|
|
274
|
-
export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps };
|
|
275
|
-
}
|
|
276
|
-
type TypeProps = {
|
|
277
|
-
type: TerraformAST.AttributeType;
|
|
278
|
-
};
|
|
279
|
-
declare function TypeName({
|
|
280
|
-
type
|
|
281
|
-
}: TypeProps): react_jsx_runtime83.JSX.Element;
|
|
282
|
-
declare function Type({
|
|
283
|
-
type
|
|
284
|
-
}: TypeProps): react_jsx_runtime83.JSX.Element | undefined;
|
|
285
|
-
declare function MethodSignature(): null;
|
|
286
|
-
type PropertyProps = {
|
|
287
|
-
decl: TerraformAST.TerraformDeclaration;
|
|
288
|
-
children: PropertyFn;
|
|
289
|
-
};
|
|
290
|
-
declare function Property({
|
|
291
|
-
decl,
|
|
292
|
-
children
|
|
293
|
-
}: PropertyProps): React$1.ReactNode;
|
|
294
|
-
declare function TerraformSource({
|
|
295
|
-
path,
|
|
296
|
-
group
|
|
297
|
-
}: {
|
|
298
|
-
path: string;
|
|
299
|
-
group: string;
|
|
300
|
-
}): react_jsx_runtime83.JSX.Element | undefined;
|
|
301
|
-
type DeclarationProps = {
|
|
302
|
-
decl: TerraformAST.TerraformDeclaration;
|
|
303
|
-
};
|
|
304
|
-
declare function Declaration({
|
|
305
|
-
decl
|
|
306
|
-
}: DeclarationProps): react_jsx_runtime83.JSX.Element | undefined;
|
|
307
|
-
type ResourceProps = {
|
|
308
|
-
resource: Resource$1;
|
|
309
|
-
};
|
|
310
|
-
declare function Resource({
|
|
311
|
-
resource
|
|
312
|
-
}: ResourceProps): react_jsx_runtime83.JSX.Element;
|
|
313
|
-
declare namespace index_d_exports {
|
|
314
|
-
export { LanguageComponentDefinition, PropertyFn, cli_d_exports as cli, csharp_d_exports as csharp, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, python_d_exports as python, ruby_d_exports as ruby, terraform_d_exports as terraform, typescript_d_exports as typescript };
|
|
315
|
-
}
|
|
316
|
-
declare const node: typeof typescript_d_exports;
|
|
317
|
-
declare const kotlin: typeof java_d_exports;
|
|
318
|
-
type PropertyFn = (params: PropertyProps$9) => ReactNode;
|
|
319
|
-
interface LanguageComponentDefinition {
|
|
320
|
-
Declaration(props: {
|
|
321
|
-
decl: DeclarationNode;
|
|
322
|
-
}): ReactNode;
|
|
323
|
-
Property(props: {
|
|
324
|
-
decl: DeclarationNode;
|
|
325
|
-
children: PropertyFn;
|
|
326
|
-
}): ReactNode;
|
|
327
|
-
TypeName(props: {
|
|
328
|
-
type: Type$9;
|
|
329
|
-
optional?: boolean;
|
|
330
|
-
}): ReactNode;
|
|
331
|
-
Type(props: {
|
|
332
|
-
type: Type$9;
|
|
333
|
-
optional?: boolean;
|
|
334
|
-
}): ReactNode;
|
|
335
|
-
MethodSignature(props: {
|
|
336
|
-
decl: DeclarationNode;
|
|
337
|
-
}): ReactNode;
|
|
338
|
-
MethodInfo?(props: {
|
|
339
|
-
decl: DeclarationNode;
|
|
340
|
-
children?: ReactNode;
|
|
341
|
-
}): ReactNode;
|
|
342
|
-
Resource?(props: {
|
|
343
|
-
resource: Resource$1;
|
|
344
|
-
}): ReactNode;
|
|
345
|
-
}
|
|
346
|
-
//#endregion
|
|
347
|
-
export { TypeName$4 as $, MethodSignatureProps$1 as A, DeclarationProps$8 as At, MethodSignatureProps$2 as B, PropertyProps$1 as C, MethodSignatureProps$6 as Ct, Declaration$2 as D, TypeName$7 as Dt, cli_d_exports as E, Type$7 as Et, csharp_d_exports as F, Type$8 as Ft, http_d_exports as G, PropertyProps$3 as H, Declaration$3 as I, TypeName$8 as It, MethodSignature$4 as J, Declaration$4 as K, DeclarationProps$3 as L, typescript_d_exports as Lt, PropertyProps$2 as M, MethodSignatureProps$7 as Mt, Type$2 as N, Property$8 as Nt, DeclarationProps$2 as O, java_d_exports as Ot, TypeName$2 as P, PropertyProps$8 as Pt, Type$4 as Q, MethodInfo as R, Property$1 as S, MethodSignature$7 as St, TypeName$1 as T, PropertyProps$7 as Tt, Type$3 as U, Property$3 as V, TypeName$3 as W, Property$4 as X, MethodSignatureProps$3 as Y, PropertyProps$4 as Z, terraform_d_exports as _, TypeName$6 as _t, node as a, Property$5 as at, MethodSignature$1 as b, Declaration$7 as bt, MethodSignature as c, TypeName$5 as ct, Resource as d, DeclarationProps$6 as dt, ruby_d_exports as et, ResourceProps as f, MethodSignature$6 as ft, TypeProps as g, Type$6 as gt, TypeName as h, PropertyProps$6 as ht, kotlin as i, MethodSignatureProps$4 as it, Property$2 as j, MethodSignature$8 as jt, MethodSignature$2 as k, Declaration$8 as kt, Property as l, python_d_exports as lt, Type as m, Property$6 as mt, PropertyFn as n, DeclarationProps$5 as nt, Declaration as o, PropertyProps$5 as ot, TerraformSource as p, MethodSignatureProps$5 as pt, DeclarationProps$4 as q, index_d_exports as r, MethodSignature$5 as rt, DeclarationProps as s, Type$5 as st, LanguageComponentDefinition as t, Declaration$5 as tt, PropertyProps as u, Declaration$6 as ut, Declaration$1 as v, TypeProps$6 as vt, Type$1 as w, Property$7 as wt, MethodSignatureProps as x, DeclarationProps$7 as xt, DeclarationProps$1 as y, go_d_exports as yt, MethodSignature$3 as z };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { o as typescript_exports } from "./typescript-n46M9OtL.js";
|
|
3
|
-
import { o as java_exports } from "./java-CxGSJVvv.js";
|
|
4
|
-
import { o as go_exports } from "./go-COaHV3Hc.js";
|
|
5
|
-
import { o as python_exports } from "./python-DsTuWCKE.js";
|
|
6
|
-
import { o as ruby_exports } from "./ruby-BncKp6hd.js";
|
|
7
|
-
import { s as http_exports } from "./http-fOPCX17A.js";
|
|
8
|
-
import { o as csharp_exports } from "./csharp-D6_jlynY.js";
|
|
9
|
-
import { o as cli_exports } from "./cli-F3kMmeoJ.js";
|
|
10
|
-
import { c as terraform_exports } from "./terraform-B95X4rNK.js";
|
|
11
|
-
|
|
12
|
-
//#region src/languages/index.ts
|
|
13
|
-
var languages_exports = /* @__PURE__ */ __exportAll({
|
|
14
|
-
cli: () => cli_exports,
|
|
15
|
-
csharp: () => csharp_exports,
|
|
16
|
-
go: () => go_exports,
|
|
17
|
-
http: () => http_exports,
|
|
18
|
-
java: () => java_exports,
|
|
19
|
-
kotlin: () => kotlin,
|
|
20
|
-
node: () => node,
|
|
21
|
-
python: () => python_exports,
|
|
22
|
-
ruby: () => ruby_exports,
|
|
23
|
-
terraform: () => terraform_exports,
|
|
24
|
-
typescript: () => typescript_exports
|
|
25
|
-
});
|
|
26
|
-
const node = typescript_exports;
|
|
27
|
-
const kotlin = java_exports;
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { languages_exports as n, node as r, kotlin 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): "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
|
-
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 };
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { i as useDeclaration, s as useLanguage, u as useSnippet } from "./docs-BmOB2f-I.js";
|
|
2
|
-
import { r as useHighlight } from "./markdown-CTKHMLVr.js";
|
|
3
|
-
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
4
|
-
import { t as style_default } from "./style-HpXpcJ9v.js";
|
|
5
|
-
import * as React$1 from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import clsx from "clsx";
|
|
8
|
-
import { CheckIcon, CircleAlertIcon, CopyIcon } from "lucide-react";
|
|
9
|
-
import { Badge, Button, getHttpMethod } from "@stainless-api/ui-primitives";
|
|
10
|
-
|
|
11
|
-
//#region src/components/snippets.tsx
|
|
12
|
-
function SnippetCode({ content, language }) {
|
|
13
|
-
const lang = useLanguage();
|
|
14
|
-
const highlighted = useHighlight(content, language || lang);
|
|
15
|
-
return /* @__PURE__ */ jsx("div", {
|
|
16
|
-
className: style_default.SnippetCode,
|
|
17
|
-
"data-stldocs-copy-content": true,
|
|
18
|
-
dangerouslySetInnerHTML: { __html: highlighted }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function SnippetContainer({ children }) {
|
|
22
|
-
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className: clsx(style_default.Snippet),
|
|
24
|
-
children
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function SnippetRequestContainer({ children }) {
|
|
28
|
-
return /* @__PURE__ */ jsx("div", { children });
|
|
29
|
-
}
|
|
30
|
-
function Snippet({ requestTitle, method, transformRequestSnippet }) {
|
|
31
|
-
const Docs = useComponents();
|
|
32
|
-
const language = useLanguage();
|
|
33
|
-
const originalSnippet = useSnippet(method.stainlessPath, void 0, language === "http" ? "curl" : "default");
|
|
34
|
-
const decl = useDeclaration(method.stainlessPath, false);
|
|
35
|
-
if (!originalSnippet) {
|
|
36
|
-
console.warn(`Snippet not found for method '${method.stainlessPath}'`);
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
const signature = decl && "qualified" in decl ? decl.qualified : void 0;
|
|
40
|
-
const responses = method.exampleResponses;
|
|
41
|
-
const snippet = transformRequestSnippet ? transformRequestSnippet({
|
|
42
|
-
snippet: originalSnippet,
|
|
43
|
-
language
|
|
44
|
-
}) : originalSnippet;
|
|
45
|
-
const httpMethod = getHttpMethod(method.httpMethod);
|
|
46
|
-
return /* @__PURE__ */ jsxs(Docs.SnippetContainer, {
|
|
47
|
-
signature,
|
|
48
|
-
method,
|
|
49
|
-
children: [snippet && /* @__PURE__ */ jsx(Docs.SnippetRequestContainer, {
|
|
50
|
-
signature,
|
|
51
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
52
|
-
className: style_default.SnippetRequest,
|
|
53
|
-
"data-stldocs-copy-parent": true,
|
|
54
|
-
children: [
|
|
55
|
-
/* @__PURE__ */ jsxs("div", {
|
|
56
|
-
className: style_default.SnippetRequestTitle,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ jsxs("div", {
|
|
59
|
-
className: style_default.SnippetRequestTitleMethod,
|
|
60
|
-
children: [httpMethod && /* @__PURE__ */ jsx(Badge.HTTP, {
|
|
61
|
-
method: httpMethod,
|
|
62
|
-
iconOnly: true
|
|
63
|
-
}), /* @__PURE__ */ jsx("h3", { children: method.summary || method.title })]
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ jsx("div", {
|
|
66
|
-
className: style_default.SnippetRequestTitleContent,
|
|
67
|
-
children: requestTitle
|
|
68
|
-
}),
|
|
69
|
-
/* @__PURE__ */ jsx(Docs.SnippetButtons, { content: snippet })
|
|
70
|
-
]
|
|
71
|
-
}),
|
|
72
|
-
/* @__PURE__ */ jsx(Docs.SnippetCode, {
|
|
73
|
-
content: snippet,
|
|
74
|
-
signature
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ jsx(Docs.SnippetFooter, {})
|
|
77
|
-
]
|
|
78
|
-
})
|
|
79
|
-
}), responses && /* @__PURE__ */ jsx(Docs.SnippetResponse, { responses })]
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
function SnippetButtons({ content }) {
|
|
83
|
-
const [CopyButtonIcon, setCopyIcon] = React$1.useState(CopyIcon);
|
|
84
|
-
async function handleCopy() {
|
|
85
|
-
try {
|
|
86
|
-
await navigator.clipboard.writeText(content);
|
|
87
|
-
setCopyIcon(CheckIcon);
|
|
88
|
-
} catch {
|
|
89
|
-
setCopyIcon(CircleAlertIcon);
|
|
90
|
-
}
|
|
91
|
-
setTimeout(() => setCopyIcon(CopyIcon), 1e3);
|
|
92
|
-
}
|
|
93
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
94
|
-
variant: "outline",
|
|
95
|
-
"data-stldocs-snippet-copy": true,
|
|
96
|
-
children: /* @__PURE__ */ jsx(CopyButtonIcon, {
|
|
97
|
-
size: 16,
|
|
98
|
-
className: style_default.Icon,
|
|
99
|
-
onClick: handleCopy
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function SnippetFooter() {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
function SnippetResponse({ responses }) {
|
|
107
|
-
const { SnippetCode } = useComponents();
|
|
108
|
-
if (!responses) return null;
|
|
109
|
-
const mappedResponses = Object.keys(responses).map((key) => {
|
|
110
|
-
const responseContent = responses[key];
|
|
111
|
-
if (!responseContent) return null;
|
|
112
|
-
const responseType = Object.keys(responseContent)[0];
|
|
113
|
-
if (!responseType) return null;
|
|
114
|
-
const response = responseContent[responseType];
|
|
115
|
-
if (!response) return null;
|
|
116
|
-
const examples = response?.examples;
|
|
117
|
-
if (!examples) return null;
|
|
118
|
-
const exampleType = Object.keys(examples)[0];
|
|
119
|
-
if (!exampleType) return null;
|
|
120
|
-
let value = examples[exampleType]?.value;
|
|
121
|
-
if (!value) return null;
|
|
122
|
-
let language = "none";
|
|
123
|
-
if (responseType === "application/json" || typeof value === "object") {
|
|
124
|
-
language = "json";
|
|
125
|
-
value = JSON.stringify(value, null, 2);
|
|
126
|
-
}
|
|
127
|
-
return {
|
|
128
|
-
language,
|
|
129
|
-
responseCode: key,
|
|
130
|
-
content: value
|
|
131
|
-
};
|
|
132
|
-
}).filter(Boolean);
|
|
133
|
-
if (mappedResponses.length === 0) return null;
|
|
134
|
-
return /* @__PURE__ */ jsx("div", {
|
|
135
|
-
className: style_default.SnippetMultiResponse,
|
|
136
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
137
|
-
className: clsx(style_default.Snippet),
|
|
138
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
139
|
-
className: clsx(style_default.SnippetResponseTab, mappedResponses.length === 1 && style_default.SnippetResponseTabSingleReturn),
|
|
140
|
-
children: mappedResponses.map(({ responseCode }, index) => /* @__PURE__ */ jsx("div", {
|
|
141
|
-
"data-snippet-response-tab-id": `snippet-response-tab-${responseCode}-${index}`,
|
|
142
|
-
className: clsx(style_default.SnippetResponseTabItem, index === 0 && style_default.SnippetResponseTabItemActive),
|
|
143
|
-
children: /* @__PURE__ */ jsxs(Button, {
|
|
144
|
-
disabled: mappedResponses.length === 1,
|
|
145
|
-
variant: "ghost",
|
|
146
|
-
children: [responseCode, " example"]
|
|
147
|
-
})
|
|
148
|
-
}, `snippet-response-tab-item-${responseCode}-${index}`))
|
|
149
|
-
}), mappedResponses.map(({ responseCode, content, language }, index) => {
|
|
150
|
-
return /* @__PURE__ */ jsx("div", {
|
|
151
|
-
className: clsx(style_default.SnippetResponsePane, index === 0 && style_default.SnippetResponsePaneActive),
|
|
152
|
-
"data-snippet-response-pane-id": `snippet-response-tab-${responseCode}-${index}`,
|
|
153
|
-
children: /* @__PURE__ */ jsx(SnippetCode, {
|
|
154
|
-
content,
|
|
155
|
-
language
|
|
156
|
-
})
|
|
157
|
-
}, `snippet-response-${responseCode}-${index}`);
|
|
158
|
-
})]
|
|
159
|
-
})
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
//#endregion
|
|
164
|
-
export { SnippetFooter as a, SnippetContainer as i, SnippetButtons as n, SnippetRequestContainer as o, SnippetCode as r, SnippetResponse as s, Snippet 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-BvZeXpsj.js";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
|
-
import * as react_jsx_runtime50 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_runtime50.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_runtime50.JSX.Element;
|
|
29
|
-
type SnippetRequestContainerProps = {
|
|
30
|
-
children?: React$1.ReactNode;
|
|
31
|
-
signature?: string;
|
|
32
|
-
};
|
|
33
|
-
declare function SnippetRequestContainer({
|
|
34
|
-
children
|
|
35
|
-
}: SnippetRequestContainerProps): react_jsx_runtime50.JSX.Element;
|
|
36
|
-
declare function Snippet({
|
|
37
|
-
requestTitle,
|
|
38
|
-
method,
|
|
39
|
-
transformRequestSnippet
|
|
40
|
-
}: SnippetProps): react_jsx_runtime50.JSX.Element | null;
|
|
41
|
-
declare function SnippetButtons({
|
|
42
|
-
content
|
|
43
|
-
}: {
|
|
44
|
-
content: string;
|
|
45
|
-
}): react_jsx_runtime50.JSX.Element;
|
|
46
|
-
declare function SnippetFooter(): React$1.ReactNode;
|
|
47
|
-
declare function SnippetResponse({
|
|
48
|
-
responses
|
|
49
|
-
}: {
|
|
50
|
-
responses: Method['exampleResponses'];
|
|
51
|
-
}): react_jsx_runtime50.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 };
|