@stainless-api/docs-ui 0.1.0-beta.5 → 0.1.0-beta.51
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-BdYnaHA8.d.ts +20 -0
- package/dist/breadcrumbs-CA7GmW_8.d.ts +20 -0
- package/dist/breadcrumbs-nSFZO5Gf.js +63 -0
- package/dist/chunk-DRcLgZ1e.js +18 -0
- package/dist/component-DRO8kQSp.js +23 -0
- package/dist/component-generics-B6Fn47Mz.js +45 -0
- package/dist/component-generics-BHFUK06s.d.ts +30 -0
- package/dist/component-generics-BJSyydZ-.d.ts +30 -0
- package/dist/components/MaskedInput.d.ts +14 -0
- package/dist/components/MaskedInput.js +76 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +9 -0
- package/dist/components/icons.d.ts +55 -0
- package/dist/components/icons.js +3 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.js +18 -0
- package/dist/components/method.d.ts +2 -0
- package/dist/components/method.js +10 -0
- package/dist/components/overview.d.ts +2 -0
- package/dist/components/overview.js +11 -0
- package/dist/components/primitives.d.ts +2 -0
- package/dist/components/primitives.js +8 -0
- package/dist/components/properties.d.ts +2 -0
- package/dist/components/properties.js +9 -0
- package/dist/components/sdk.d.ts +2 -0
- package/dist/components/sdk.js +10 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +11 -0
- package/dist/components/snippets.d.ts +3 -0
- package/dist/components/snippets.js +9 -0
- package/dist/components-D7M-BwNI.js +71 -0
- package/dist/contexts/component-generics.d.ts +2 -0
- package/dist/contexts/component-generics.js +3 -0
- package/dist/contexts/component-types.d.ts +16 -0
- package/dist/contexts/component-types.js +0 -0
- package/dist/contexts/component.d.ts +29 -0
- package/dist/contexts/component.js +27 -0
- package/dist/contexts/docs.d.ts +2 -0
- package/dist/contexts/docs.js +3 -0
- package/dist/contexts/index.d.ts +16 -0
- package/dist/contexts/index.js +7 -0
- package/dist/contexts/markdown.d.ts +2 -0
- package/dist/contexts/markdown.js +4 -0
- package/dist/contexts/navigation.d.ts +2 -0
- package/dist/contexts/navigation.js +3 -0
- package/dist/contexts/use-components.d.ts +14 -0
- package/dist/contexts/use-components.js +4 -0
- package/dist/contexts-p3rRZDlM.js +39 -0
- package/dist/csharp-CDSxfCZE.js +283 -0
- package/dist/docs-BUS__I1m.d.ts +47 -0
- package/dist/docs-CXqi26jB.js +54 -0
- package/dist/docs-fKyo35eI.d.ts +47 -0
- package/dist/go-1c3S5ETL.js +303 -0
- package/dist/http-2QNWXH9t.js +330 -0
- package/dist/icons-Ckod9aod.js +869 -0
- package/dist/index-5Yl-BBg3.d.ts +15 -0
- package/dist/index-9LRO8R1a.d.ts +274 -0
- package/dist/index-CBIJwoyp.d.ts +13 -0
- package/dist/index-ClCZKGcw.d.ts +274 -0
- package/dist/index-pMKpm2Jk.d.ts +13 -0
- package/dist/index-q3bZhNWj.d.ts +15 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +29 -7542
- package/dist/java-BbjF_oUI.js +403 -0
- package/dist/languages/csharp.d.ts +11 -0
- package/dist/languages/csharp.js +9 -0
- package/dist/languages/go.d.ts +11 -0
- package/dist/languages/go.js +9 -0
- package/dist/languages/http.d.ts +11 -0
- package/dist/languages/http.js +19 -0
- package/dist/languages/index.d.ts +11 -0
- package/dist/languages/index.js +26 -0
- package/dist/languages/java.d.ts +11 -0
- package/dist/languages/java.js +9 -0
- package/dist/languages/python.d.ts +11 -0
- package/dist/languages/python.js +9 -0
- package/dist/languages/ruby.d.ts +11 -0
- package/dist/languages/ruby.js +9 -0
- package/dist/languages/typescript.d.ts +11 -0
- package/dist/languages/typescript.js +9 -0
- package/dist/languages-BCYZjzuS.js +26 -0
- package/dist/markdown/index.d.ts +12 -0
- package/dist/markdown/index.js +104 -0
- package/dist/markdown/md.d.ts +15 -0
- package/dist/markdown/md.js +3 -0
- package/dist/markdown/printer.d.ts +2 -0
- package/dist/markdown/printer.js +28 -0
- package/dist/markdown/utils.d.ts +3 -0
- package/dist/markdown/utils.js +3 -0
- package/dist/markdown-C8o8WrwG.d.ts +22 -0
- package/dist/markdown-CqJohZei.d.ts +22 -0
- package/dist/markdown-CxdeWgjV.js +48 -0
- package/dist/md-oM2tUaCA.js +41 -0
- package/dist/method-CE08mUME.js +115 -0
- package/dist/method-CMt6uyix.d.ts +71 -0
- package/dist/method-r5UAB40b.d.ts +71 -0
- package/dist/navigation-9_4wRkcT.d.ts +29 -0
- package/dist/navigation-C5TN0SgC.js +24 -0
- package/dist/navigation-zuoWsXzh.d.ts +29 -0
- package/dist/overview-DXmLmmr7.d.ts +39 -0
- package/dist/overview-S2hUqPXA.js +139 -0
- package/dist/overview-ixhAhHj8.d.ts +39 -0
- package/dist/primitives-BIWfwN5L.js +258 -0
- package/dist/primitives-BVXfSSiS.d.ts +97 -0
- package/dist/primitives-Bl0wzAGo.d.ts +97 -0
- package/dist/printer-DBw4S_Jn.d.ts +13 -0
- package/dist/printer-bNxiG6UB.js +74 -0
- package/dist/properties-C-NU_ghj.d.ts +54 -0
- package/dist/properties-GT9ixNTg.d.ts +54 -0
- package/dist/properties-jlGW3USi.js +131 -0
- package/dist/python-USOwFDv_.js +279 -0
- package/dist/routing-CMqh1cTZ.d.ts +54 -0
- package/dist/routing-Wbb7YECB.js +194 -0
- package/dist/routing.d.ts +2 -0
- package/dist/routing.js +3 -180
- package/dist/ruby-CSvGbSLe.js +387 -0
- package/dist/sdk-B5W3VipN.d.ts +118 -0
- package/dist/sdk-CS6A3HW3.d.ts +118 -0
- package/dist/sdk-CSCbbn3O.js +336 -0
- package/dist/sidebar-C3fZrgmP.d.ts +36 -0
- package/dist/sidebar-CWyvCrJ0.js +81 -0
- package/dist/sidebar-CbCLUteD.d.ts +36 -0
- package/dist/snippets-BQLXEIf6.js +161 -0
- package/dist/snippets-C72s2IwS.d.ts +51 -0
- package/dist/snippets-DcFph7ir.d.ts +51 -0
- package/dist/spec.d.ts +65 -0
- package/dist/spec.js +167 -0
- package/dist/style-D7RO5ymE.d.ts +168 -0
- package/dist/style-gnVEeXFj.js +169 -0
- package/dist/style.d.ts +2 -0
- package/dist/style.js +3 -0
- package/dist/styles/main.css +727 -754
- package/dist/styles/main.js +0 -0
- package/dist/styles/primitives.css +317 -461
- package/dist/styles/primitives.js +0 -0
- package/dist/styles/resets.css +32 -41
- package/dist/styles/resets.js +0 -0
- package/dist/styles/search.css +175 -274
- package/dist/styles/search.js +0 -0
- package/dist/styles/sidebar.css +59 -60
- package/dist/styles/sidebar.js +0 -0
- package/dist/styles/variables.css +26 -89
- package/dist/styles/variables.js +0 -0
- package/dist/styles.css +2910 -0
- package/dist/styles.mjs +1 -0
- package/dist/typescript-DXG9psK3.js +449 -0
- package/dist/use-components-RWQbviGq.js +7 -0
- package/dist/utils-CqnL9Fc3.js +31 -0
- package/dist/utils-DGnJ6mcU.d.ts +21 -0
- package/dist/utils-D_1AWSRX.js +32 -0
- package/dist/utils-d8paVwKN.d.ts +14 -0
- package/dist/utils-uQbtk0-_.d.ts +21 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +3 -0
- package/package.json +73 -21
- package/dist/mcp.js +0 -16003
- package/dist/styles/snippets.css +0 -132
- package/src/components/breadcrumbs.tsx +0 -94
- package/src/components/chat.tsx +0 -154
- package/src/components/dropdown.tsx +0 -91
- package/src/components/icons.tsx +0 -584
- package/src/components/index.ts +0 -9
- package/src/components/method.tsx +0 -144
- package/src/components/overview.tsx +0 -159
- package/src/components/primitives.tsx +0 -284
- package/src/components/properties.tsx +0 -130
- package/src/components/scripts/dropdown.ts +0 -78
- package/src/components/sdk.tsx +0 -402
- package/src/components/sidebar.tsx +0 -99
- package/src/components/snippets.tsx +0 -179
- package/src/contexts/component-generics.tsx +0 -48
- package/src/contexts/component-types.tsx +0 -5
- package/src/contexts/component.tsx +0 -32
- package/src/contexts/docs.tsx +0 -75
- package/src/contexts/index.tsx +0 -17
- package/src/contexts/markdown.tsx +0 -43
- package/src/contexts/navigation.tsx +0 -44
- package/src/contexts/search.tsx +0 -28
- package/src/contexts/use-components.tsx +0 -4
- package/src/index.ts +0 -6
- package/src/languages/go.tsx +0 -281
- package/src/languages/http.tsx +0 -321
- package/src/languages/index.ts +0 -26
- package/src/languages/java.tsx +0 -358
- package/src/languages/python.tsx +0 -255
- package/src/languages/ruby.tsx +0 -320
- package/src/languages/typescript.tsx +0 -393
- package/src/markdown/index.ts +0 -107
- package/src/markdown/md.ts +0 -45
- package/src/markdown/utils.ts +0 -49
- package/src/routing.ts +0 -238
- package/src/search/form.tsx +0 -127
- package/src/search/index.tsx +0 -1
- package/src/search/indexer.ts +0 -246
- package/src/search/mcp.ts +0 -61
- package/src/search/printer.tsx +0 -86
- package/src/search/providers/algolia.ts +0 -88
- package/src/search/providers/fuse.ts +0 -19
- package/src/search/providers/pagefind.ts +0 -17
- package/src/search/providers/walker.ts +0 -30
- package/src/search/results.tsx +0 -181
- package/src/search/state.ts +0 -64
- package/src/search/types.ts +0 -116
- package/src/style.ts +0 -197
- package/src/styles/main.css +0 -993
- package/src/styles/primitives.css +0 -573
- package/src/styles/resets.css +0 -47
- package/src/styles/search.css +0 -342
- package/src/styles/sidebar.css +0 -87
- package/src/styles/snippets.css +0 -132
- package/src/styles/variables.css +0 -90
- package/src/utils.ts +0 -41
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-CS6A3HW3.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
4
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
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_runtime79.JSX.Element;
|
|
16
|
+
type SnippetProps = {
|
|
17
|
+
method: SDKJSON.Method;
|
|
18
|
+
requestTitle?: React$1.ReactNode;
|
|
19
|
+
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
20
|
+
};
|
|
21
|
+
type SnippetContainerProps = {
|
|
22
|
+
children: React$1.ReactNode;
|
|
23
|
+
signature?: string;
|
|
24
|
+
};
|
|
25
|
+
declare function SnippetContainer({
|
|
26
|
+
children
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime79.JSX.Element;
|
|
28
|
+
type SnippetRequestContainerProps = {
|
|
29
|
+
children?: React$1.ReactNode;
|
|
30
|
+
signature?: string;
|
|
31
|
+
};
|
|
32
|
+
declare function SnippetRequestContainer({
|
|
33
|
+
children
|
|
34
|
+
}: SnippetRequestContainerProps): react_jsx_runtime79.JSX.Element;
|
|
35
|
+
declare function Snippet({
|
|
36
|
+
requestTitle,
|
|
37
|
+
method,
|
|
38
|
+
transformRequestSnippet
|
|
39
|
+
}: SnippetProps): react_jsx_runtime79.JSX.Element | null;
|
|
40
|
+
declare function SnippetButtons({
|
|
41
|
+
content
|
|
42
|
+
}: {
|
|
43
|
+
content: string;
|
|
44
|
+
}): react_jsx_runtime79.JSX.Element;
|
|
45
|
+
declare function SnippetResponse({
|
|
46
|
+
responses
|
|
47
|
+
}: {
|
|
48
|
+
responses: SDKJSON.Method['exampleResponses'];
|
|
49
|
+
}): react_jsx_runtime79.JSX.Element | null;
|
|
50
|
+
//#endregion
|
|
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 };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-B5W3VipN.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
4
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
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_runtime82.JSX.Element;
|
|
16
|
+
type SnippetProps = {
|
|
17
|
+
method: SDKJSON.Method;
|
|
18
|
+
requestTitle?: React$1.ReactNode;
|
|
19
|
+
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
20
|
+
};
|
|
21
|
+
type SnippetContainerProps = {
|
|
22
|
+
children: React$1.ReactNode;
|
|
23
|
+
signature?: string;
|
|
24
|
+
};
|
|
25
|
+
declare function SnippetContainer({
|
|
26
|
+
children
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime82.JSX.Element;
|
|
28
|
+
type SnippetRequestContainerProps = {
|
|
29
|
+
children?: React$1.ReactNode;
|
|
30
|
+
signature?: string;
|
|
31
|
+
};
|
|
32
|
+
declare function SnippetRequestContainer({
|
|
33
|
+
children
|
|
34
|
+
}: SnippetRequestContainerProps): react_jsx_runtime82.JSX.Element;
|
|
35
|
+
declare function Snippet({
|
|
36
|
+
requestTitle,
|
|
37
|
+
method,
|
|
38
|
+
transformRequestSnippet
|
|
39
|
+
}: SnippetProps): react_jsx_runtime82.JSX.Element | null;
|
|
40
|
+
declare function SnippetButtons({
|
|
41
|
+
content
|
|
42
|
+
}: {
|
|
43
|
+
content: string;
|
|
44
|
+
}): react_jsx_runtime82.JSX.Element;
|
|
45
|
+
declare function SnippetResponse({
|
|
46
|
+
responses
|
|
47
|
+
}: {
|
|
48
|
+
responses: SDKJSON.Method['exampleResponses'];
|
|
49
|
+
}): react_jsx_runtime82.JSX.Element | null;
|
|
50
|
+
//#endregion
|
|
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
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
|
|
2
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
|
+
|
|
4
|
+
//#region src/spec.d.ts
|
|
5
|
+
type SecurityScheme = SDKJSON.Spec['security_schemes'][number];
|
|
6
|
+
interface SpecTransforms {
|
|
7
|
+
resource(resource: SDKJSON.Resource): SDKJSON.Resource;
|
|
8
|
+
method(method: SDKJSON.Method): SDKJSON.Method;
|
|
9
|
+
model(model: SDKJSON.Model): SDKJSON.Model;
|
|
10
|
+
declaration(decl: SDKJSON.DeclarationNode, language: SDKJSON.SpecLanguage): SDKJSON.DeclarationNode;
|
|
11
|
+
securityScheme(scheme: SecurityScheme): SecurityScheme;
|
|
12
|
+
snippet(snippet: string, language: string): string;
|
|
13
|
+
markdown(content?: string): string | undefined;
|
|
14
|
+
}
|
|
15
|
+
declare function defineTransforms(transforms?: Partial<SpecTransforms>): {
|
|
16
|
+
resource: (resource: SDKJSON.Resource) => SDKJSON.Resource;
|
|
17
|
+
method: (method: SDKJSON.Method) => SDKJSON.Method;
|
|
18
|
+
model: (model: SDKJSON.Model) => SDKJSON.Model;
|
|
19
|
+
declaration: (decl: SDKJSON.DeclarationNode, language: SDKJSON.SpecLanguage) => SDKJSON.DeclarationNode;
|
|
20
|
+
securityScheme: (scheme: SecurityScheme) => SecurityScheme;
|
|
21
|
+
snippet: (snippet: string, language: string) => string;
|
|
22
|
+
markdown: (content?: string) => string | undefined;
|
|
23
|
+
};
|
|
24
|
+
declare function generateNavigation(resource: Partial<SDKJSON.Resource>): {
|
|
25
|
+
title: string | undefined;
|
|
26
|
+
name: string | undefined;
|
|
27
|
+
subresources: Record<string, Partial<SDKJSON.Resource>> | undefined;
|
|
28
|
+
methods: Record<string, Partial<SDKJSON.Method>> | undefined;
|
|
29
|
+
models: Record<string, Partial<SDKJSON.Model>> | undefined;
|
|
30
|
+
stainlessPath: string | undefined;
|
|
31
|
+
terraform: {
|
|
32
|
+
Name: string;
|
|
33
|
+
QualifiedName: string;
|
|
34
|
+
} | undefined;
|
|
35
|
+
};
|
|
36
|
+
declare function generateSpecForResource(spec: SDKJSON.Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<SDKJSON.Spec>;
|
|
37
|
+
declare function transform(spec: SDKJSON.Spec, transforms: SpecTransforms): {
|
|
38
|
+
name: string;
|
|
39
|
+
lang: "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
|
|
40
|
+
spec: Partial<SDKJSON.Spec>;
|
|
41
|
+
}[];
|
|
42
|
+
declare function split(spec: SDKJSON.Spec, transforms?: SpecTransforms): {
|
|
43
|
+
resources: ReturnType<typeof transform>;
|
|
44
|
+
navigation: {
|
|
45
|
+
languages: ("http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin")[] | undefined;
|
|
46
|
+
resources: {
|
|
47
|
+
[k: string]: {
|
|
48
|
+
title: string | undefined;
|
|
49
|
+
name: string | undefined;
|
|
50
|
+
subresources: Record<string, Partial<SDKJSON.Resource>> | undefined;
|
|
51
|
+
methods: Record<string, Partial<SDKJSON.Method>> | undefined;
|
|
52
|
+
models: Record<string, Partial<SDKJSON.Model>> | undefined;
|
|
53
|
+
stainlessPath: string | undefined;
|
|
54
|
+
terraform: {
|
|
55
|
+
Name: string;
|
|
56
|
+
QualifiedName: string;
|
|
57
|
+
} | undefined;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
declare function parseSpec(content: string): SDKJSON.Spec | undefined;
|
|
63
|
+
declare function retrieve(apiKey: string, project: string, revision: string): Promise<SDKJSON.Spec | undefined>;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { SecurityScheme, SpecTransforms, defineTransforms, generateNavigation, generateSpecForResource, parseSpec, retrieve, split, transform };
|
package/dist/spec.js
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { n as Languages } from "./routing-Wbb7YECB.js";
|
|
2
|
+
import { r as isResourceEmpty } from "./utils-D_1AWSRX.js";
|
|
3
|
+
|
|
4
|
+
//#region src/spec.ts
|
|
5
|
+
const defaultTransforms = {
|
|
6
|
+
resource: (resource) => resource,
|
|
7
|
+
method: (method) => method,
|
|
8
|
+
model: (model) => model,
|
|
9
|
+
declaration: (decl) => decl,
|
|
10
|
+
securityScheme: (scheme) => scheme,
|
|
11
|
+
snippet: (snippet) => snippet,
|
|
12
|
+
markdown: (content) => content
|
|
13
|
+
};
|
|
14
|
+
function defineTransforms(transforms = {}) {
|
|
15
|
+
return {
|
|
16
|
+
...defaultTransforms,
|
|
17
|
+
...transforms
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function removeStudioRefs(obj) {
|
|
21
|
+
if (typeof obj !== "object" || obj === null) return obj;
|
|
22
|
+
if (Array.isArray(obj)) return obj.map(removeStudioRefs);
|
|
23
|
+
const newObj = {};
|
|
24
|
+
for (const [key, value] of Object.entries(obj)) if (key !== "oasRef" && key !== "configRef") newObj[key] = removeStudioRefs(value);
|
|
25
|
+
return newObj;
|
|
26
|
+
}
|
|
27
|
+
function mapEntries({ input, fn, filter }) {
|
|
28
|
+
if (!input) return;
|
|
29
|
+
const output = {};
|
|
30
|
+
for (const [name, entry] of Object.entries(input)) {
|
|
31
|
+
if (filter && !filter(name, entry)) continue;
|
|
32
|
+
output[name] = fn ? fn(entry) : entry;
|
|
33
|
+
}
|
|
34
|
+
return output;
|
|
35
|
+
}
|
|
36
|
+
function transformRecursively(resource, transforms) {
|
|
37
|
+
return {
|
|
38
|
+
...transforms.resource(resource),
|
|
39
|
+
methods: mapEntries({
|
|
40
|
+
input: resource.methods,
|
|
41
|
+
fn: (method) => transforms.method(method)
|
|
42
|
+
}) ?? {},
|
|
43
|
+
models: mapEntries({
|
|
44
|
+
input: resource.models,
|
|
45
|
+
fn: (model) => transforms.model(model)
|
|
46
|
+
}) ?? {},
|
|
47
|
+
subresources: mapEntries({
|
|
48
|
+
input: resource.subresources,
|
|
49
|
+
fn: (sub) => transformRecursively(sub, transforms)
|
|
50
|
+
}) ?? {}
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function generateNavigation(resource) {
|
|
54
|
+
const { title, name, stainlessPath, terraform } = resource;
|
|
55
|
+
return {
|
|
56
|
+
title,
|
|
57
|
+
name,
|
|
58
|
+
subresources: mapEntries({
|
|
59
|
+
input: resource.subresources,
|
|
60
|
+
fn: generateNavigation
|
|
61
|
+
}),
|
|
62
|
+
methods: mapEntries({
|
|
63
|
+
input: resource.methods,
|
|
64
|
+
fn: (method) => ({
|
|
65
|
+
name: method.name,
|
|
66
|
+
stainlessPath: method.stainlessPath,
|
|
67
|
+
summary: method.summary,
|
|
68
|
+
httpMethod: method.httpMethod
|
|
69
|
+
})
|
|
70
|
+
}),
|
|
71
|
+
models: mapEntries({
|
|
72
|
+
input: resource.models,
|
|
73
|
+
fn: (model) => ({
|
|
74
|
+
name: model.name,
|
|
75
|
+
stainlessPath: model.stainlessPath
|
|
76
|
+
})
|
|
77
|
+
}),
|
|
78
|
+
stainlessPath,
|
|
79
|
+
terraform
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function generateSpecForResource(spec, name, lang, transforms) {
|
|
83
|
+
const resource = spec.resources[name];
|
|
84
|
+
if (!resource) throw new Error(`Invalid resource: ${name}`);
|
|
85
|
+
return {
|
|
86
|
+
resources: {
|
|
87
|
+
[name]: transformRecursively(resource, transforms),
|
|
88
|
+
...spec.resources["$shared"] ? { $shared: transformRecursively(spec.resources["$shared"], transforms) } : {}
|
|
89
|
+
},
|
|
90
|
+
security_schemes: spec.security_schemes?.map((scheme) => transforms.securityScheme(scheme)),
|
|
91
|
+
decls: { [lang]: mapEntries({
|
|
92
|
+
input: spec.decls[lang] ?? {},
|
|
93
|
+
filter: (name$1) => name$1.startsWith(resource.stainlessPath) || name$1.startsWith("(resource) $shared"),
|
|
94
|
+
fn: (decl) => transforms.declaration(decl, lang)
|
|
95
|
+
}) },
|
|
96
|
+
snippets: mapEntries({
|
|
97
|
+
input: spec.snippets,
|
|
98
|
+
filter: (name$1) => name$1.startsWith(lang),
|
|
99
|
+
fn: (snippets) => mapEntries({
|
|
100
|
+
input: snippets,
|
|
101
|
+
filter: (name$1) => name$1.startsWith(resource.stainlessPath),
|
|
102
|
+
fn: (snippet) => transforms.snippet(snippet, lang)
|
|
103
|
+
}) ?? {}
|
|
104
|
+
})
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function transform(spec, transforms) {
|
|
108
|
+
const t = {
|
|
109
|
+
...transforms,
|
|
110
|
+
declaration: (decl, lang) => transforms.declaration({
|
|
111
|
+
...decl,
|
|
112
|
+
..."docstring" in decl ? { docstring: transforms.markdown(decl.docstring) } : {}
|
|
113
|
+
}, lang),
|
|
114
|
+
method: (method) => transforms.method({
|
|
115
|
+
...method,
|
|
116
|
+
description: transforms.markdown(method.description),
|
|
117
|
+
deprecated: typeof method.deprecated === "string" ? transforms.markdown(method.deprecated) : method.deprecated
|
|
118
|
+
}),
|
|
119
|
+
securityScheme: (scheme) => transforms.securityScheme({
|
|
120
|
+
...scheme,
|
|
121
|
+
description: transforms.markdown(scheme.description)
|
|
122
|
+
})
|
|
123
|
+
};
|
|
124
|
+
const output = [];
|
|
125
|
+
for (const lang of Languages) for (const [name, resource] of Object.entries(spec.resources)) {
|
|
126
|
+
if (isResourceEmpty(resource)) continue;
|
|
127
|
+
output.push({
|
|
128
|
+
name,
|
|
129
|
+
lang,
|
|
130
|
+
spec: generateSpecForResource(spec, name, lang, t)
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return output;
|
|
134
|
+
}
|
|
135
|
+
function split(spec, transforms) {
|
|
136
|
+
return {
|
|
137
|
+
resources: transform(spec, transforms ?? defineTransforms()).map(removeStudioRefs),
|
|
138
|
+
navigation: {
|
|
139
|
+
languages: spec.docs?.languages,
|
|
140
|
+
resources: Object.fromEntries(Object.entries(spec.resources).filter(([, res]) => !isResourceEmpty(res)).map(([name, res]) => [name, generateNavigation(res)]))
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
function parseSpec(content) {
|
|
145
|
+
const parsed = JSON.parse(content);
|
|
146
|
+
if (parsed && typeof parsed === "object" && "kind" in parsed && parsed.kind === "spec") return parsed;
|
|
147
|
+
}
|
|
148
|
+
async function retrieve(apiKey, project, revision) {
|
|
149
|
+
const data = await (await fetch("https://app.stainless.com/api/generate/spec", {
|
|
150
|
+
method: "POST",
|
|
151
|
+
headers: {
|
|
152
|
+
Authorization: `Bearer ${apiKey}`,
|
|
153
|
+
"Content-Type": "application/json"
|
|
154
|
+
},
|
|
155
|
+
body: JSON.stringify({
|
|
156
|
+
project,
|
|
157
|
+
source: {
|
|
158
|
+
type: "git",
|
|
159
|
+
revision
|
|
160
|
+
}
|
|
161
|
+
})
|
|
162
|
+
})).json();
|
|
163
|
+
if (typeof data.spec === "string") return parseSpec(data.spec);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
//#endregion
|
|
167
|
+
export { defineTransforms, generateNavigation, generateSpecForResource, parseSpec, retrieve, split, transform };
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
//#region src/style.d.ts
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly TextIdentifier: "stldocs-text-identifier";
|
|
4
|
+
readonly TextOperator: "stldocs-text-operator";
|
|
5
|
+
readonly TextPunctuation: "stldocs-text-punctuation";
|
|
6
|
+
readonly TextKeyword: "stldocs-text-keyword";
|
|
7
|
+
readonly ContentArea: "stldocs-content-area";
|
|
8
|
+
readonly Markdown: "stldocs-markdown";
|
|
9
|
+
readonly Content: "stldocs-content";
|
|
10
|
+
readonly Truncation: "stldocs-truncation";
|
|
11
|
+
readonly Expander: "stldocs-expander";
|
|
12
|
+
readonly ExpanderContent: "stldocs-expander-content";
|
|
13
|
+
readonly ExpanderSummary: "stldocs-expander-summary";
|
|
14
|
+
readonly ExpanderSummaryIcon: "stldocs-expander-summary-icon";
|
|
15
|
+
readonly ExpanderSummaryContent: "stldocs-expander-summary-content";
|
|
16
|
+
readonly ExpanderIndent: "stldocs-expander-indent";
|
|
17
|
+
readonly Badge: "stldocs-badge";
|
|
18
|
+
readonly Icon: "stldocs-icon";
|
|
19
|
+
readonly Tooltip: "stldocs-tooltip";
|
|
20
|
+
readonly TooltipHost: "stldocs-tooltip-host";
|
|
21
|
+
readonly TooltipContent: "stldocs-tooltip-content";
|
|
22
|
+
readonly Input: "stldocs-input";
|
|
23
|
+
readonly InputTextField: "stldocs-input-textfield";
|
|
24
|
+
readonly MaskedInputWrapper: "stldocs-masked-input-wrapper";
|
|
25
|
+
readonly MaskedInputDisplay: "stldocs-masked-input-display";
|
|
26
|
+
readonly MaskedInputObscured: "stldocs-masked-input-obscured";
|
|
27
|
+
readonly ToggleButton: "stldocs-togglebutton";
|
|
28
|
+
readonly ListView: "stldocs-listview";
|
|
29
|
+
readonly ListViewItem: "stldocs-listview-item";
|
|
30
|
+
readonly ExpandToggle: "stldocs-expand-toggle";
|
|
31
|
+
readonly ExpandToggleContent: "stldocs-expand-toggle-content";
|
|
32
|
+
readonly LoadingSpinner: "stldocs-loading-spinner";
|
|
33
|
+
readonly Type: "stldocs-type";
|
|
34
|
+
readonly TypeName: "stldocs-typename";
|
|
35
|
+
readonly TypeKeyword: "stldocs-type-keyword";
|
|
36
|
+
readonly TypeString: "stldocs-type-string";
|
|
37
|
+
readonly TypeArray: "stldocs-type-array";
|
|
38
|
+
readonly TypeReference: "stldocs-type-reference";
|
|
39
|
+
readonly TypeBracket: "stldocs-type-bracket";
|
|
40
|
+
readonly TypeBrace: "stldocs-type-brace";
|
|
41
|
+
readonly TypePropertyName: "stldocs-type-propertyname";
|
|
42
|
+
readonly TypePlain: "stldocs-type-plain";
|
|
43
|
+
readonly TypePreview: "stldocs-type-preview";
|
|
44
|
+
readonly TypePreviewContent: "stldocs-type-preview-content";
|
|
45
|
+
readonly LiteralString: "stldocs-literal-string";
|
|
46
|
+
readonly LiteralNumeric: "stldocs-literal-numeric";
|
|
47
|
+
readonly LiteralBoolean: "stldocs-literal-boolean";
|
|
48
|
+
readonly Snippet: "stldocs-snippet";
|
|
49
|
+
readonly SnippetCode: "stldocs-snippet-code";
|
|
50
|
+
readonly SnippetCodeContent: "stldocs-snippet-code-content";
|
|
51
|
+
readonly SnippetRequest: "stldocs-snippet-request";
|
|
52
|
+
readonly SnippetRequestTitle: "stldocs-snippet-request-title";
|
|
53
|
+
readonly SnippetRequestTitleContent: "stldocs-snippet-request-title-content";
|
|
54
|
+
readonly SnippetRequestTitleLabel: "stldocs-snippet-request-title-label";
|
|
55
|
+
readonly SnippetRequestTitleLanguage: "stldocs-snippet-request-title-language";
|
|
56
|
+
readonly SnippetRequestTitleMethod: "stldocs-snippet-request-title-method";
|
|
57
|
+
readonly SnippetResponse: "stldocs-snippet-response";
|
|
58
|
+
readonly SnippetMultiResponse: "stldocs-snippet-multi-response";
|
|
59
|
+
readonly SnippetResponseOpen: "stldocs-snippet-response-opened";
|
|
60
|
+
readonly SnippetResponseTab: "stldocs-snippet-response-tab";
|
|
61
|
+
readonly SnippetResponseTabItem: "stldocs-snippet-response-tab-item";
|
|
62
|
+
readonly SnippetResponseTabItemActive: "stldocs-snippet-response-tab-item-active";
|
|
63
|
+
readonly SnippetResponseTabSingleReturn: "stldocs-snippet-response-tab-single-return";
|
|
64
|
+
readonly SnippetResponsePane: "stldocs-snippet-response-pane";
|
|
65
|
+
readonly SnippetResponsePaneActive: "stldocs-snippet-response-pane-active";
|
|
66
|
+
readonly Method: "stldocs-method";
|
|
67
|
+
readonly MethodHeader: "stldocs-method-header";
|
|
68
|
+
readonly MethodBody: "stldocs-method-body";
|
|
69
|
+
readonly MethodInfo: "stldocs-method-info";
|
|
70
|
+
readonly MethodInfoSection: "stldocs-method-info-section";
|
|
71
|
+
readonly MethodExample: "stldocs-method-example";
|
|
72
|
+
readonly MethodResponseColumn: "stldocs-method-response-column";
|
|
73
|
+
readonly MethodTitle: "stldocs-method-title";
|
|
74
|
+
readonly MethodBadges: "stldocs-method-badges";
|
|
75
|
+
readonly MethodSignature: "stldocs-method-signature";
|
|
76
|
+
readonly MethodDescription: "stldocs-method-description";
|
|
77
|
+
readonly MethodParameters: "stldocs-method-parameters";
|
|
78
|
+
readonly MethodReturns: "stldocs-method-returns";
|
|
79
|
+
readonly MethodContent: "stldocs-method-content";
|
|
80
|
+
readonly MethodContentColumn: "stldocs-method-content-column";
|
|
81
|
+
readonly MethodRouteHttpMethod: "stldocs-method-route-httpmethod";
|
|
82
|
+
readonly MethodRouteHttpMethodIconOnly: "stldocs-method-route-httpmethod-icon-only";
|
|
83
|
+
readonly MethodRouteEndpoint: "stldocs-method-route-endpoint";
|
|
84
|
+
readonly MethodRoute: "stldocs-method-route";
|
|
85
|
+
readonly MethodSummary: "stldocs-method-summary";
|
|
86
|
+
readonly MethodSinglePane: "stldocs-method-single-pane";
|
|
87
|
+
readonly MethodDoublePane: "stldocs-method-double-pane";
|
|
88
|
+
readonly SignatureTitle: "stldocs-signature-title";
|
|
89
|
+
readonly SignatureName: "stldocs-signature-name";
|
|
90
|
+
readonly SignatureQualified: "stldocs-signature-qualified";
|
|
91
|
+
readonly SignatureParams: "stldoc-signature-params";
|
|
92
|
+
readonly SignatureParen: "stldocs-signature-paren";
|
|
93
|
+
readonly SignatureReturns: "stldocs-signature-returns";
|
|
94
|
+
readonly Property: "stldocs-property";
|
|
95
|
+
readonly Properties: "stldocs-properties";
|
|
96
|
+
readonly PropertyHeader: "stldocs-property-header";
|
|
97
|
+
readonly PropertyInfo: "stldocs-property-info";
|
|
98
|
+
readonly PropertyDeclaration: "stldocs-property-declaration";
|
|
99
|
+
readonly PropertyDeprecated: "stldocs-property-deprecated";
|
|
100
|
+
readonly PropertyDeprecatedMessage: "stldocs-property-deprecated-message";
|
|
101
|
+
readonly PropertyContent: "stldocs-property-content";
|
|
102
|
+
readonly PropertyChildren: "stldocs-property-children";
|
|
103
|
+
readonly PropertyConstraints: "stldocs-property-constraints";
|
|
104
|
+
readonly PropertyConstraint: "stldocs-property-constraint";
|
|
105
|
+
readonly PropertyConstraintName: "stldocs-property-constraint-name";
|
|
106
|
+
readonly PropertyConstraintValue: "stldocs-property-constraint-value";
|
|
107
|
+
readonly PropertyDefault: "stldocs-property-default";
|
|
108
|
+
readonly PropertyDescription: "stldocs-property-description";
|
|
109
|
+
readonly PropertyTitle: "stldocs-property-title";
|
|
110
|
+
readonly PropertyAnnotation: "stldocs-property-annotation";
|
|
111
|
+
readonly PropertyName: "stldocs-property-name";
|
|
112
|
+
readonly PropertyBadges: "stldocs-property-badges";
|
|
113
|
+
readonly PropertyTypeName: "stldocs-property-typename";
|
|
114
|
+
readonly PropertyType: "stldocs-property-type";
|
|
115
|
+
readonly Overview: "stldocs-overview";
|
|
116
|
+
readonly OverviewHeader: "stldocs-overview-header";
|
|
117
|
+
readonly OverviewHeaderInfo: "stldocs-overview-header-info";
|
|
118
|
+
readonly OverviewHeaderInfoTimestamp: "stldocs-overview-header-info-timestamp";
|
|
119
|
+
readonly Resource: "stldocs-resource";
|
|
120
|
+
readonly ResourceContent: "stldocs-resource-content";
|
|
121
|
+
readonly ResourceContentProperties: "stldocs-resource-content-properties";
|
|
122
|
+
readonly ResourceContentGroup: "stldocs-resource-content-group";
|
|
123
|
+
readonly ResourceContentGroupName: "stldocs-resource-content-group-name";
|
|
124
|
+
readonly ResourceContentGroupModelTitle: "stldocs-resource-content-group-model-title";
|
|
125
|
+
readonly ResourceHeader: "stldocs-resource-header";
|
|
126
|
+
readonly ResourceTitle: "stldocs-resource-title";
|
|
127
|
+
readonly ResourceTitleSegment: "stldocs-resource-title-segment";
|
|
128
|
+
readonly ResourceDescription: "stldocs-resource-description";
|
|
129
|
+
readonly ResourceName: "stldocs-resource-name";
|
|
130
|
+
readonly Model: "stldocs-model";
|
|
131
|
+
readonly Root: "stldocs-root";
|
|
132
|
+
readonly Sidebar: "stldocs-sidebar";
|
|
133
|
+
readonly SidebarResource: "stldocs-sidebar-resource";
|
|
134
|
+
readonly SidebarResourceTitle: "stldocs-sidebar-resource-title";
|
|
135
|
+
readonly SidebarMethod: "stldocs-sidebar-method";
|
|
136
|
+
readonly SidebarItemTitle: "stldocs-sidebar-resource-title";
|
|
137
|
+
readonly SidebarExpander: "stldocs-sidebar-expander";
|
|
138
|
+
readonly SidebarExpanderSummary: "stldocs-sidebar-expander-summary";
|
|
139
|
+
readonly SidebarExpanderContent: "stldocs-sidebar-expander-content";
|
|
140
|
+
readonly SearchForm: "stldocs-search-form";
|
|
141
|
+
readonly SearchModal: "stldocs-search-modal";
|
|
142
|
+
readonly SearchFilter: "stldocs-search-filter";
|
|
143
|
+
readonly SearchFilterLabel: "stldocs-search-filter-label";
|
|
144
|
+
readonly SearchFilterCount: "stldocs-search-filter-count";
|
|
145
|
+
readonly SearchBreadcrumb: "stldocs-search-breadcrumb";
|
|
146
|
+
readonly SearchBreadcrumbItem: "stldocs-search-breadcrumb-item";
|
|
147
|
+
readonly SearchBreadcrumbDivider: "stldocs-search-breadcrumb-divider";
|
|
148
|
+
readonly SearchResult: "stldocs-search-result";
|
|
149
|
+
readonly SearchResultResourceInfo: "stldocs-search-result-resource-info";
|
|
150
|
+
readonly SearchResultResourceTitle: "stldocs-search-result-resource-title";
|
|
151
|
+
readonly SearchResultResourcePath: "stldocs-search-result-resource-path";
|
|
152
|
+
readonly SearchResultGuideTitle: "stldocs-search-result-guide-title";
|
|
153
|
+
readonly SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt";
|
|
154
|
+
readonly LanguageBlock: "stldocs-language-block";
|
|
155
|
+
readonly LanguageBlockContent: "stldocs-language-block-content";
|
|
156
|
+
readonly LanguageBlockContentIcon: "stldocs-language-block-content-icon";
|
|
157
|
+
readonly LanguageBlockContentInfo: "stldocs-language-block-content-info";
|
|
158
|
+
readonly LanguageBlockContentInfoLanguage: "stldocs-language-block-content-info-language";
|
|
159
|
+
readonly LanguageBlockContentInfoVersion: "stldocs-language-block-content-info-version";
|
|
160
|
+
readonly LanguageBlockLinks: "stldocs-language-block-links";
|
|
161
|
+
readonly LanguageBlockInstall: "stldocs-language-block-install";
|
|
162
|
+
readonly Breadcrumbs: "stldocs-breadcrumbs";
|
|
163
|
+
readonly BreadcrumbsItem: "stldocs-breadcrumbs-item";
|
|
164
|
+
readonly BreadcrumbsLink: "stldocs-breadcrumbs-link";
|
|
165
|
+
readonly BreadcrumbsNonLink: "stldocs-breadcrumbs-non-link";
|
|
166
|
+
};
|
|
167
|
+
//#endregion
|
|
168
|
+
export { _default as t };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
//#region src/style.ts
|
|
2
|
+
var style_default = {
|
|
3
|
+
TextIdentifier: "stldocs-text-identifier",
|
|
4
|
+
TextOperator: "stldocs-text-operator",
|
|
5
|
+
TextPunctuation: "stldocs-text-punctuation",
|
|
6
|
+
TextKeyword: "stldocs-text-keyword",
|
|
7
|
+
ContentArea: "stldocs-content-area",
|
|
8
|
+
Markdown: "stldocs-markdown",
|
|
9
|
+
Content: "stldocs-content",
|
|
10
|
+
Truncation: "stldocs-truncation",
|
|
11
|
+
Expander: "stldocs-expander",
|
|
12
|
+
ExpanderContent: "stldocs-expander-content",
|
|
13
|
+
ExpanderSummary: "stldocs-expander-summary",
|
|
14
|
+
ExpanderSummaryIcon: "stldocs-expander-summary-icon",
|
|
15
|
+
ExpanderSummaryContent: "stldocs-expander-summary-content",
|
|
16
|
+
ExpanderIndent: "stldocs-expander-indent",
|
|
17
|
+
Badge: "stldocs-badge",
|
|
18
|
+
Icon: "stldocs-icon",
|
|
19
|
+
Tooltip: "stldocs-tooltip",
|
|
20
|
+
TooltipHost: "stldocs-tooltip-host",
|
|
21
|
+
TooltipContent: "stldocs-tooltip-content",
|
|
22
|
+
Input: "stldocs-input",
|
|
23
|
+
InputTextField: "stldocs-input-textfield",
|
|
24
|
+
MaskedInputWrapper: "stldocs-masked-input-wrapper",
|
|
25
|
+
MaskedInputDisplay: "stldocs-masked-input-display",
|
|
26
|
+
MaskedInputObscured: "stldocs-masked-input-obscured",
|
|
27
|
+
ToggleButton: "stldocs-togglebutton",
|
|
28
|
+
ListView: "stldocs-listview",
|
|
29
|
+
ListViewItem: "stldocs-listview-item",
|
|
30
|
+
ExpandToggle: "stldocs-expand-toggle",
|
|
31
|
+
ExpandToggleContent: "stldocs-expand-toggle-content",
|
|
32
|
+
LoadingSpinner: "stldocs-loading-spinner",
|
|
33
|
+
Type: "stldocs-type",
|
|
34
|
+
TypeName: "stldocs-typename",
|
|
35
|
+
TypeKeyword: "stldocs-type-keyword",
|
|
36
|
+
TypeString: "stldocs-type-string",
|
|
37
|
+
TypeArray: "stldocs-type-array",
|
|
38
|
+
TypeReference: "stldocs-type-reference",
|
|
39
|
+
TypeBracket: "stldocs-type-bracket",
|
|
40
|
+
TypeBrace: "stldocs-type-brace",
|
|
41
|
+
TypePropertyName: "stldocs-type-propertyname",
|
|
42
|
+
TypePlain: "stldocs-type-plain",
|
|
43
|
+
TypePreview: "stldocs-type-preview",
|
|
44
|
+
TypePreviewContent: "stldocs-type-preview-content",
|
|
45
|
+
LiteralString: "stldocs-literal-string",
|
|
46
|
+
LiteralNumeric: "stldocs-literal-numeric",
|
|
47
|
+
LiteralBoolean: "stldocs-literal-boolean",
|
|
48
|
+
Snippet: "stldocs-snippet",
|
|
49
|
+
SnippetCode: "stldocs-snippet-code",
|
|
50
|
+
SnippetCodeContent: "stldocs-snippet-code-content",
|
|
51
|
+
SnippetRequest: "stldocs-snippet-request",
|
|
52
|
+
SnippetRequestTitle: "stldocs-snippet-request-title",
|
|
53
|
+
SnippetRequestTitleContent: "stldocs-snippet-request-title-content",
|
|
54
|
+
SnippetRequestTitleLabel: "stldocs-snippet-request-title-label",
|
|
55
|
+
SnippetRequestTitleLanguage: "stldocs-snippet-request-title-language",
|
|
56
|
+
SnippetRequestTitleMethod: "stldocs-snippet-request-title-method",
|
|
57
|
+
SnippetResponse: "stldocs-snippet-response",
|
|
58
|
+
SnippetMultiResponse: "stldocs-snippet-multi-response",
|
|
59
|
+
SnippetResponseOpen: "stldocs-snippet-response-opened",
|
|
60
|
+
SnippetResponseTab: "stldocs-snippet-response-tab",
|
|
61
|
+
SnippetResponseTabItem: "stldocs-snippet-response-tab-item",
|
|
62
|
+
SnippetResponseTabItemActive: "stldocs-snippet-response-tab-item-active",
|
|
63
|
+
SnippetResponseTabSingleReturn: "stldocs-snippet-response-tab-single-return",
|
|
64
|
+
SnippetResponsePane: "stldocs-snippet-response-pane",
|
|
65
|
+
SnippetResponsePaneActive: "stldocs-snippet-response-pane-active",
|
|
66
|
+
Method: "stldocs-method",
|
|
67
|
+
MethodHeader: "stldocs-method-header",
|
|
68
|
+
MethodBody: "stldocs-method-body",
|
|
69
|
+
MethodInfo: "stldocs-method-info",
|
|
70
|
+
MethodInfoSection: "stldocs-method-info-section",
|
|
71
|
+
MethodExample: "stldocs-method-example",
|
|
72
|
+
MethodResponseColumn: "stldocs-method-response-column",
|
|
73
|
+
MethodTitle: "stldocs-method-title",
|
|
74
|
+
MethodBadges: "stldocs-method-badges",
|
|
75
|
+
MethodSignature: "stldocs-method-signature",
|
|
76
|
+
MethodDescription: "stldocs-method-description",
|
|
77
|
+
MethodParameters: "stldocs-method-parameters",
|
|
78
|
+
MethodReturns: "stldocs-method-returns",
|
|
79
|
+
MethodContent: "stldocs-method-content",
|
|
80
|
+
MethodContentColumn: "stldocs-method-content-column",
|
|
81
|
+
MethodRouteHttpMethod: "stldocs-method-route-httpmethod",
|
|
82
|
+
MethodRouteHttpMethodIconOnly: "stldocs-method-route-httpmethod-icon-only",
|
|
83
|
+
MethodRouteEndpoint: "stldocs-method-route-endpoint",
|
|
84
|
+
MethodRoute: "stldocs-method-route",
|
|
85
|
+
MethodSummary: "stldocs-method-summary",
|
|
86
|
+
MethodSinglePane: "stldocs-method-single-pane",
|
|
87
|
+
MethodDoublePane: "stldocs-method-double-pane",
|
|
88
|
+
SignatureTitle: "stldocs-signature-title",
|
|
89
|
+
SignatureName: "stldocs-signature-name",
|
|
90
|
+
SignatureQualified: "stldocs-signature-qualified",
|
|
91
|
+
SignatureParams: "stldoc-signature-params",
|
|
92
|
+
SignatureParen: "stldocs-signature-paren",
|
|
93
|
+
SignatureReturns: "stldocs-signature-returns",
|
|
94
|
+
Property: "stldocs-property",
|
|
95
|
+
Properties: "stldocs-properties",
|
|
96
|
+
PropertyHeader: "stldocs-property-header",
|
|
97
|
+
PropertyInfo: "stldocs-property-info",
|
|
98
|
+
PropertyDeclaration: "stldocs-property-declaration",
|
|
99
|
+
PropertyDeprecated: "stldocs-property-deprecated",
|
|
100
|
+
PropertyDeprecatedMessage: "stldocs-property-deprecated-message",
|
|
101
|
+
PropertyContent: "stldocs-property-content",
|
|
102
|
+
PropertyChildren: "stldocs-property-children",
|
|
103
|
+
PropertyConstraints: "stldocs-property-constraints",
|
|
104
|
+
PropertyConstraint: "stldocs-property-constraint",
|
|
105
|
+
PropertyConstraintName: "stldocs-property-constraint-name",
|
|
106
|
+
PropertyConstraintValue: "stldocs-property-constraint-value",
|
|
107
|
+
PropertyDefault: "stldocs-property-default",
|
|
108
|
+
PropertyDescription: "stldocs-property-description",
|
|
109
|
+
PropertyTitle: "stldocs-property-title",
|
|
110
|
+
PropertyAnnotation: "stldocs-property-annotation",
|
|
111
|
+
PropertyName: "stldocs-property-name",
|
|
112
|
+
PropertyBadges: "stldocs-property-badges",
|
|
113
|
+
PropertyTypeName: "stldocs-property-typename",
|
|
114
|
+
PropertyType: "stldocs-property-type",
|
|
115
|
+
Overview: "stldocs-overview",
|
|
116
|
+
OverviewHeader: "stldocs-overview-header",
|
|
117
|
+
OverviewHeaderInfo: "stldocs-overview-header-info",
|
|
118
|
+
OverviewHeaderInfoTimestamp: "stldocs-overview-header-info-timestamp",
|
|
119
|
+
Resource: "stldocs-resource",
|
|
120
|
+
ResourceContent: "stldocs-resource-content",
|
|
121
|
+
ResourceContentProperties: "stldocs-resource-content-properties",
|
|
122
|
+
ResourceContentGroup: "stldocs-resource-content-group",
|
|
123
|
+
ResourceContentGroupName: "stldocs-resource-content-group-name",
|
|
124
|
+
ResourceContentGroupModelTitle: "stldocs-resource-content-group-model-title",
|
|
125
|
+
ResourceHeader: "stldocs-resource-header",
|
|
126
|
+
ResourceTitle: "stldocs-resource-title",
|
|
127
|
+
ResourceTitleSegment: "stldocs-resource-title-segment",
|
|
128
|
+
ResourceDescription: "stldocs-resource-description",
|
|
129
|
+
ResourceName: "stldocs-resource-name",
|
|
130
|
+
Model: "stldocs-model",
|
|
131
|
+
Root: "stldocs-root",
|
|
132
|
+
Sidebar: "stldocs-sidebar",
|
|
133
|
+
SidebarResource: "stldocs-sidebar-resource",
|
|
134
|
+
SidebarResourceTitle: "stldocs-sidebar-resource-title",
|
|
135
|
+
SidebarMethod: "stldocs-sidebar-method",
|
|
136
|
+
SidebarItemTitle: "stldocs-sidebar-resource-title",
|
|
137
|
+
SidebarExpander: "stldocs-sidebar-expander",
|
|
138
|
+
SidebarExpanderSummary: "stldocs-sidebar-expander-summary",
|
|
139
|
+
SidebarExpanderContent: "stldocs-sidebar-expander-content",
|
|
140
|
+
SearchForm: "stldocs-search-form",
|
|
141
|
+
SearchModal: "stldocs-search-modal",
|
|
142
|
+
SearchFilter: "stldocs-search-filter",
|
|
143
|
+
SearchFilterLabel: "stldocs-search-filter-label",
|
|
144
|
+
SearchFilterCount: "stldocs-search-filter-count",
|
|
145
|
+
SearchBreadcrumb: "stldocs-search-breadcrumb",
|
|
146
|
+
SearchBreadcrumbItem: "stldocs-search-breadcrumb-item",
|
|
147
|
+
SearchBreadcrumbDivider: "stldocs-search-breadcrumb-divider",
|
|
148
|
+
SearchResult: "stldocs-search-result",
|
|
149
|
+
SearchResultResourceInfo: "stldocs-search-result-resource-info",
|
|
150
|
+
SearchResultResourceTitle: "stldocs-search-result-resource-title",
|
|
151
|
+
SearchResultResourcePath: "stldocs-search-result-resource-path",
|
|
152
|
+
SearchResultGuideTitle: "stldocs-search-result-guide-title",
|
|
153
|
+
SearchResultGuideExcerpt: "stldocs-search-result-guide-excerpt",
|
|
154
|
+
LanguageBlock: "stldocs-language-block",
|
|
155
|
+
LanguageBlockContent: "stldocs-language-block-content",
|
|
156
|
+
LanguageBlockContentIcon: "stldocs-language-block-content-icon",
|
|
157
|
+
LanguageBlockContentInfo: "stldocs-language-block-content-info",
|
|
158
|
+
LanguageBlockContentInfoLanguage: "stldocs-language-block-content-info-language",
|
|
159
|
+
LanguageBlockContentInfoVersion: "stldocs-language-block-content-info-version",
|
|
160
|
+
LanguageBlockLinks: "stldocs-language-block-links",
|
|
161
|
+
LanguageBlockInstall: "stldocs-language-block-install",
|
|
162
|
+
Breadcrumbs: "stldocs-breadcrumbs",
|
|
163
|
+
BreadcrumbsItem: "stldocs-breadcrumbs-item",
|
|
164
|
+
BreadcrumbsLink: "stldocs-breadcrumbs-link",
|
|
165
|
+
BreadcrumbsNonLink: "stldocs-breadcrumbs-non-link"
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
//#endregion
|
|
169
|
+
export { style_default as t };
|
package/dist/style.d.ts
ADDED