@stainless-api/docs-ui 0.1.0-beta.10 → 0.1.0-beta.11
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-Z-hEqjcp.d.ts +19 -0
- package/dist/chunk-Bp6m_JJh.js +13 -0
- package/dist/component-generics-DzI21jRn.js +35 -0
- package/dist/component-generics-q5Dqiu2D.d.ts +30 -0
- package/dist/components/breadcrumbs.d.ts +2 -11
- package/dist/components/breadcrumbs.js +16 -52
- package/dist/components/chat.d.ts +13 -5
- package/dist/components/chat.js +138 -74
- package/dist/components/dropdown.d.ts +2 -17
- package/dist/components/dropdown.js +4 -18
- package/dist/components/icons.d.ts +50 -27
- package/dist/components/icons.js +3 -34
- package/dist/components/index.d.ts +12 -9
- package/dist/components/index.js +16 -10
- package/dist/components/method.d.ts +2 -41
- package/dist/components/method.js +16 -44
- package/dist/components/overview.d.ts +2 -21
- package/dist/components/overview.js +16 -49
- package/dist/components/primitives.d.ts +2 -60
- package/dist/components/primitives.js +16 -117
- package/dist/components/properties.d.ts +2 -24
- package/dist/components/properties.js +16 -24
- package/dist/components/scripts/dropdown.d.ts +11 -4
- package/dist/components/scripts/dropdown.js +49 -63
- package/dist/components/sdk.d.ts +3 -78
- package/dist/components/sdk.js +16 -153
- package/dist/components/sidebar.d.ts +2 -22
- package/dist/components/sidebar.js +16 -30
- package/dist/components/snippets.d.ts +4 -28
- package/dist/components/snippets.js +16 -76
- package/dist/contexts/component-generics.d.ts +2 -25
- package/dist/contexts/component-generics.js +3 -24
- package/dist/contexts/component-types.d.ts +18 -4
- package/dist/contexts/component-types.js +1 -2
- package/dist/contexts/component.d.ts +31 -14
- package/dist/contexts/component.js +16 -14
- package/dist/contexts/docs.d.ts +2 -34
- package/dist/contexts/docs.js +3 -43
- package/dist/contexts/index.d.ts +20 -7
- package/dist/contexts/index.js +16 -15
- package/dist/contexts/markdown.d.ts +2 -13
- package/dist/contexts/markdown.js +4 -29
- package/dist/contexts/navigation.d.ts +3 -19
- package/dist/contexts/navigation.js +3 -14
- package/dist/contexts/search.d.ts +4 -13
- package/dist/contexts/search.js +16 -15
- package/dist/contexts/use-components.d.ts +16 -1
- package/dist/contexts/use-components.js +4 -3
- package/dist/contexts-DRxRO-xO.js +3747 -0
- package/dist/docs-Dh8kE1va.js +50 -0
- package/dist/docs-EUy-wfbA.d.ts +43 -0
- package/dist/dropdown-B7VyGMOw.d.ts +43 -0
- package/dist/dropdown-DtgAi6lb.js +62 -0
- package/dist/icons-DdKM-01E.js +753 -0
- package/dist/index-AicgPYKB.d.ts +239 -0
- package/dist/index-BhwLhiWk.d.ts +14 -0
- package/dist/index-YnpUtXLB.d.ts +16 -0
- package/dist/index.d.ts +22 -6
- package/dist/index.js +16 -7
- package/dist/languages/go.d.ts +13 -21
- package/dist/languages/go.js +16 -116
- package/dist/languages/http.d.ts +13 -25
- package/dist/languages/http.js +16 -130
- package/dist/languages/index.d.ts +13 -37
- package/dist/languages/index.js +16 -10
- package/dist/languages/java.d.ts +13 -23
- package/dist/languages/java.js +16 -120
- package/dist/languages/python.d.ts +13 -22
- package/dist/languages/python.js +16 -104
- package/dist/languages/ruby.d.ts +13 -22
- package/dist/languages/ruby.js +16 -125
- package/dist/languages/typescript.d.ts +13 -22
- package/dist/languages/typescript.js +16 -134
- package/dist/markdown/index.d.ts +11 -6
- package/dist/markdown/index.js +16 -80
- package/dist/markdown/md.d.ts +15 -11
- package/dist/markdown/md.js +3 -34
- package/dist/markdown/utils.d.ts +4 -17
- package/dist/markdown/utils.js +3 -30
- package/dist/markdown-BXfX1D7C.js +42 -0
- package/dist/markdown-nFyAEX_K.d.ts +22 -0
- package/dist/md-Dg8aOyMA.js +41 -0
- package/dist/method-DpsVuzZW.d.ts +71 -0
- package/dist/navigation-aoYZ_tl4.js +24 -0
- package/dist/navigation-nyXBY-75.d.ts +29 -0
- package/dist/overview-C8e-6jGr.d.ts +38 -0
- package/dist/pagefind-ChrPfuVv.js +15 -0
- package/dist/primitives-DWz23_Ub.d.ts +99 -0
- package/dist/properties-CF71V58d.d.ts +46 -0
- package/dist/routing-DQjbRxdJ.js +189 -0
- package/dist/routing-qc0V00-j.d.ts +51 -0
- package/dist/routing.d.ts +2 -44
- package/dist/routing.js +3 -169
- package/dist/sdk-Zg3Rggk3.d.ts +118 -0
- package/dist/search/index.d.ts +26 -1
- package/dist/search/index.js +332 -2
- package/dist/search/providers/algolia.d.ts +22 -7
- package/dist/search/providers/algolia.js +16 -64
- package/dist/search/providers/fuse.d.ts +16 -9
- package/dist/search/providers/fuse.js +29 -12
- package/dist/search/providers/pagefind.d.ts +7 -2
- package/dist/search/providers/pagefind.js +3 -19
- package/dist/search/providers/walker.d.ts +8 -5
- package/dist/search/providers/walker.js +28 -19
- package/dist/search/types.d.ts +3 -79
- package/dist/search/types.js +3 -24
- package/dist/search-B6loAGmB.d.ts +21 -0
- package/dist/sidebar-C8KirYjg.d.ts +35 -0
- package/dist/snippets-EUzM4fRO.d.ts +45 -0
- package/dist/style-pN9hCoec.d.ts +181 -0
- package/dist/style-rYbbxIR_.js +182 -0
- package/dist/style.d.ts +2 -179
- package/dist/style.js +3 -179
- package/dist/styles/main.css +740 -746
- package/dist/styles/main.js +1 -0
- package/dist/styles/primitives.css +436 -428
- package/dist/styles/primitives.js +1 -0
- package/dist/styles/resets.css +34 -41
- package/dist/styles/resets.js +1 -0
- package/dist/styles/search.css +248 -248
- package/dist/styles/search.js +1 -0
- package/dist/styles/sidebar.css +59 -60
- package/dist/styles/sidebar.js +1 -0
- package/dist/styles/snippets.css +87 -88
- package/dist/styles/snippets.js +1 -0
- package/dist/styles/variables.css +86 -89
- package/dist/styles/variables.js +1 -0
- package/dist/types-CTBDtD34.d.ts +82 -0
- package/dist/types-DFN4M1Sp.js +34 -0
- package/dist/use-components-D9E85p5x.js +7 -0
- package/dist/utils-BHwvUDKn.js +30 -0
- package/dist/utils-CJfFBNgT.js +32 -0
- package/dist/utils-DQhEbvUC.d.ts +20 -0
- package/dist/utils-nDazhti8.d.ts +11 -0
- package/dist/utils.d.ts +2 -7
- package/dist/utils.js +4 -27
- package/package.json +2 -2
- package/dist/components/breadcrumbs.js.map +0 -1
- package/dist/components/chat.js.map +0 -1
- package/dist/components/dropdown.js.map +0 -1
- package/dist/components/icons.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/method.js.map +0 -1
- package/dist/components/overview.js.map +0 -1
- package/dist/components/primitives.js.map +0 -1
- package/dist/components/properties.js.map +0 -1
- package/dist/components/scripts/dropdown.js.map +0 -1
- package/dist/components/sdk.js.map +0 -1
- package/dist/components/sidebar.js.map +0 -1
- package/dist/components/snippets.js.map +0 -1
- package/dist/contexts/component-generics.js.map +0 -1
- package/dist/contexts/component-types.js.map +0 -1
- package/dist/contexts/component.js.map +0 -1
- package/dist/contexts/docs.js.map +0 -1
- package/dist/contexts/index.js.map +0 -1
- package/dist/contexts/markdown.js.map +0 -1
- package/dist/contexts/navigation.js.map +0 -1
- package/dist/contexts/search.js.map +0 -1
- package/dist/contexts/use-components.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/languages/go.js.map +0 -1
- package/dist/languages/http.js.map +0 -1
- package/dist/languages/index.js.map +0 -1
- package/dist/languages/java.js.map +0 -1
- package/dist/languages/python.js.map +0 -1
- package/dist/languages/ruby.js.map +0 -1
- package/dist/languages/typescript.js.map +0 -1
- package/dist/markdown/index.js.map +0 -1
- package/dist/markdown/md.js.map +0 -1
- package/dist/markdown/utils.js.map +0 -1
- package/dist/mcp.js +0 -16105
- package/dist/routing.js.map +0 -1
- package/dist/search/form.d.ts +0 -13
- package/dist/search/form.js +0 -55
- package/dist/search/form.js.map +0 -1
- package/dist/search/index.js.map +0 -1
- package/dist/search/indexer.d.ts +0 -31
- package/dist/search/indexer.js +0 -212
- package/dist/search/indexer.js.map +0 -1
- package/dist/search/mcp.d.ts +0 -8
- package/dist/search/mcp.js +0 -43
- package/dist/search/mcp.js.map +0 -1
- package/dist/search/printer.d.ts +0 -6
- package/dist/search/printer.js +0 -43
- package/dist/search/printer.js.map +0 -1
- package/dist/search/providers/algolia.js.map +0 -1
- package/dist/search/providers/fuse.js.map +0 -1
- package/dist/search/providers/pagefind.js.map +0 -1
- package/dist/search/providers/walker.js.map +0 -1
- package/dist/search/results.d.ts +0 -21
- package/dist/search/results.js +0 -58
- package/dist/search/results.js.map +0 -1
- package/dist/search/state.d.ts +0 -29
- package/dist/search/state.js +0 -38
- package/dist/search/state.js.map +0 -1
- package/dist/search/types.js.map +0 -1
- package/dist/style.js.map +0 -1
- package/dist/types/sdkjson.d.ts +0 -1
- package/dist/types/sdkjson.js +0 -2
- package/dist/types/sdkjson.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.d.ts +0 -120
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.js +0 -2
- package/dist/types/stainless-alias/lib/json-spec-v2/GoAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.d.ts +0 -100
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/HttpAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.d.ts +0 -87
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.js +0 -2
- package/dist/types/stainless-alias/lib/json-spec-v2/JavaAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.d.ts +0 -110
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/PythonAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.d.ts +0 -122
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.js +0 -2
- package/dist/types/stainless-alias/lib/json-spec-v2/RubyAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.d.ts +0 -146
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/TSAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.d.ts +0 -89
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.js +0 -3
- package/dist/types/stainless-alias/lib/json-spec-v2/TerraformAST.js.map +0 -1
- package/dist/types/stainless-alias/lib/json-spec-v2/types.d.ts +0 -190
- package/dist/types/stainless-alias/lib/json-spec-v2/types.js +0 -105
- package/dist/types/stainless-alias/lib/json-spec-v2/types.js.map +0 -1
- package/dist/utils.js.map +0 -1
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { i as PropertyProps } from "./properties-CF71V58d.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import React, { ReactNode } from "react";
|
|
4
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/languages/typescript.d.ts
|
|
7
|
+
declare namespace typescript_d_exports {
|
|
8
|
+
export { Declaration$5 as Declaration, DeclarationProps$5 as DeclarationProps, MethodSignature$5 as MethodSignature, MethodSignatureProps$5 as MethodSignatureProps, Property$5 as Property, PropertyProps$6 as PropertyProps, Type$5 as Type, TypeName$5 as TypeName };
|
|
9
|
+
}
|
|
10
|
+
type TypeProps$5 = {
|
|
11
|
+
type: TSAST.TSType;
|
|
12
|
+
};
|
|
13
|
+
declare function TypeName$5({
|
|
14
|
+
type
|
|
15
|
+
}: TypeProps$5): string | react_jsx_runtime21.JSX.Element;
|
|
16
|
+
declare function Type$5({
|
|
17
|
+
type
|
|
18
|
+
}: TypeProps$5): react_jsx_runtime21.JSX.Element;
|
|
19
|
+
type MethodSignatureProps$5 = {
|
|
20
|
+
decl: TSAST.TSDeclFunction;
|
|
21
|
+
};
|
|
22
|
+
declare function MethodSignature$5({
|
|
23
|
+
decl
|
|
24
|
+
}: MethodSignatureProps$5): react_jsx_runtime21.JSX.Element;
|
|
25
|
+
type PropertyProps$6 = {
|
|
26
|
+
decl: TSAST.TSDeclaration;
|
|
27
|
+
children?: PropertyFn;
|
|
28
|
+
};
|
|
29
|
+
declare function Property$5({
|
|
30
|
+
decl,
|
|
31
|
+
children
|
|
32
|
+
}: PropertyProps$6): React$1.ReactNode;
|
|
33
|
+
type DeclarationProps$5 = {
|
|
34
|
+
decl: TSAST.TSDeclaration;
|
|
35
|
+
};
|
|
36
|
+
declare function Declaration$5({
|
|
37
|
+
decl
|
|
38
|
+
}: DeclarationProps$5): react_jsx_runtime21.JSX.Element | undefined;
|
|
39
|
+
declare namespace java_d_exports {
|
|
40
|
+
export { Declaration$4 as Declaration, DeclarationProps$4 as DeclarationProps, MethodSignature$4 as MethodSignature, MethodSignatureProps$4 as MethodSignatureProps, Property$4 as Property, PropertyProps$5 as PropertyProps, Type$4 as Type, TypeName$4 as TypeName };
|
|
41
|
+
}
|
|
42
|
+
type TypeProps$4 = {
|
|
43
|
+
type: AST$4.JavaType;
|
|
44
|
+
optional?: boolean;
|
|
45
|
+
};
|
|
46
|
+
declare function TypeName$4({
|
|
47
|
+
type,
|
|
48
|
+
optional
|
|
49
|
+
}: TypeProps$4): react_jsx_runtime21.JSX.Element | "List";
|
|
50
|
+
declare function Type$4({
|
|
51
|
+
type,
|
|
52
|
+
optional
|
|
53
|
+
}: TypeProps$4): react_jsx_runtime21.JSX.Element;
|
|
54
|
+
type MethodSignatureProps$4 = {
|
|
55
|
+
decl: AST$4.JavaDeclFunction;
|
|
56
|
+
};
|
|
57
|
+
declare function MethodSignature$4({
|
|
58
|
+
decl
|
|
59
|
+
}: MethodSignatureProps$4): react_jsx_runtime21.JSX.Element;
|
|
60
|
+
type PropertyProps$5 = {
|
|
61
|
+
decl: AST$4.JavaDeclaration;
|
|
62
|
+
children?: PropertyFn;
|
|
63
|
+
};
|
|
64
|
+
declare function Property$4({
|
|
65
|
+
decl,
|
|
66
|
+
children
|
|
67
|
+
}: PropertyProps$5): React$1.ReactNode;
|
|
68
|
+
type DeclarationProps$4 = {
|
|
69
|
+
decl: AST$4.JavaDeclaration;
|
|
70
|
+
};
|
|
71
|
+
declare function Declaration$4({
|
|
72
|
+
decl
|
|
73
|
+
}: DeclarationProps$4): react_jsx_runtime21.JSX.Element | null | undefined;
|
|
74
|
+
declare namespace go_d_exports {
|
|
75
|
+
export { Declaration$3 as Declaration, DeclarationProps$3 as DeclarationProps, MethodSignature$3 as MethodSignature, MethodSignatureProps$3 as MethodSignatureProps, Property$3 as Property, PropertyProps$4 as PropertyProps, Type$3 as Type, TypeName$3 as TypeName, TypeProps$3 as TypeProps };
|
|
76
|
+
}
|
|
77
|
+
type TypeProps$3 = {
|
|
78
|
+
type: AST$3.GoType;
|
|
79
|
+
};
|
|
80
|
+
declare function TypeName$3({
|
|
81
|
+
type
|
|
82
|
+
}: TypeProps$3): string | react_jsx_runtime21.JSX.Element;
|
|
83
|
+
declare function Type$3({
|
|
84
|
+
type
|
|
85
|
+
}: TypeProps$3): react_jsx_runtime21.JSX.Element;
|
|
86
|
+
type MethodSignatureProps$3 = {
|
|
87
|
+
decl: AST$3.GoDeclFunction;
|
|
88
|
+
};
|
|
89
|
+
declare function MethodSignature$3({
|
|
90
|
+
decl
|
|
91
|
+
}: MethodSignatureProps$3): react_jsx_runtime21.JSX.Element;
|
|
92
|
+
type PropertyProps$4 = {
|
|
93
|
+
decl: AST$3.GoDeclaration;
|
|
94
|
+
children?: PropertyFn;
|
|
95
|
+
};
|
|
96
|
+
declare function Property$3({
|
|
97
|
+
decl,
|
|
98
|
+
children
|
|
99
|
+
}: PropertyProps$4): React$1.ReactNode;
|
|
100
|
+
type DeclarationProps$3 = {
|
|
101
|
+
decl: AST$3.GoDeclaration;
|
|
102
|
+
};
|
|
103
|
+
declare function Declaration$3({
|
|
104
|
+
decl
|
|
105
|
+
}: DeclarationProps$3): react_jsx_runtime21.JSX.Element | undefined;
|
|
106
|
+
declare namespace python_d_exports {
|
|
107
|
+
export { Declaration$2 as Declaration, DeclarationProps$2 as DeclarationProps, MethodSignature$2 as MethodSignature, MethodSignatureProps$2 as MethodSignatureProps, Property$2 as Property, PropertyProps$3 as PropertyProps, Type$2 as Type, TypeName$2 as TypeName };
|
|
108
|
+
}
|
|
109
|
+
type TypeProps$2 = {
|
|
110
|
+
type: AST$2.PythonType;
|
|
111
|
+
};
|
|
112
|
+
declare function TypeName$2({
|
|
113
|
+
type
|
|
114
|
+
}: TypeProps$2): string | react_jsx_runtime21.JSX.Element;
|
|
115
|
+
declare function Type$2({
|
|
116
|
+
type
|
|
117
|
+
}: TypeProps$2): react_jsx_runtime21.JSX.Element;
|
|
118
|
+
type MethodSignatureProps$2 = {
|
|
119
|
+
decl: AST$2.PythonDeclFunction;
|
|
120
|
+
};
|
|
121
|
+
declare function MethodSignature$2({
|
|
122
|
+
decl
|
|
123
|
+
}: MethodSignatureProps$2): react_jsx_runtime21.JSX.Element;
|
|
124
|
+
type PropertyProps$3 = {
|
|
125
|
+
decl: AST$2.PythonDeclaration;
|
|
126
|
+
children?: PropertyFn;
|
|
127
|
+
};
|
|
128
|
+
declare function Property$2({
|
|
129
|
+
decl,
|
|
130
|
+
children
|
|
131
|
+
}: PropertyProps$3): React$1.ReactNode;
|
|
132
|
+
type DeclarationProps$2 = {
|
|
133
|
+
decl: AST$2.PythonDeclaration;
|
|
134
|
+
};
|
|
135
|
+
declare function Declaration$2({
|
|
136
|
+
decl
|
|
137
|
+
}: DeclarationProps$2): react_jsx_runtime21.JSX.Element | undefined;
|
|
138
|
+
declare namespace ruby_d_exports {
|
|
139
|
+
export { Declaration$1 as Declaration, DeclarationProps$1 as DeclarationProps, MethodSignature$1 as MethodSignature, MethodSignatureProps$1 as MethodSignatureProps, Property$1 as Property, PropertyProps$2 as PropertyProps, Type$1 as Type, TypeName$1 as TypeName };
|
|
140
|
+
}
|
|
141
|
+
type TypeProps$1 = {
|
|
142
|
+
type: AST$1.RubyType;
|
|
143
|
+
};
|
|
144
|
+
declare function TypeName$1({
|
|
145
|
+
type
|
|
146
|
+
}: TypeProps$1): string | react_jsx_runtime21.JSX.Element;
|
|
147
|
+
declare function Type$1({
|
|
148
|
+
type
|
|
149
|
+
}: TypeProps$1): react_jsx_runtime21.JSX.Element;
|
|
150
|
+
type MethodSignatureProps$1 = {
|
|
151
|
+
decl: AST$1.RubyDeclFunction;
|
|
152
|
+
};
|
|
153
|
+
declare function MethodSignature$1({
|
|
154
|
+
decl
|
|
155
|
+
}: MethodSignatureProps$1): react_jsx_runtime21.JSX.Element;
|
|
156
|
+
type PropertyProps$2 = {
|
|
157
|
+
decl: AST$1.RubyDeclaration;
|
|
158
|
+
children?: PropertyFn;
|
|
159
|
+
};
|
|
160
|
+
declare function Property$1({
|
|
161
|
+
decl,
|
|
162
|
+
children
|
|
163
|
+
}: PropertyProps$2): React$1.ReactNode;
|
|
164
|
+
type DeclarationProps$1 = {
|
|
165
|
+
decl: AST$1.RubyDeclaration;
|
|
166
|
+
};
|
|
167
|
+
declare function Declaration$1({
|
|
168
|
+
decl
|
|
169
|
+
}: DeclarationProps$1): react_jsx_runtime21.JSX.Element | undefined;
|
|
170
|
+
declare namespace http_d_exports {
|
|
171
|
+
export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps$1 as PropertyProps, Type, TypeName };
|
|
172
|
+
}
|
|
173
|
+
type TypeProps = {
|
|
174
|
+
type: AST.HttpType;
|
|
175
|
+
};
|
|
176
|
+
declare function TypeName({
|
|
177
|
+
type
|
|
178
|
+
}: TypeProps): string | react_jsx_runtime21.JSX.Element;
|
|
179
|
+
declare function Type({
|
|
180
|
+
type
|
|
181
|
+
}: TypeProps): react_jsx_runtime21.JSX.Element | undefined;
|
|
182
|
+
type MethodSignatureProps = {
|
|
183
|
+
decl: AST.HttpDeclFunction;
|
|
184
|
+
};
|
|
185
|
+
declare function MethodSignature({
|
|
186
|
+
decl
|
|
187
|
+
}: MethodSignatureProps): null;
|
|
188
|
+
declare function MethodInfo({
|
|
189
|
+
decl,
|
|
190
|
+
children
|
|
191
|
+
}: MethodSignatureProps & {
|
|
192
|
+
children: React.ReactNode;
|
|
193
|
+
}): react_jsx_runtime21.JSX.Element;
|
|
194
|
+
type PropertyProps$1 = {
|
|
195
|
+
decl: AST.HttpDeclaration;
|
|
196
|
+
children?: PropertyFn;
|
|
197
|
+
};
|
|
198
|
+
declare function Property({
|
|
199
|
+
decl,
|
|
200
|
+
children
|
|
201
|
+
}: PropertyProps$1): React.ReactNode;
|
|
202
|
+
type DeclarationProps = {
|
|
203
|
+
decl: AST.HttpDeclaration;
|
|
204
|
+
};
|
|
205
|
+
declare function Declaration({
|
|
206
|
+
decl
|
|
207
|
+
}: DeclarationProps): react_jsx_runtime21.JSX.Element | undefined;
|
|
208
|
+
declare namespace index_d_exports {
|
|
209
|
+
export { LanguageComponentDefinition, PropertyFn, 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, typescript_d_exports as typescript };
|
|
210
|
+
}
|
|
211
|
+
declare const node: typeof typescript_d_exports;
|
|
212
|
+
declare const kotlin: typeof java_d_exports;
|
|
213
|
+
type PropertyFn = (params: PropertyProps) => ReactNode;
|
|
214
|
+
interface LanguageComponentDefinition {
|
|
215
|
+
Declaration(props: {
|
|
216
|
+
decl: SDKJSON.DeclarationNode;
|
|
217
|
+
}): any;
|
|
218
|
+
Property(props: {
|
|
219
|
+
decl: SDKJSON.DeclarationNode;
|
|
220
|
+
children: PropertyFn;
|
|
221
|
+
}): any;
|
|
222
|
+
TypeName(props: {
|
|
223
|
+
type: SDKJSON.Type;
|
|
224
|
+
optional?: boolean;
|
|
225
|
+
}): any;
|
|
226
|
+
Type(props: {
|
|
227
|
+
type: SDKJSON.Type;
|
|
228
|
+
optional?: boolean;
|
|
229
|
+
}): any;
|
|
230
|
+
MethodSignature(props: {
|
|
231
|
+
decl: SDKJSON.DeclarationNode;
|
|
232
|
+
}): any;
|
|
233
|
+
MethodInfo?(props: {
|
|
234
|
+
decl: SDKJSON.DeclarationNode;
|
|
235
|
+
children?: ReactNode;
|
|
236
|
+
}): any;
|
|
237
|
+
}
|
|
238
|
+
//#endregion
|
|
239
|
+
export { Declaration$5 as $, PropertyProps$3 as A, Type$3 as B, TypeName$1 as C, MethodSignature$2 as D, DeclarationProps$2 as E, DeclarationProps$3 as F, DeclarationProps$4 as G, TypeProps$3 as H, MethodSignature$3 as I, Property$4 as J, MethodSignature$4 as K, MethodSignatureProps$3 as L, TypeName$2 as M, python_d_exports as N, MethodSignatureProps$2 as O, Declaration$3 as P, java_d_exports as Q, Property$3 as R, Type$1 as S, Declaration$2 as T, go_d_exports as U, TypeName$3 as V, Declaration$4 as W, Type$4 as X, PropertyProps$5 as Y, TypeName$4 as Z, DeclarationProps$1 as _, node as a, Type$5 as at, Property$1 as b, MethodInfo as c, Property as d, DeclarationProps$5 as et, PropertyProps$1 as f, Declaration$1 as g, http_d_exports as h, kotlin as i, PropertyProps$6 as it, Type$2 as j, Property$2 as k, MethodSignature as l, TypeName as m, PropertyFn as n, MethodSignatureProps$5 as nt, Declaration as o, TypeName$5 as ot, Type as p, MethodSignatureProps$4 as q, index_d_exports as r, Property$5 as rt, DeclarationProps as s, typescript_d_exports as st, LanguageComponentDefinition as t, MethodSignature$5 as tt, MethodSignatureProps as u, MethodSignature$1 as v, ruby_d_exports as w, PropertyProps$2 as x, MethodSignatureProps$1 as y, PropertyProps$4 as z };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { a as useComponents, i as customizeComponents, n as ComponentProvider, r as ComponentsContextType, t as ComponentContext } from "./component-generics-q5Dqiu2D.js";
|
|
2
|
+
import { t as LanguageComponentDefinition } from "./index-AicgPYKB.js";
|
|
3
|
+
import { a as PropertySettingsType, c as useDocs, d as useSettings, f as useSnippet, i as DocsProviderProps, l as useLanguage, n as DocsContextType, o as useContentPanelLayout, p as useSpec, r as DocsProvider, s as useDeclaration, t as ContentPanelLayout, u as useResource } from "./docs-EUy-wfbA.js";
|
|
4
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "./navigation-nyXBY-75.js";
|
|
5
|
+
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "./markdown-nFyAEX_K.js";
|
|
6
|
+
import { a as useSearchContext, i as useSearch, n as SearchProvider, r as SearchProviderProps, t as SearchContextType } from "./search-B6loAGmB.js";
|
|
7
|
+
|
|
8
|
+
//#region src/contexts/index.d.ts
|
|
9
|
+
declare namespace index_d_exports {
|
|
10
|
+
export { ComponentContext, ComponentProvider, ComponentsContextType, ContentPanelLayout, DocsContextType, DocsProvider, DocsProviderProps, MarkdownContext, MarkdownProvider, MarkdownProviderProps, NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, PropertySettingsType, SearchContextType, SearchProvider, SearchProviderProps, customizeComponents, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSearch, useSearchContext, useSettings, useSnippet, useSpec };
|
|
11
|
+
}
|
|
12
|
+
declare function useLanguageComponents(): LanguageComponentDefinition;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { useLanguageComponents as n, index_d_exports as t };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { t as SDKBreadcrumbs } from "./breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import { i as DropdownTrigger, n as DropdownItem, r as DropdownMenu, t as Dropdown } from "./dropdown-B7VyGMOw.js";
|
|
3
|
+
import { a as MethodDescription, c as MethodHeaderProps, d as MethodInfo, f as MethodInfoProps, h as MethodRouteProps, i as Method, l as MethodIconBadge, m as MethodRoute, n as HttpMethodIcons, o as MethodDescriptionProps, p as MethodProps, r as HttpMethods, s as MethodHeader, t as HTTPMethod, u as MethodIconProps } from "./method-DpsVuzZW.js";
|
|
4
|
+
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "./primitives-DWz23_Ub.js";
|
|
5
|
+
import { a as PropertyToggle, i as PropertyProps, n as PropertyDescription, o as PropertyToggleProps, r as PropertyDescriptionProps, t as Property } from "./properties-CF71V58d.js";
|
|
6
|
+
import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "./sdk-Zg3Rggk3.js";
|
|
7
|
+
import { a as SnippetContainerProps, c as SnippetRequestContainerProps, i as SnippetContainer, l as SnippetResponse, n as SnippetCode, o as SnippetProps, r as SnippetCodeProps, s as SnippetRequestContainer, t as Snippet } from "./snippets-EUzM4fRO.js";
|
|
8
|
+
import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "./overview-C8e-6jGr.js";
|
|
9
|
+
import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "./sidebar-C8KirYjg.js";
|
|
10
|
+
|
|
11
|
+
//#region src/components/index.d.ts
|
|
12
|
+
declare namespace index_d_exports {
|
|
13
|
+
export { Badge, Dropdown, DropdownItem, DropdownMenu, DropdownTrigger, Expander, HTTPMethod, HttpMethodIcons, HttpMethods, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodIconBadge, MethodIconProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps, Snippet, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, usePropertyModel, useReferenceNesting };
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { index_d_exports as t };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import "./breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "./dropdown-B7VyGMOw.js";
|
|
3
|
+
import "./method-DpsVuzZW.js";
|
|
4
|
+
import "./primitives-DWz23_Ub.js";
|
|
5
|
+
import "./properties-CF71V58d.js";
|
|
6
|
+
import { _ as routing_d_exports } from "./routing-qc0V00-j.js";
|
|
7
|
+
import "./sdk-Zg3Rggk3.js";
|
|
8
|
+
import "./snippets-EUzM4fRO.js";
|
|
9
|
+
import "./overview-C8e-6jGr.js";
|
|
10
|
+
import "./sidebar-C8KirYjg.js";
|
|
11
|
+
import { t as index_d_exports } from "./index-YnpUtXLB.js";
|
|
12
|
+
import "./component-generics-q5Dqiu2D.js";
|
|
13
|
+
import { r as index_d_exports$2 } from "./index-AicgPYKB.js";
|
|
14
|
+
import "./docs-EUy-wfbA.js";
|
|
15
|
+
import "./navigation-nyXBY-75.js";
|
|
16
|
+
import "./markdown-nFyAEX_K.js";
|
|
17
|
+
import "./types-CTBDtD34.js";
|
|
18
|
+
import "./search-B6loAGmB.js";
|
|
19
|
+
import { t as index_d_exports$1 } from "./index-BhwLhiWk.js";
|
|
20
|
+
import { i as utils_d_exports } from "./utils-nDazhti8.js";
|
|
21
|
+
import { t as _default } from "./style-pN9hCoec.js";
|
|
22
|
+
export { index_d_exports as components, index_d_exports$1 as contexts, index_d_exports$2 as languages, routing_d_exports as routing, _default as style, utils_d_exports as utils };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import "./component-generics-DzI21jRn.js";
|
|
2
|
+
import "./docs-Dh8kE1va.js";
|
|
3
|
+
import "./navigation-aoYZ_tl4.js";
|
|
4
|
+
import "./markdown-BXfX1D7C.js";
|
|
5
|
+
import { p as routing_exports } from "./routing-DQjbRxdJ.js";
|
|
6
|
+
import { t as style_default } from "./style-rYbbxIR_.js";
|
|
7
|
+
import "./use-components-D9E85p5x.js";
|
|
8
|
+
import { g as languages_exports, t as contexts_exports, tt as components_exports } from "./contexts-DRxRO-xO.js";
|
|
9
|
+
import "./icons-DdKM-01E.js";
|
|
10
|
+
import { i as utils_exports } from "./utils-CJfFBNgT.js";
|
|
11
|
+
import "./dropdown-DtgAi6lb.js";
|
|
12
|
+
import "./md-Dg8aOyMA.js";
|
|
13
|
+
import "./utils-BHwvUDKn.js";
|
|
14
|
+
import "./types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { components_exports as components, contexts_exports as contexts, languages_exports as languages, routing_exports as routing, style_default as style, utils_exports as utils };
|
package/dist/languages/go.d.ts
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
decl: AST.GoDeclaration;
|
|
15
|
-
children?: PropertyFn;
|
|
16
|
-
};
|
|
17
|
-
export declare function Property({ decl, children }: PropertyProps): React.ReactNode;
|
|
18
|
-
export type DeclarationProps = {
|
|
19
|
-
decl: AST.GoDeclaration;
|
|
20
|
-
};
|
|
21
|
-
export declare function Declaration({ decl }: DeclarationProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { B as Type, F as DeclarationProps, H as TypeProps, I as MethodSignature, L as MethodSignatureProps, P as Declaration, R as Property, V as TypeName, z as PropertyProps } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, TypeProps };
|
package/dist/languages/go.js
CHANGED
|
@@ -1,116 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
function isField(type) {
|
|
19
|
-
return type.kind === 'GoTypeReference' && type.typeName === 'param.Field';
|
|
20
|
-
}
|
|
21
|
-
export function TypeName({ type }) {
|
|
22
|
-
const Lang = useLanguageComponents();
|
|
23
|
-
return isField(type) ? 'field' : (ComplexTypes[type.kind] ?? _jsx(Lang.Type, { type: type }));
|
|
24
|
-
}
|
|
25
|
-
export function Type({ type }) {
|
|
26
|
-
const Lang = useLanguageComponents();
|
|
27
|
-
const { Join, SDKReference } = useComponents();
|
|
28
|
-
switch (type.kind) {
|
|
29
|
-
case 'GoTypeReference': {
|
|
30
|
-
const params = type.typeParameters?.map((param, key) => _jsx(Lang.Type, { type: param }, key));
|
|
31
|
-
return (_jsxs("span", { className: style.Type, children: [_jsx(SDKReference, { stainlessPath: type.$ref, children: type.typeName }), params && params.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("span", { className: style.TypeBracket, children: '[' }), _jsx(Join, { items: params, limit: 3, children: _jsx("span", { className: style.TextOperator, children: ", " }) }), _jsx("span", { className: style.TypeBracket, children: ']' })] })) : null] }));
|
|
32
|
-
}
|
|
33
|
-
case 'GoTypeAny':
|
|
34
|
-
case 'GoTypeUnknown':
|
|
35
|
-
case 'GoTypeInt':
|
|
36
|
-
case 'GoTypeFloat':
|
|
37
|
-
case 'GoTypeBool':
|
|
38
|
-
case 'GoTypeError':
|
|
39
|
-
return (_jsx("span", { className: style.Type, children: _jsx("span", { className: style.TypeKeyword, children: Keywords[type.kind] }) }));
|
|
40
|
-
case 'GoTypeString':
|
|
41
|
-
return (_jsx("span", { className: style.Type, children: _jsx("span", { className: style.TypeString, children: "string" }) }));
|
|
42
|
-
case 'GoTypeArray':
|
|
43
|
-
return (_jsxs("span", { className: style.Type, children: [_jsx("span", { className: style.TextOperator, children: "[]" }), _jsx(Lang.Type, { type: type.elementType })] }));
|
|
44
|
-
case 'GoTypeStruct':
|
|
45
|
-
return (_jsx("span", { className: style.Type, children: _jsx("span", { className: style.TypeKeyword, children: 'struct{…}' }) }));
|
|
46
|
-
case 'GoTypeInterface':
|
|
47
|
-
return (_jsx("span", { className: style.Type, children: _jsx("span", { className: style.TypeKeyword, children: 'interface{…}' }) }));
|
|
48
|
-
case 'GoTypeMap':
|
|
49
|
-
return (_jsxs("span", { className: style.Type, children: [_jsx("span", { className: style.TypeKeyword, children: "map" }), _jsx("span", { className: style.TypeBracket, children: "[" }), _jsx(Lang.Type, { type: type.indexType }), _jsx("span", { className: style.TextPunctuation, children: "," }), " ", _jsx(Lang.Type, { type: type.itemType }), _jsx("span", { className: style.TypeBracket, children: "]" })] }));
|
|
50
|
-
case 'GoTypePointer':
|
|
51
|
-
return (_jsxs("span", { className: style.Type, children: [_jsx("span", { className: style.TextOperator, children: "*" }), _jsx(Lang.Type, { type: type.inner })] }));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
export function MethodSignature({ decl }) {
|
|
55
|
-
const Lang = useLanguageComponents();
|
|
56
|
-
const { Join } = useComponents();
|
|
57
|
-
const params = decl.parameters.map((param, i) => (_jsxs(React.Fragment, { children: [_jsx("span", { className: style.TextIdentifier, children: param.ident }), param.optional && _jsx("span", { className: style.TextPunctuation, children: "?" })] }, i)));
|
|
58
|
-
const returns = decl.returnType.map((t, key) => _jsx(Lang.Type, { type: t }, key));
|
|
59
|
-
return (_jsx("div", { className: style.MethodSignature, children: _jsxs("span", { className: style.SignatureTitle, children: [decl.async && _jsx("span", { className: style.TextKeyword, children: "async " }), decl.qualified && (_jsx("span", { className: style.SignatureQualified, children: _jsx("span", { className: style.TextIdentifier, children: decl.qualified?.slice(0, -decl.ident.length) }) })), decl.kind === 'GoDeclFunction' && (_jsx("span", { className: style.SignatureName, children: _jsx("span", { className: style.TextIdentifier, children: decl.ident }) })), _jsxs("span", { className: style.MethodSignature, children: [_jsx("span", { className: style.SignatureParen, children: '(' }), _jsx("span", { className: style.SignatureParams, children: _jsx(Join, { items: params, children: _jsx("span", { className: style.TextOperator, children: ', ' }) }) }), _jsxs("span", { className: style.SignatureParen, children: [')', " "] }), decl.returnType.length === 1 ? (returns) : (_jsxs(_Fragment, { children: [_jsx("span", { className: style.SignatureParen, children: '(' }), _jsx(Join, { items: returns, children: _jsx("span", { className: style.TextOperator, children: ", " }) }), _jsx("span", { className: style.SignatureParen, children: ')' })] }))] })] }) }));
|
|
60
|
-
}
|
|
61
|
-
export function Property({ decl, children }) {
|
|
62
|
-
const Docs = useComponents();
|
|
63
|
-
const Lang = useLanguageComponents();
|
|
64
|
-
if (!decl)
|
|
65
|
-
return null;
|
|
66
|
-
switch (decl.kind) {
|
|
67
|
-
case 'GoDeclProperty':
|
|
68
|
-
return children({
|
|
69
|
-
name: decl.ident,
|
|
70
|
-
typeName: _jsx(Lang.TypeName, { type: decl.type }),
|
|
71
|
-
badges: decl.optional && _jsx(Docs.Badge, { id: "optional" }),
|
|
72
|
-
type: (isField(decl.type) || decl.type.kind in ComplexTypes) && _jsx(Lang.Type, { type: decl.type }),
|
|
73
|
-
});
|
|
74
|
-
case 'GoDeclConst':
|
|
75
|
-
return children({
|
|
76
|
-
name: decl.ident,
|
|
77
|
-
typeName: 'const',
|
|
78
|
-
type: _jsx(Lang.Type, { type: decl.type }),
|
|
79
|
-
});
|
|
80
|
-
case 'GoDeclReference':
|
|
81
|
-
return children({ type: _jsx(Lang.Type, { type: decl.type }) });
|
|
82
|
-
case 'GoDeclType':
|
|
83
|
-
case 'GoDeclTypeAlias': {
|
|
84
|
-
const typeName = decl.type.kind === 'GoTypeStruct'
|
|
85
|
-
? 'struct'
|
|
86
|
-
: decl.type.kind === 'GoTypeInterface'
|
|
87
|
-
? 'interface'
|
|
88
|
-
: decl.kind === 'GoDeclTypeAlias'
|
|
89
|
-
? 'alias'
|
|
90
|
-
: 'type';
|
|
91
|
-
return children({
|
|
92
|
-
name: decl.ident,
|
|
93
|
-
typeName,
|
|
94
|
-
type: ['GoTypeStruct', 'GoTypeInterface'].includes(decl.type.kind) || _jsx(Lang.Type, { type: decl.type }),
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
export function Declaration({ decl }) {
|
|
100
|
-
const Lang = useLanguageComponents();
|
|
101
|
-
if (!decl)
|
|
102
|
-
return;
|
|
103
|
-
switch (decl.kind) {
|
|
104
|
-
case 'GoDeclType':
|
|
105
|
-
return (_jsxs(_Fragment, { children: [_jsx("span", { className: style.TextKeyword, children: "type " }), _jsxs("span", { className: style.TextIdentifier, children: [decl.ident, " "] }), _jsx(Lang.Type, { type: decl.type })] }));
|
|
106
|
-
case 'GoDeclTypeAlias':
|
|
107
|
-
return (_jsxs(_Fragment, { children: [_jsx("span", { className: style.TextKeyword, children: "type " }), _jsxs("span", { className: style.TextIdentifier, children: [decl.ident, " "] }), _jsx("span", { className: style.TextOperator, children: "= " }), _jsx(Lang.Type, { type: decl.type })] }));
|
|
108
|
-
case 'GoDeclProperty':
|
|
109
|
-
return (_jsxs(_Fragment, { children: [_jsx("span", { className: style.TypePropertyName, children: _jsxs("span", { className: style.TextIdentifier, children: [decl.ident, " "] }) }), _jsx(Lang.Type, { type: decl.type })] }));
|
|
110
|
-
case 'GoDeclReference':
|
|
111
|
-
return _jsx(Lang.Type, { type: decl.type });
|
|
112
|
-
case 'GoDeclConst':
|
|
113
|
-
return (_jsxs(_Fragment, { children: [_jsx("span", { className: style.TextKeyword, children: "const " }), _jsxs("span", { className: style.TextIdentifier, children: [decl.ident, " "] }), _jsx(Lang.Type, { type: decl.type }), _jsx("span", { className: style.TextOperator, children: " = " }), JSON.stringify(decl.value)] }));
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
//# sourceMappingURL=go.js.map
|
|
1
|
+
import "../component-generics-DzI21jRn.js";
|
|
2
|
+
import "../docs-Dh8kE1va.js";
|
|
3
|
+
import "../navigation-aoYZ_tl4.js";
|
|
4
|
+
import "../markdown-BXfX1D7C.js";
|
|
5
|
+
import "../routing-DQjbRxdJ.js";
|
|
6
|
+
import "../style-rYbbxIR_.js";
|
|
7
|
+
import "../use-components-D9E85p5x.js";
|
|
8
|
+
import { B as Type, L as Declaration, R as MethodSignature, V as TypeName, z as Property } from "../contexts-DRxRO-xO.js";
|
|
9
|
+
import "../icons-DdKM-01E.js";
|
|
10
|
+
import "../utils-CJfFBNgT.js";
|
|
11
|
+
import "../dropdown-DtgAi6lb.js";
|
|
12
|
+
import "../md-Dg8aOyMA.js";
|
|
13
|
+
import "../utils-BHwvUDKn.js";
|
|
14
|
+
import "../types-DFN4M1Sp.js";
|
|
15
|
+
|
|
16
|
+
export { Declaration, MethodSignature, Property, Type, TypeName };
|
package/dist/languages/http.d.ts
CHANGED
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
children: React.ReactNode;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export type PropertyProps = {
|
|
17
|
-
decl: AST.HttpDeclaration;
|
|
18
|
-
children?: PropertyFn;
|
|
19
|
-
};
|
|
20
|
-
export declare function Property({ decl, children }: PropertyProps): React.ReactNode;
|
|
21
|
-
export type DeclarationProps = {
|
|
22
|
-
decl: AST.HttpDeclaration;
|
|
23
|
-
};
|
|
24
|
-
export declare function Declaration({ decl }: DeclarationProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
25
|
-
export {};
|
|
1
|
+
import "../breadcrumbs-Z-hEqjcp.js";
|
|
2
|
+
import "../dropdown-B7VyGMOw.js";
|
|
3
|
+
import "../method-DpsVuzZW.js";
|
|
4
|
+
import "../primitives-DWz23_Ub.js";
|
|
5
|
+
import "../properties-CF71V58d.js";
|
|
6
|
+
import "../routing-qc0V00-j.js";
|
|
7
|
+
import "../sdk-Zg3Rggk3.js";
|
|
8
|
+
import "../snippets-EUzM4fRO.js";
|
|
9
|
+
import "../overview-C8e-6jGr.js";
|
|
10
|
+
import "../sidebar-C8KirYjg.js";
|
|
11
|
+
import "../index-YnpUtXLB.js";
|
|
12
|
+
import { c as MethodInfo, d as Property, f as PropertyProps, l as MethodSignature, m as TypeName, o as Declaration, p as Type, s as DeclarationProps, u as MethodSignatureProps } from "../index-AicgPYKB.js";
|
|
13
|
+
export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|