@stainless-api/docs-ui 0.1.0-beta.46 → 0.1.0-beta.48
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-ChGb9Ckx.d.ts → breadcrumbs-TNRag6Vy.d.ts} +2 -2
- package/dist/{component-generics-CDshlns_.d.ts → component-generics-Cs7jFHLq.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +1 -1
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +9 -13
- package/dist/components/icons.d.ts +11 -11
- package/dist/components/icons.js +1 -1
- package/dist/components/index.d.ts +9 -10
- package/dist/components/index.js +9 -13
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +9 -13
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +9 -13
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +9 -13
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +9 -13
- package/dist/components/sdk.d.ts +1 -2
- package/dist/components/sdk.js +9 -13
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +9 -13
- package/dist/components/snippets.d.ts +2 -3
- package/dist/components/snippets.js +9 -13
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-generics.js +1 -1
- package/dist/contexts/component-types.d.ts +10 -11
- package/dist/contexts/component.d.ts +13 -14
- package/dist/contexts/component.js +9 -13
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/docs.js +1 -1
- package/dist/contexts/index.d.ts +16 -18
- package/dist/contexts/index.js +9 -13
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -2
- package/dist/contexts/navigation.js +1 -1
- package/dist/contexts/search.d.ts +1 -3
- package/dist/contexts/search.js +9 -13
- package/dist/contexts/use-components.d.ts +9 -10
- package/dist/contexts/use-components.js +2 -2
- package/dist/{contexts-HUUrbJAJ.js → contexts-D3ClFTt3.js} +366 -90
- package/dist/{docs-OpxXmURB.d.ts → docs-DGpIHBGY.d.ts} +3 -3
- package/dist/{index-CkgJvy8B.d.ts → index-BPQVqZ6-.d.ts} +113 -79
- package/dist/{index-Ck2YxPj3.d.ts → index-D_zoydBM.d.ts} +6 -6
- package/dist/{index-BhNE0nV0.d.ts → index-Dt1TxDPe.d.ts} +8 -8
- package/dist/index.d.ts +19 -20
- package/dist/index.js +12 -13
- package/dist/languages/csharp.d.ts +11 -0
- package/dist/languages/csharp.js +11 -0
- package/dist/languages/go.d.ts +10 -11
- package/dist/languages/go.js +9 -13
- package/dist/languages/http.d.ts +10 -11
- package/dist/languages/http.js +9 -13
- package/dist/languages/index.d.ts +11 -12
- package/dist/languages/index.js +10 -14
- package/dist/languages/java.d.ts +10 -11
- package/dist/languages/java.js +9 -13
- package/dist/languages/python.d.ts +10 -11
- package/dist/languages/python.js +9 -13
- package/dist/languages/ruby.d.ts +10 -11
- package/dist/languages/ruby.js +9 -13
- package/dist/languages/typescript.d.ts +10 -11
- package/dist/languages/typescript.js +9 -13
- package/dist/markdown/index.d.ts +2 -3
- package/dist/markdown/index.js +9 -13
- package/dist/markdown/md.js +1 -1
- package/dist/markdown/utils.d.ts +2 -3
- package/dist/markdown/utils.js +1 -1
- package/dist/{markdown-sJ2VePdG.js → markdown-Bx-mQFEj.js} +1 -1
- package/dist/{markdown-Ck30kC3p.d.ts → markdown-J4fsbXbi.d.ts} +2 -2
- package/dist/{method-BpjXzDDH.d.ts → method-uqti5jIi.d.ts} +7 -7
- package/dist/{navigation-D4bzWy1c.d.ts → navigation-DztmhdsO.d.ts} +3 -3
- package/dist/{overview-B24Fc4cH.d.ts → overview-CXiAiRu3.d.ts} +6 -6
- package/dist/{primitives-DwXr-yo5.d.ts → primitives-CS8fdjfv.d.ts} +9 -9
- package/dist/{properties-wSrkbEk2.d.ts → properties-Bf600pp5.d.ts} +5 -5
- package/dist/{routing-GrDalgAW.js → routing-BGBmkDBL.js} +3 -2
- package/dist/{routing-Bcos-Z2q.d.ts → routing-BcGPNh2R.d.ts} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{sdk-CDNNOl31.d.ts → sdk-CuOpWo9I.d.ts} +14 -14
- package/dist/search/index.d.ts +5 -6
- package/dist/search/index.js +12 -14
- package/dist/search/mcp.d.ts +2 -2
- package/dist/search/mcp.js +11 -13
- package/dist/search/providers/algolia.d.ts +1 -2
- package/dist/search/providers/algolia.js +9 -13
- package/dist/search/providers/fuse.d.ts +2 -2
- package/dist/search/providers/fuse.js +10 -13
- package/dist/search/providers/pagefind.d.ts +1 -2
- package/dist/search/providers/pagefind.js +1 -1
- package/dist/search/providers/walker.d.ts +2 -2
- package/dist/search/providers/walker.js +10 -13
- package/dist/search/types.d.ts +1 -2
- package/dist/search/types.js +1 -1
- package/dist/{search-Dbhp1LKw.d.ts → search-DvzBAFUW.d.ts} +3 -3
- package/dist/{sidebar-BzEJezB8.d.ts → sidebar-CqfIoVcr.d.ts} +5 -5
- package/dist/{snippets-BFLGJy-C.d.ts → snippets-BwifQYD4.d.ts} +8 -8
- package/dist/spec.d.ts +3 -3
- package/dist/spec.js +2 -2
- package/dist/style.d.ts +1 -1
- package/dist/style.js +1 -1
- package/dist/styles.css +1094 -0
- package/dist/{types-1rnoIVpZ.d.ts → types-9YHj_ZeX.d.ts} +1 -1
- package/dist/{use-components-DG6NAdUT.js → use-components-BAHidYIO.js} +1 -1
- package/dist/{utils-CqR0JQ5q.js → utils-0z34vxY4.js} +2 -2
- package/dist/{utils-gEMvF6KH.d.ts → utils-DAOeBdRL.d.ts} +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -2
- package/package.json +6 -3
- /package/dist/{chunk-KfF3XP4c.js → chunk-BWfJHHBp.js} +0 -0
- /package/dist/{component-generics-4gg5TFK4.js → component-generics-F0_Dx7UT.js} +0 -0
- /package/dist/{docs-C2xNNHgT.js → docs-CNvEp0VL.js} +0 -0
- /package/dist/{icons-Ckod9aod.js → icons-DzBceOQw.js} +0 -0
- /package/dist/{md-Ce-Zhp9O.js → md-D5AxFoS4.js} +0 -0
- /package/dist/{navigation-BrIapKIN.js → navigation-bydkHNUW.js} +0 -0
- /package/dist/{pagefind-CKBforii.js → pagefind-BHm6c3fb.js} +0 -0
- /package/dist/{style-B-5NIls4.js → style-0miv2y38.js} +0 -0
- /package/dist/{style-BJCwZ-Wf.d.ts → style-D8hwSwrv.d.ts} +0 -0
- /package/dist/{types-Ci-27DYJ.js → types-mRzd9aqe.js} +0 -0
- /package/dist/{utils-CI9byvCc.d.ts → utils-BcWczffA.d.ts} +0 -0
- /package/dist/{utils-jPbBiaDE.js → utils-CiZXDoFR.js} +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as __export } from "./chunk-
|
|
2
|
-
import { a as useLanguage, c as useSnippet, i as useDocs, l as useSpec, n as useContentPanelLayout, o as useResource, r as useDeclaration, s as useSettings, t as DocsProvider } from "./docs-
|
|
3
|
-
import { a as createStrictContext, i as useComponents$1, n as customizeComponents, r as useComponentContext, t as ComponentProvider$1 } from "./component-generics-
|
|
4
|
-
import { n as useNavigation, t as NavigationProvider } from "./navigation-
|
|
5
|
-
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "./markdown-
|
|
6
|
-
import { _ as walkTree, c as getLanguageSnippet, f as parseStainlessPath, n as Languages, o as generateRoute, t as LanguageNames } from "./routing-
|
|
7
|
-
import { t as style_default } from "./style-
|
|
8
|
-
import { t as useComponents } from "./use-components-
|
|
9
|
-
import { a as KotlinIcon, c as RubyIcon, i as JavaIcon, l as TerraformIcon, n as CurlIcon, o as PowershellIcon, r as GoIcon, s as PythonIcon, t as CSharpIcon, u as TypescriptIcon } from "./icons-
|
|
10
|
-
import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-
|
|
11
|
-
import { a as item, c as parse, l as strong, n as fence, o as list, r as heading, s as paragraph, t as code, u as text } from "./md-
|
|
12
|
-
import { n as getSnippet, r as stripMarkup, t as getDecl } from "./utils-
|
|
13
|
-
import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat } from "./types-
|
|
1
|
+
import { t as __export } from "./chunk-BWfJHHBp.js";
|
|
2
|
+
import { a as useLanguage, c as useSnippet, i as useDocs, l as useSpec, n as useContentPanelLayout, o as useResource, r as useDeclaration, s as useSettings, t as DocsProvider } from "./docs-CNvEp0VL.js";
|
|
3
|
+
import { a as createStrictContext, i as useComponents$1, n as customizeComponents, r as useComponentContext, t as ComponentProvider$1 } from "./component-generics-F0_Dx7UT.js";
|
|
4
|
+
import { n as useNavigation, t as NavigationProvider } from "./navigation-bydkHNUW.js";
|
|
5
|
+
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "./markdown-Bx-mQFEj.js";
|
|
6
|
+
import { _ as walkTree, c as getLanguageSnippet, f as parseStainlessPath, n as Languages, o as generateRoute, t as LanguageNames } from "./routing-BGBmkDBL.js";
|
|
7
|
+
import { t as style_default } from "./style-0miv2y38.js";
|
|
8
|
+
import { t as useComponents } from "./use-components-BAHidYIO.js";
|
|
9
|
+
import { a as KotlinIcon, c as RubyIcon, i as JavaIcon, l as TerraformIcon, n as CurlIcon, o as PowershellIcon, r as GoIcon, s as PythonIcon, t as CSharpIcon, u as TypescriptIcon } from "./icons-DzBceOQw.js";
|
|
10
|
+
import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-0z34vxY4.js";
|
|
11
|
+
import { a as item, c as parse, l as strong, n as fence, o as list, r as heading, s as paragraph, t as code, u as text } from "./md-D5AxFoS4.js";
|
|
12
|
+
import { n as getSnippet, r as stripMarkup, t as getDecl } from "./utils-CiZXDoFR.js";
|
|
13
|
+
import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat } from "./types-mRzd9aqe.js";
|
|
14
14
|
import * as React$1 from "react";
|
|
15
15
|
import React, { Fragment, createElement, useState } from "react";
|
|
16
16
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -56,7 +56,7 @@ function PropertyTitle({ title }) {
|
|
|
56
56
|
children: /* @__PURE__ */ jsx(Markdown$1, { content: title })
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function Property$
|
|
59
|
+
function Property$7({ id, name, typeName: typeName$1, badges, type, declaration: declaration$2, description, title, deprecated, expand, additional, constraints, children }) {
|
|
60
60
|
const Docs = useComponents();
|
|
61
61
|
const language = useLanguage();
|
|
62
62
|
const properties = useSettings()?.properties;
|
|
@@ -1237,7 +1237,7 @@ var components_exports = /* @__PURE__ */ __export({
|
|
|
1237
1237
|
MethodIconBadge: () => MethodIconBadge,
|
|
1238
1238
|
MethodInfo: () => MethodInfo$1,
|
|
1239
1239
|
MethodRoute: () => MethodRoute,
|
|
1240
|
-
Property: () => Property$
|
|
1240
|
+
Property: () => Property$7,
|
|
1241
1241
|
PropertyDescription: () => PropertyDescription,
|
|
1242
1242
|
PropertyModelContext: () => PropertyModelContext,
|
|
1243
1243
|
PropertyTitle: () => PropertyTitle,
|
|
@@ -1282,11 +1282,11 @@ var components_exports = /* @__PURE__ */ __export({
|
|
|
1282
1282
|
//#endregion
|
|
1283
1283
|
//#region src/languages/typescript.tsx
|
|
1284
1284
|
var typescript_exports = /* @__PURE__ */ __export({
|
|
1285
|
-
Declaration: () => Declaration$
|
|
1286
|
-
MethodSignature: () => MethodSignature$
|
|
1287
|
-
Property: () => Property$
|
|
1288
|
-
Type: () => Type$
|
|
1289
|
-
TypeName: () => TypeName$
|
|
1285
|
+
Declaration: () => Declaration$6,
|
|
1286
|
+
MethodSignature: () => MethodSignature$6,
|
|
1287
|
+
Property: () => Property$6,
|
|
1288
|
+
Type: () => Type$6,
|
|
1289
|
+
TypeName: () => TypeName$6
|
|
1290
1290
|
});
|
|
1291
1291
|
const ComplexTypes$3 = {
|
|
1292
1292
|
TSTypeObject: "object",
|
|
@@ -1295,7 +1295,7 @@ const ComplexTypes$3 = {
|
|
|
1295
1295
|
TSTypeIntersection: "intersection",
|
|
1296
1296
|
TSTypeArray: "array"
|
|
1297
1297
|
};
|
|
1298
|
-
const constStyle$
|
|
1298
|
+
const constStyle$4 = {
|
|
1299
1299
|
string: style_default.LiteralString,
|
|
1300
1300
|
number: style_default.LiteralNumeric,
|
|
1301
1301
|
boolean: style_default.LiteralBoolean
|
|
@@ -1389,11 +1389,11 @@ function TypePreview$2({ path }) {
|
|
|
1389
1389
|
]
|
|
1390
1390
|
});
|
|
1391
1391
|
}
|
|
1392
|
-
function TypeName$
|
|
1392
|
+
function TypeName$6({ type }) {
|
|
1393
1393
|
const Lang = useLanguageComponents();
|
|
1394
1394
|
return ComplexTypes$3[type.kind] ?? /* @__PURE__ */ jsx(Lang.Type, { type });
|
|
1395
1395
|
}
|
|
1396
|
-
function Type$
|
|
1396
|
+
function Type$6({ type }) {
|
|
1397
1397
|
const Lang = useLanguageComponents();
|
|
1398
1398
|
const { Join: Join$1, SDKReference: SDKReference$1 } = useComponents();
|
|
1399
1399
|
switch (type.kind) {
|
|
@@ -1421,7 +1421,7 @@ function Type$5({ type }) {
|
|
|
1421
1421
|
case "TSTypeLiteral": return /* @__PURE__ */ jsx("span", {
|
|
1422
1422
|
className: style_default.Type,
|
|
1423
1423
|
children: /* @__PURE__ */ jsx("span", {
|
|
1424
|
-
className: constStyle$
|
|
1424
|
+
className: constStyle$4[typeof type.literal],
|
|
1425
1425
|
children: JSON.stringify(type.literal)
|
|
1426
1426
|
})
|
|
1427
1427
|
});
|
|
@@ -1556,7 +1556,7 @@ function Type$5({ type }) {
|
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
1558
1558
|
}
|
|
1559
|
-
function MethodSignature$
|
|
1559
|
+
function MethodSignature$6({ decl }) {
|
|
1560
1560
|
const Lang = useLanguageComponents();
|
|
1561
1561
|
const { Join: Join$1, Tooltip: Tooltip$1 } = useComponents();
|
|
1562
1562
|
const params = decl.signature.parameters.map((param, i) => /* @__PURE__ */ jsxs(React$1.Fragment, { children: [/* @__PURE__ */ jsx(Tooltip$1, {
|
|
@@ -1624,7 +1624,7 @@ function MethodSignature$5({ decl }) {
|
|
|
1624
1624
|
})
|
|
1625
1625
|
});
|
|
1626
1626
|
}
|
|
1627
|
-
function Property$
|
|
1627
|
+
function Property$6({ decl, children }) {
|
|
1628
1628
|
const Lang = useLanguageComponents();
|
|
1629
1629
|
if (!decl) return;
|
|
1630
1630
|
switch (decl.kind) {
|
|
@@ -1652,7 +1652,7 @@ function Property$5({ decl, children }) {
|
|
|
1652
1652
|
] }) });
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
function Declaration$
|
|
1655
|
+
function Declaration$6({ decl }) {
|
|
1656
1656
|
const Lang = useLanguageComponents();
|
|
1657
1657
|
if (!decl) return;
|
|
1658
1658
|
switch (decl.kind) {
|
|
@@ -1722,21 +1722,21 @@ function Declaration$5({ decl }) {
|
|
|
1722
1722
|
//#endregion
|
|
1723
1723
|
//#region src/languages/java.tsx
|
|
1724
1724
|
var java_exports = /* @__PURE__ */ __export({
|
|
1725
|
-
Declaration: () => Declaration$
|
|
1726
|
-
MethodSignature: () => MethodSignature$
|
|
1727
|
-
Property: () => Property$
|
|
1728
|
-
Type: () => Type$
|
|
1729
|
-
TypeName: () => TypeName$
|
|
1725
|
+
Declaration: () => Declaration$5,
|
|
1726
|
+
MethodSignature: () => MethodSignature$5,
|
|
1727
|
+
Property: () => Property$5,
|
|
1728
|
+
Type: () => Type$5,
|
|
1729
|
+
TypeName: () => TypeName$5
|
|
1730
1730
|
});
|
|
1731
1731
|
function showFullType$1(type) {
|
|
1732
1732
|
return type.kind === "JavaTypeReference" && (type.typeName === "List" || type.typeParameters && type.typeParameters.length > 0);
|
|
1733
1733
|
}
|
|
1734
|
-
const constStyle$
|
|
1734
|
+
const constStyle$3 = {
|
|
1735
1735
|
string: style_default.LiteralString,
|
|
1736
1736
|
number: style_default.LiteralNumeric,
|
|
1737
1737
|
boolean: style_default.LiteralBoolean
|
|
1738
1738
|
};
|
|
1739
|
-
function TypeName$
|
|
1739
|
+
function TypeName$5({ type, optional }) {
|
|
1740
1740
|
const Lang = useLanguageComponents();
|
|
1741
1741
|
if (type.kind === "JavaTypeReference" && type.typeName === "List") return "List";
|
|
1742
1742
|
return /* @__PURE__ */ jsx(Lang.Type, {
|
|
@@ -1744,7 +1744,7 @@ function TypeName$4({ type, optional }) {
|
|
|
1744
1744
|
optional
|
|
1745
1745
|
});
|
|
1746
1746
|
}
|
|
1747
|
-
function Type$
|
|
1747
|
+
function Type$5({ type, optional }) {
|
|
1748
1748
|
const language = useLanguage();
|
|
1749
1749
|
const Lang = useLanguageComponents();
|
|
1750
1750
|
const { Join: Join$1, SDKReference: SDKReference$1 } = useComponents();
|
|
@@ -1839,7 +1839,7 @@ function Type$4({ type, optional }) {
|
|
|
1839
1839
|
});
|
|
1840
1840
|
}
|
|
1841
1841
|
}
|
|
1842
|
-
function MethodSignature$
|
|
1842
|
+
function MethodSignature$5({ decl }) {
|
|
1843
1843
|
const Lang = useLanguageComponents();
|
|
1844
1844
|
const language = useLanguage();
|
|
1845
1845
|
const { Join: Join$1, Tooltip: Tooltip$1 } = useComponents();
|
|
@@ -1928,7 +1928,7 @@ function MethodSignature$4({ decl }) {
|
|
|
1928
1928
|
})
|
|
1929
1929
|
});
|
|
1930
1930
|
}
|
|
1931
|
-
function Property$
|
|
1931
|
+
function Property$5({ decl, children }) {
|
|
1932
1932
|
const Docs = useComponents();
|
|
1933
1933
|
const Lang = useLanguageComponents();
|
|
1934
1934
|
const language = useLanguage();
|
|
@@ -1978,7 +1978,7 @@ function Property$4({ decl, children }) {
|
|
|
1978
1978
|
name: decl.ident,
|
|
1979
1979
|
typeName: "const",
|
|
1980
1980
|
type: /* @__PURE__ */ jsx("span", {
|
|
1981
|
-
className: constStyle$
|
|
1981
|
+
className: constStyle$3[typeof decl.value],
|
|
1982
1982
|
children: JSON.stringify(decl.value)
|
|
1983
1983
|
})
|
|
1984
1984
|
});
|
|
@@ -1992,7 +1992,7 @@ function Property$4({ decl, children }) {
|
|
|
1992
1992
|
case "JavaDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
|
-
function Declaration$
|
|
1995
|
+
function Declaration$5({ decl }) {
|
|
1996
1996
|
const Docs = useComponents();
|
|
1997
1997
|
const Lang = useLanguageComponents();
|
|
1998
1998
|
const language = useLanguage();
|
|
@@ -2116,11 +2116,11 @@ function Declaration$4({ decl }) {
|
|
|
2116
2116
|
//#endregion
|
|
2117
2117
|
//#region src/languages/go.tsx
|
|
2118
2118
|
var go_exports = /* @__PURE__ */ __export({
|
|
2119
|
-
Declaration: () => Declaration$
|
|
2120
|
-
MethodSignature: () => MethodSignature$
|
|
2121
|
-
Property: () => Property$
|
|
2122
|
-
Type: () => Type$
|
|
2123
|
-
TypeName: () => TypeName$
|
|
2119
|
+
Declaration: () => Declaration$4,
|
|
2120
|
+
MethodSignature: () => MethodSignature$4,
|
|
2121
|
+
Property: () => Property$4,
|
|
2122
|
+
Type: () => Type$4,
|
|
2123
|
+
TypeName: () => TypeName$4
|
|
2124
2124
|
});
|
|
2125
2125
|
const ComplexTypes$2 = {
|
|
2126
2126
|
GoTypeMap: "map",
|
|
@@ -2137,11 +2137,11 @@ const Keywords$1 = {
|
|
|
2137
2137
|
function isField(type) {
|
|
2138
2138
|
return type.kind === "GoTypeReference" && type.typeName === "param.Field";
|
|
2139
2139
|
}
|
|
2140
|
-
function TypeName$
|
|
2140
|
+
function TypeName$4({ type }) {
|
|
2141
2141
|
const Lang = useLanguageComponents();
|
|
2142
2142
|
return isField(type) ? "field" : ComplexTypes$2[type.kind] ?? /* @__PURE__ */ jsx(Lang.Type, { type });
|
|
2143
2143
|
}
|
|
2144
|
-
function Type$
|
|
2144
|
+
function Type$4({ type }) {
|
|
2145
2145
|
const Lang = useLanguageComponents();
|
|
2146
2146
|
const { Join: Join$1, SDKReference: SDKReference$1 } = useComponents();
|
|
2147
2147
|
switch (type.kind) {
|
|
@@ -2245,7 +2245,7 @@ function Type$3({ type }) {
|
|
|
2245
2245
|
});
|
|
2246
2246
|
}
|
|
2247
2247
|
}
|
|
2248
|
-
function MethodSignature$
|
|
2248
|
+
function MethodSignature$4({ decl }) {
|
|
2249
2249
|
const Lang = useLanguageComponents();
|
|
2250
2250
|
const { Join: Join$1 } = useComponents();
|
|
2251
2251
|
const params = decl.parameters.map((param, i) => /* @__PURE__ */ jsxs(React$1.Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
@@ -2323,7 +2323,7 @@ function MethodSignature$3({ decl }) {
|
|
|
2323
2323
|
})
|
|
2324
2324
|
});
|
|
2325
2325
|
}
|
|
2326
|
-
function Property$
|
|
2326
|
+
function Property$4({ decl, children }) {
|
|
2327
2327
|
const Docs = useComponents();
|
|
2328
2328
|
const Lang = useLanguageComponents();
|
|
2329
2329
|
if (!decl) return null;
|
|
@@ -2351,7 +2351,7 @@ function Property$3({ decl, children }) {
|
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
function Declaration$
|
|
2354
|
+
function Declaration$4({ decl }) {
|
|
2355
2355
|
const Lang = useLanguageComponents();
|
|
2356
2356
|
if (!decl) return;
|
|
2357
2357
|
switch (decl.kind) {
|
|
@@ -2411,13 +2411,13 @@ function Declaration$3({ decl }) {
|
|
|
2411
2411
|
//#endregion
|
|
2412
2412
|
//#region src/languages/python.tsx
|
|
2413
2413
|
var python_exports = /* @__PURE__ */ __export({
|
|
2414
|
-
Declaration: () => Declaration$
|
|
2415
|
-
MethodSignature: () => MethodSignature$
|
|
2416
|
-
Property: () => Property$
|
|
2417
|
-
Type: () => Type$
|
|
2418
|
-
TypeName: () => TypeName$
|
|
2414
|
+
Declaration: () => Declaration$3,
|
|
2415
|
+
MethodSignature: () => MethodSignature$3,
|
|
2416
|
+
Property: () => Property$3,
|
|
2417
|
+
Type: () => Type$3,
|
|
2418
|
+
TypeName: () => TypeName$3
|
|
2419
2419
|
});
|
|
2420
|
-
const constStyle$
|
|
2420
|
+
const constStyle$2 = {
|
|
2421
2421
|
string: style_default.LiteralString,
|
|
2422
2422
|
number: style_default.LiteralNumeric,
|
|
2423
2423
|
boolean: style_default.LiteralBoolean
|
|
@@ -2426,7 +2426,7 @@ function showFullType(type) {
|
|
|
2426
2426
|
if (type.kind !== "PythonTypeReference") return false;
|
|
2427
2427
|
return type.typeName === "Optional" ? showFullType(type.typeParameters[0]) : type.typeParameters.length > 0;
|
|
2428
2428
|
}
|
|
2429
|
-
function TypeName$
|
|
2429
|
+
function TypeName$3({ type }) {
|
|
2430
2430
|
const Lang = useLanguageComponents();
|
|
2431
2431
|
if (type.kind === "PythonTypeReference") switch (type.typeName) {
|
|
2432
2432
|
case "Optional": return /* @__PURE__ */ jsx(Lang.TypeName, { type: type.typeParameters[0] });
|
|
@@ -2437,7 +2437,7 @@ function TypeName$2({ type }) {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
return /* @__PURE__ */ jsx(Lang.Type, { type });
|
|
2439
2439
|
}
|
|
2440
|
-
function Type$
|
|
2440
|
+
function Type$3({ type }) {
|
|
2441
2441
|
const Lang = useLanguageComponents();
|
|
2442
2442
|
const { Join: Join$1, SDKReference: SDKReference$1 } = useComponents();
|
|
2443
2443
|
switch (type.kind) {
|
|
@@ -2462,7 +2462,7 @@ function Type$2({ type }) {
|
|
|
2462
2462
|
case "PythonTypeLiteral": return /* @__PURE__ */ jsx("span", {
|
|
2463
2463
|
className: style_default.Type,
|
|
2464
2464
|
children: /* @__PURE__ */ jsx("span", {
|
|
2465
|
-
className: constStyle$
|
|
2465
|
+
className: constStyle$2[typeof type.literal.value],
|
|
2466
2466
|
children: JSON.stringify(type.literal.value)
|
|
2467
2467
|
})
|
|
2468
2468
|
});
|
|
@@ -2526,7 +2526,7 @@ function Type$2({ type }) {
|
|
|
2526
2526
|
}
|
|
2527
2527
|
}
|
|
2528
2528
|
}
|
|
2529
|
-
function MethodSignature$
|
|
2529
|
+
function MethodSignature$3({ decl }) {
|
|
2530
2530
|
const Lang = useLanguageComponents();
|
|
2531
2531
|
const { Join: Join$1, Tooltip: Tooltip$1 } = useComponents();
|
|
2532
2532
|
const params = decl.parameters.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsx(Tooltip$1, {
|
|
@@ -2590,7 +2590,7 @@ function MethodSignature$2({ decl }) {
|
|
|
2590
2590
|
})
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
function Property$
|
|
2593
|
+
function Property$3({ decl, children }) {
|
|
2594
2594
|
const Lang = useLanguageComponents();
|
|
2595
2595
|
if (!decl) return;
|
|
2596
2596
|
switch (decl.kind) {
|
|
@@ -2611,7 +2611,7 @@ function Property$2({ decl, children }) {
|
|
|
2611
2611
|
case "PythonDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
|
|
2612
2612
|
}
|
|
2613
2613
|
}
|
|
2614
|
-
function Declaration$
|
|
2614
|
+
function Declaration$3({ decl }) {
|
|
2615
2615
|
const Lang = useLanguageComponents();
|
|
2616
2616
|
if (!decl) return;
|
|
2617
2617
|
switch (decl.kind) {
|
|
@@ -2682,11 +2682,11 @@ function Declaration$2({ decl }) {
|
|
|
2682
2682
|
//#endregion
|
|
2683
2683
|
//#region src/languages/ruby.tsx
|
|
2684
2684
|
var ruby_exports = /* @__PURE__ */ __export({
|
|
2685
|
-
Declaration: () => Declaration$
|
|
2686
|
-
MethodSignature: () => MethodSignature$
|
|
2687
|
-
Property: () => Property$
|
|
2688
|
-
Type: () => Type$
|
|
2689
|
-
TypeName: () => TypeName$
|
|
2685
|
+
Declaration: () => Declaration$2,
|
|
2686
|
+
MethodSignature: () => MethodSignature$2,
|
|
2687
|
+
Property: () => Property$2,
|
|
2688
|
+
Type: () => Type$2,
|
|
2689
|
+
TypeName: () => TypeName$2
|
|
2690
2690
|
});
|
|
2691
2691
|
const ComplexTypes$1 = {
|
|
2692
2692
|
RubyTypeObject: "object",
|
|
@@ -2703,7 +2703,7 @@ const Keywords = {
|
|
|
2703
2703
|
RubyTypeFloat: "Float",
|
|
2704
2704
|
RubyTypeBoolean: "bool"
|
|
2705
2705
|
};
|
|
2706
|
-
function TypeName$
|
|
2706
|
+
function TypeName$2({ type }) {
|
|
2707
2707
|
const Lang = useLanguageComponents();
|
|
2708
2708
|
return ComplexTypes$1[type.kind] ?? /* @__PURE__ */ jsx(Lang.Type, { type });
|
|
2709
2709
|
}
|
|
@@ -2754,7 +2754,7 @@ function TypePreview$1({ path }) {
|
|
|
2754
2754
|
]
|
|
2755
2755
|
});
|
|
2756
2756
|
}
|
|
2757
|
-
function Type$
|
|
2757
|
+
function Type$2({ type }) {
|
|
2758
2758
|
const Lang = useLanguageComponents();
|
|
2759
2759
|
const { SDKReference: SDKReference$1, Join: Join$1 } = useComponents();
|
|
2760
2760
|
switch (type.kind) {
|
|
@@ -2938,7 +2938,7 @@ function Type$1({ type }) {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
|
-
function MethodSignature$
|
|
2941
|
+
function MethodSignature$2({ decl }) {
|
|
2942
2942
|
const Lang = useLanguageComponents();
|
|
2943
2943
|
const { Join: Join$1 } = useComponents();
|
|
2944
2944
|
const params = decl.args.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsx("span", {
|
|
@@ -2993,7 +2993,7 @@ function MethodSignature$1({ decl }) {
|
|
|
2993
2993
|
})
|
|
2994
2994
|
});
|
|
2995
2995
|
}
|
|
2996
|
-
function Property$
|
|
2996
|
+
function Property$2({ decl, children }) {
|
|
2997
2997
|
const Lang = useLanguageComponents();
|
|
2998
2998
|
switch (decl.kind) {
|
|
2999
2999
|
case "RubyDeclProperty": return children({
|
|
@@ -3013,7 +3013,7 @@ function Property$1({ decl, children }) {
|
|
|
3013
3013
|
});
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
|
-
function Declaration$
|
|
3016
|
+
function Declaration$2({ decl }) {
|
|
3017
3017
|
const Lang = useLanguageComponents();
|
|
3018
3018
|
if (!decl) return;
|
|
3019
3019
|
switch (decl.kind) {
|
|
@@ -3060,18 +3060,18 @@ function Declaration$1({ decl }) {
|
|
|
3060
3060
|
//#endregion
|
|
3061
3061
|
//#region src/languages/http.tsx
|
|
3062
3062
|
var http_exports = /* @__PURE__ */ __export({
|
|
3063
|
-
Declaration: () => Declaration,
|
|
3063
|
+
Declaration: () => Declaration$1,
|
|
3064
3064
|
MethodInfo: () => MethodInfo,
|
|
3065
|
-
MethodSignature: () => MethodSignature,
|
|
3066
|
-
Property: () => Property,
|
|
3067
|
-
Type: () => Type,
|
|
3068
|
-
TypeName: () => TypeName
|
|
3065
|
+
MethodSignature: () => MethodSignature$1,
|
|
3066
|
+
Property: () => Property$1,
|
|
3067
|
+
Type: () => Type$1,
|
|
3068
|
+
TypeName: () => TypeName$1
|
|
3069
3069
|
});
|
|
3070
3070
|
const ComplexTypes = {
|
|
3071
3071
|
HttpTypeUnion: "union",
|
|
3072
3072
|
HttpTypeIntersection: "intersection"
|
|
3073
3073
|
};
|
|
3074
|
-
const constStyle = {
|
|
3074
|
+
const constStyle$1 = {
|
|
3075
3075
|
string: style_default.LiteralString,
|
|
3076
3076
|
number: style_default.LiteralNumeric,
|
|
3077
3077
|
boolean: style_default.LiteralBoolean
|
|
@@ -3124,14 +3124,14 @@ function TypePreview({ path }) {
|
|
|
3124
3124
|
]
|
|
3125
3125
|
});
|
|
3126
3126
|
}
|
|
3127
|
-
function TypeName({ type }) {
|
|
3127
|
+
function TypeName$1({ type }) {
|
|
3128
3128
|
const Lang = useLanguageComponents();
|
|
3129
3129
|
if (type.kind === "HttpTypeArray") return /* @__PURE__ */ jsxs(Fragment$1, { children: ["array of ", /* @__PURE__ */ jsx(Lang.TypeName, { type: type.elementType })] });
|
|
3130
3130
|
if (type.kind === "HttpTypeUnion" && type.types.every((t) => t.kind === "HttpTypeLiteral")) return "enum";
|
|
3131
3131
|
if (type.kind === "HttpTypeReference" && type.ident.split(".").at(-1) === "Record") return "map";
|
|
3132
3132
|
return ComplexTypes[type.kind] ?? /* @__PURE__ */ jsx(Lang.Type, { type });
|
|
3133
3133
|
}
|
|
3134
|
-
function Type({ type }) {
|
|
3134
|
+
function Type$1({ type }) {
|
|
3135
3135
|
const Lang = useLanguageComponents();
|
|
3136
3136
|
const { Join: Join$1, SDKReference: SDKReference$1 } = useComponents();
|
|
3137
3137
|
switch (type.kind) {
|
|
@@ -3156,7 +3156,7 @@ function Type({ type }) {
|
|
|
3156
3156
|
case "HttpTypeLiteral": return /* @__PURE__ */ jsx("span", {
|
|
3157
3157
|
className: style_default.Type,
|
|
3158
3158
|
children: /* @__PURE__ */ jsx("span", {
|
|
3159
|
-
className: constStyle[typeof type.literal],
|
|
3159
|
+
className: constStyle$1[typeof type.literal],
|
|
3160
3160
|
children: JSON.stringify(type.literal)
|
|
3161
3161
|
})
|
|
3162
3162
|
});
|
|
@@ -3278,7 +3278,7 @@ function Type({ type }) {
|
|
|
3278
3278
|
}
|
|
3279
3279
|
}
|
|
3280
3280
|
}
|
|
3281
|
-
function MethodSignature({ decl }) {
|
|
3281
|
+
function MethodSignature$1({ decl }) {
|
|
3282
3282
|
return null;
|
|
3283
3283
|
}
|
|
3284
3284
|
function MethodInfo({ decl, children }) {
|
|
@@ -3327,7 +3327,7 @@ function renderVariantInfo(type) {
|
|
|
3327
3327
|
" object variants:"
|
|
3328
3328
|
] });
|
|
3329
3329
|
}
|
|
3330
|
-
function Property({ decl, children }) {
|
|
3330
|
+
function Property$1({ decl, children }) {
|
|
3331
3331
|
const Lang = useLanguageComponents();
|
|
3332
3332
|
if (!decl) return;
|
|
3333
3333
|
switch (decl.kind) {
|
|
@@ -3346,7 +3346,7 @@ function Property({ decl, children }) {
|
|
|
3346
3346
|
case "HttpDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
|
|
3347
3347
|
}
|
|
3348
3348
|
}
|
|
3349
|
-
function Declaration({ decl }) {
|
|
3349
|
+
function Declaration$1({ decl }) {
|
|
3350
3350
|
const Lang = useLanguageComponents();
|
|
3351
3351
|
if (!decl) return;
|
|
3352
3352
|
switch (decl.kind) {
|
|
@@ -3377,9 +3377,285 @@ function Declaration({ decl }) {
|
|
|
3377
3377
|
}
|
|
3378
3378
|
}
|
|
3379
3379
|
|
|
3380
|
+
//#endregion
|
|
3381
|
+
//#region src/languages/csharp.tsx
|
|
3382
|
+
var csharp_exports = /* @__PURE__ */ __export({
|
|
3383
|
+
Declaration: () => Declaration,
|
|
3384
|
+
MethodSignature: () => MethodSignature,
|
|
3385
|
+
Property: () => Property,
|
|
3386
|
+
Type: () => Type,
|
|
3387
|
+
TypeName: () => TypeName
|
|
3388
|
+
});
|
|
3389
|
+
const constStyle = {
|
|
3390
|
+
string: style_default.LiteralString,
|
|
3391
|
+
number: style_default.LiteralNumeric,
|
|
3392
|
+
boolean: style_default.LiteralBoolean
|
|
3393
|
+
};
|
|
3394
|
+
function TypeName({ type, optional }) {
|
|
3395
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(useLanguageComponents().Type, { type }), optional && /* @__PURE__ */ jsx("span", {
|
|
3396
|
+
className: style_default.TextOperator,
|
|
3397
|
+
children: "? "
|
|
3398
|
+
})] });
|
|
3399
|
+
}
|
|
3400
|
+
function Type({ type }) {
|
|
3401
|
+
const Lang = useLanguageComponents();
|
|
3402
|
+
const { Join: Join$1, SDKReference: SDKReference$1 } = useComponents();
|
|
3403
|
+
switch (type.kind) {
|
|
3404
|
+
case "CSharpTypeReference": {
|
|
3405
|
+
const params = type.typeParameters?.map((param, key) => /* @__PURE__ */ jsx(Lang.Type, { type: param }, key));
|
|
3406
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
3407
|
+
className: style_default.Type,
|
|
3408
|
+
children: [
|
|
3409
|
+
/* @__PURE__ */ jsx(SDKReference$1, {
|
|
3410
|
+
stainlessPath: type.$ref,
|
|
3411
|
+
children: type.typeName
|
|
3412
|
+
}),
|
|
3413
|
+
params && params.length > 0 ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3414
|
+
/* @__PURE__ */ jsx("span", {
|
|
3415
|
+
className: style_default.TypeBracket,
|
|
3416
|
+
children: "<"
|
|
3417
|
+
}),
|
|
3418
|
+
/* @__PURE__ */ jsx(Join$1, {
|
|
3419
|
+
items: params,
|
|
3420
|
+
limit: 3,
|
|
3421
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3422
|
+
className: style_default.TextOperator,
|
|
3423
|
+
children: ", "
|
|
3424
|
+
})
|
|
3425
|
+
}),
|
|
3426
|
+
/* @__PURE__ */ jsx("span", {
|
|
3427
|
+
className: style_default.TypeBracket,
|
|
3428
|
+
children: ">"
|
|
3429
|
+
})
|
|
3430
|
+
] }) : null,
|
|
3431
|
+
type.nullable && /* @__PURE__ */ jsx("span", {
|
|
3432
|
+
className: style_default.TextOperator,
|
|
3433
|
+
children: "?"
|
|
3434
|
+
})
|
|
3435
|
+
]
|
|
3436
|
+
});
|
|
3437
|
+
}
|
|
3438
|
+
case "CSharpTypeClass":
|
|
3439
|
+
case "CSharpTypeUnion": return /* @__PURE__ */ jsx("span", {
|
|
3440
|
+
className: style_default.Type,
|
|
3441
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3442
|
+
className: style_default.TypeKeyword,
|
|
3443
|
+
children: "class"
|
|
3444
|
+
})
|
|
3445
|
+
});
|
|
3446
|
+
case "CSharpTypeEnum":
|
|
3447
|
+
case "CSharpTypeBoolean":
|
|
3448
|
+
case "CSharpTypeFloat":
|
|
3449
|
+
case "CSharpTypeDouble":
|
|
3450
|
+
case "CSharpTypeInt":
|
|
3451
|
+
case "CSharpTypeLong": return /* @__PURE__ */ jsx("span", {
|
|
3452
|
+
className: style_default.Type,
|
|
3453
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3454
|
+
className: style_default.TypeKeyword,
|
|
3455
|
+
children: type.kind.slice(10)
|
|
3456
|
+
})
|
|
3457
|
+
});
|
|
3458
|
+
case "CSharpTypeString": return /* @__PURE__ */ jsx("span", {
|
|
3459
|
+
className: style_default.Type,
|
|
3460
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3461
|
+
className: style_default.TypeString,
|
|
3462
|
+
children: "string"
|
|
3463
|
+
})
|
|
3464
|
+
});
|
|
3465
|
+
case "CSharpTypeConstant": return /* @__PURE__ */ jsx("span", {
|
|
3466
|
+
className: style_default.Type,
|
|
3467
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3468
|
+
className: style_default.TypeKeyword,
|
|
3469
|
+
children: "JsonElement"
|
|
3470
|
+
})
|
|
3471
|
+
});
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
function MethodSignature({ decl }) {
|
|
3475
|
+
const Lang = useLanguageComponents();
|
|
3476
|
+
const { Join: Join$1, Tooltip: Tooltip$1 } = useComponents();
|
|
3477
|
+
const params = decl.parameters.map((param, i) => /* @__PURE__ */ jsx(React$1.Fragment, { children: /* @__PURE__ */ jsxs(Tooltip$1, {
|
|
3478
|
+
content: /* @__PURE__ */ jsx(Lang.Type, { type: param.typeAnnotation }),
|
|
3479
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
3480
|
+
className: style_default.TextIdentifier,
|
|
3481
|
+
children: param.ident
|
|
3482
|
+
}), param.hasDefault && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3483
|
+
" ",
|
|
3484
|
+
/* @__PURE__ */ jsx("span", {
|
|
3485
|
+
className: style_default.TextOperator,
|
|
3486
|
+
children: "="
|
|
3487
|
+
}),
|
|
3488
|
+
" ",
|
|
3489
|
+
/* @__PURE__ */ jsx("span", {
|
|
3490
|
+
className: style_default.TextKeyword,
|
|
3491
|
+
children: "default"
|
|
3492
|
+
})
|
|
3493
|
+
] })]
|
|
3494
|
+
}) }, i));
|
|
3495
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3496
|
+
className: style_default.MethodSignature,
|
|
3497
|
+
children: /* @__PURE__ */ jsxs("span", {
|
|
3498
|
+
className: style_default.SignatureTitle,
|
|
3499
|
+
children: [
|
|
3500
|
+
decl.returnType && /* @__PURE__ */ jsxs("span", {
|
|
3501
|
+
className: style_default.SignatureReturns,
|
|
3502
|
+
children: [/* @__PURE__ */ jsx(Lang.Type, { type: decl.returnType }), " "]
|
|
3503
|
+
}),
|
|
3504
|
+
decl.qualified && /* @__PURE__ */ jsx("span", {
|
|
3505
|
+
className: style_default.SignatureQualified,
|
|
3506
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3507
|
+
className: style_default.TextIdentifier,
|
|
3508
|
+
children: decl.qualified?.slice(0, -decl.ident.length)
|
|
3509
|
+
})
|
|
3510
|
+
}),
|
|
3511
|
+
/* @__PURE__ */ jsx("span", {
|
|
3512
|
+
className: style_default.SignatureName,
|
|
3513
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3514
|
+
className: style_default.TextIdentifier,
|
|
3515
|
+
children: decl.ident
|
|
3516
|
+
})
|
|
3517
|
+
}),
|
|
3518
|
+
/* @__PURE__ */ jsxs("span", {
|
|
3519
|
+
className: style_default.MethodSignature,
|
|
3520
|
+
children: [
|
|
3521
|
+
/* @__PURE__ */ jsx("span", {
|
|
3522
|
+
className: style_default.SignatureParen,
|
|
3523
|
+
children: "("
|
|
3524
|
+
}),
|
|
3525
|
+
/* @__PURE__ */ jsx("span", {
|
|
3526
|
+
className: style_default.SignatureParams,
|
|
3527
|
+
children: /* @__PURE__ */ jsx(Join$1, {
|
|
3528
|
+
items: params,
|
|
3529
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
3530
|
+
className: style_default.TextOperator,
|
|
3531
|
+
children: ", "
|
|
3532
|
+
})
|
|
3533
|
+
})
|
|
3534
|
+
}),
|
|
3535
|
+
/* @__PURE__ */ jsxs("span", {
|
|
3536
|
+
className: style_default.SignatureParen,
|
|
3537
|
+
children: [")", " "]
|
|
3538
|
+
})
|
|
3539
|
+
]
|
|
3540
|
+
})
|
|
3541
|
+
]
|
|
3542
|
+
})
|
|
3543
|
+
});
|
|
3544
|
+
}
|
|
3545
|
+
function Property({ decl, children }) {
|
|
3546
|
+
const Lang = useLanguageComponents();
|
|
3547
|
+
if (!decl) return null;
|
|
3548
|
+
switch (decl.kind) {
|
|
3549
|
+
case "CSharpDeclProperty": {
|
|
3550
|
+
const type = /* @__PURE__ */ jsx(Lang.Type, {
|
|
3551
|
+
type: decl.type,
|
|
3552
|
+
optional: decl.optional
|
|
3553
|
+
});
|
|
3554
|
+
return children({
|
|
3555
|
+
name: decl.ident,
|
|
3556
|
+
typeName: /* @__PURE__ */ jsx(Lang.TypeName, {
|
|
3557
|
+
type: decl.type,
|
|
3558
|
+
optional: decl.optional
|
|
3559
|
+
}),
|
|
3560
|
+
type
|
|
3561
|
+
});
|
|
3562
|
+
}
|
|
3563
|
+
case "CSharpDeclConst": return children({
|
|
3564
|
+
name: decl.ident,
|
|
3565
|
+
typeName: "constant",
|
|
3566
|
+
type: /* @__PURE__ */ jsx("span", {
|
|
3567
|
+
className: constStyle[typeof decl.value],
|
|
3568
|
+
children: JSON.stringify(decl.value)
|
|
3569
|
+
})
|
|
3570
|
+
});
|
|
3571
|
+
case "CSharpDeclType": {
|
|
3572
|
+
const typeName$1 = decl.type.kind === "CSharpTypeUnion" ? "union" : decl.type.kind === "CSharpTypeEnum" ? "enum" : "class";
|
|
3573
|
+
return children({
|
|
3574
|
+
name: decl.ident,
|
|
3575
|
+
typeName: typeName$1
|
|
3576
|
+
});
|
|
3577
|
+
}
|
|
3578
|
+
case "CSharpDeclReference": return children({ type: /* @__PURE__ */ jsx(Lang.Type, { type: decl.type }) });
|
|
3579
|
+
}
|
|
3580
|
+
}
|
|
3581
|
+
function Declaration({ decl }) {
|
|
3582
|
+
const Docs = useComponents();
|
|
3583
|
+
const Lang = useLanguageComponents();
|
|
3584
|
+
if (!decl) return null;
|
|
3585
|
+
switch (decl.kind) {
|
|
3586
|
+
case "CSharpDeclConst": return /* @__PURE__ */ jsxs(Fragment$1, { children: [" ", /* @__PURE__ */ jsx(Docs.Tooltip, {
|
|
3587
|
+
content: /* @__PURE__ */ jsx("span", {
|
|
3588
|
+
className: style_default.TextIdentifier,
|
|
3589
|
+
children: decl.value
|
|
3590
|
+
}),
|
|
3591
|
+
children: /* @__PURE__ */ jsx(Docs.Badge, { id: "constant" })
|
|
3592
|
+
})] });
|
|
3593
|
+
case "CSharpDeclType": {
|
|
3594
|
+
const keyword = decl.type.kind === "CSharpTypeEnum" ? "enum" : "class";
|
|
3595
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3596
|
+
/* @__PURE__ */ jsx("span", {
|
|
3597
|
+
className: style_default.TextKeyword,
|
|
3598
|
+
children: keyword
|
|
3599
|
+
}),
|
|
3600
|
+
" ",
|
|
3601
|
+
/* @__PURE__ */ jsx("span", {
|
|
3602
|
+
className: style_default.TextIdentifier,
|
|
3603
|
+
children: decl.ident
|
|
3604
|
+
}),
|
|
3605
|
+
/* @__PURE__ */ jsx("span", {
|
|
3606
|
+
className: style_default.TextPunctuation,
|
|
3607
|
+
children: ":"
|
|
3608
|
+
}),
|
|
3609
|
+
decl.type.kind === "CSharpTypeUnion" && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3610
|
+
" ",
|
|
3611
|
+
/* @__PURE__ */ jsx(Docs.Tooltip, {
|
|
3612
|
+
content: "A class that can be one of several variants.",
|
|
3613
|
+
children: /* @__PURE__ */ jsx(Docs.Badge, {
|
|
3614
|
+
id: "csharp-union",
|
|
3615
|
+
children: "union"
|
|
3616
|
+
})
|
|
3617
|
+
}),
|
|
3618
|
+
" "
|
|
3619
|
+
] })
|
|
3620
|
+
] });
|
|
3621
|
+
}
|
|
3622
|
+
case "CSharpDeclProperty": return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
3623
|
+
decl.optional === false && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
3624
|
+
className: style_default.TextKeyword,
|
|
3625
|
+
children: "required"
|
|
3626
|
+
}), " "] }),
|
|
3627
|
+
/* @__PURE__ */ jsx(Lang.Type, {
|
|
3628
|
+
type: decl.type,
|
|
3629
|
+
optional: decl.optional
|
|
3630
|
+
}),
|
|
3631
|
+
decl.nullable && !("nullable" in decl.type && decl.type.nullable) && /* @__PURE__ */ jsx("span", {
|
|
3632
|
+
className: style_default.TextOperator,
|
|
3633
|
+
children: "?"
|
|
3634
|
+
}),
|
|
3635
|
+
" ",
|
|
3636
|
+
/* @__PURE__ */ jsx("span", {
|
|
3637
|
+
className: style_default.TextIdentifier,
|
|
3638
|
+
children: decl.ident
|
|
3639
|
+
}),
|
|
3640
|
+
decl.type.kind === "CSharpTypeConstant" && /* @__PURE__ */ jsxs(Fragment$1, { children: [" ", /* @__PURE__ */ jsx(Docs.Tooltip, {
|
|
3641
|
+
content: /* @__PURE__ */ jsx("span", {
|
|
3642
|
+
className: style_default.TextIdentifier,
|
|
3643
|
+
children: decl.type.value
|
|
3644
|
+
}),
|
|
3645
|
+
children: /* @__PURE__ */ jsx(Docs.Badge, {
|
|
3646
|
+
id: "csharp-constant",
|
|
3647
|
+
children: "constant"
|
|
3648
|
+
})
|
|
3649
|
+
})] })
|
|
3650
|
+
] });
|
|
3651
|
+
case "CSharpDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
|
|
3380
3655
|
//#endregion
|
|
3381
3656
|
//#region src/languages/index.ts
|
|
3382
3657
|
var languages_exports = /* @__PURE__ */ __export({
|
|
3658
|
+
csharp: () => csharp_exports,
|
|
3383
3659
|
go: () => go_exports,
|
|
3384
3660
|
http: () => http_exports,
|
|
3385
3661
|
java: () => java_exports,
|
|
@@ -3427,8 +3703,8 @@ function Providers({ language, children }) {
|
|
|
3427
3703
|
});
|
|
3428
3704
|
}
|
|
3429
3705
|
function RenderType({ type, full }) {
|
|
3430
|
-
const { Type: Type$
|
|
3431
|
-
return full ? /* @__PURE__ */ jsx(Type$
|
|
3706
|
+
const { Type: Type$7, TypeName: TypeName$7 } = useLanguageComponents();
|
|
3707
|
+
return full ? /* @__PURE__ */ jsx(Type$7, { type }) : /* @__PURE__ */ jsx(TypeName$7, { type });
|
|
3432
3708
|
}
|
|
3433
3709
|
function typeName(language, type) {
|
|
3434
3710
|
return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
|
|
@@ -3437,8 +3713,8 @@ function typeName(language, type) {
|
|
|
3437
3713
|
}));
|
|
3438
3714
|
}
|
|
3439
3715
|
function RenderDeclaration({ decl }) {
|
|
3440
|
-
const { Declaration: Declaration$
|
|
3441
|
-
return /* @__PURE__ */ jsx(Declaration$
|
|
3716
|
+
const { Declaration: Declaration$7 } = useLanguageComponents();
|
|
3717
|
+
return /* @__PURE__ */ jsx(Declaration$7, { decl });
|
|
3442
3718
|
}
|
|
3443
3719
|
function declaration$1(language, decl) {
|
|
3444
3720
|
return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
|
|
@@ -3447,8 +3723,8 @@ function declaration$1(language, decl) {
|
|
|
3447
3723
|
}));
|
|
3448
3724
|
}
|
|
3449
3725
|
function RenderMethod({ method }) {
|
|
3450
|
-
const { MethodSignature: MethodSignature$
|
|
3451
|
-
return /* @__PURE__ */ jsx(MethodSignature$
|
|
3726
|
+
const { MethodSignature: MethodSignature$7 } = useLanguageComponents();
|
|
3727
|
+
return /* @__PURE__ */ jsx(MethodSignature$7, { decl: method });
|
|
3452
3728
|
}
|
|
3453
3729
|
function methodSignature(language, decl) {
|
|
3454
3730
|
return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
|
|
@@ -3838,4 +4114,4 @@ function useLanguageComponents() {
|
|
|
3838
4114
|
}
|
|
3839
4115
|
|
|
3840
4116
|
//#endregion
|
|
3841
|
-
export { Type$5 as $,
|
|
4117
|
+
export { Type$5 as $, HttpMethods as $t, TypeName$1 as A, SDKExample as At, Property$3 as B, usePropertyModel as Bt, TypeName as C, SnippetRequestContainer as Ct, MethodSignature$1 as D, SDKChildren as Dt, MethodInfo as E, ReferenceNestingContext as Et, Type$2 as F, SDKMethodInfo as Ft, MethodSignature$4 as G, Join as Gt, TypeName$3 as H, Badge as Ht, TypeName$2 as I, SDKModel as It, TypeName$4 as J, Markdown as Jt, Property$4 as K, Link as Kt, ruby_exports as L, SDKReference as Lt, Declaration$2 as M, SDKLanguageBlock as Mt, MethodSignature$2 as N, SDKMethod as Nt, Property$1 as O, SDKConstraints as Ot, Property$2 as P, SDKMethodHeader as Pt, Property$5 as Q, HttpMethodIcons as Qt, Declaration$3 as R, SDKRequestTitle as Rt, Type as S, SnippetContainer as St, Declaration$1 as T, PropertyModelContext as Tt, python_exports as U, Expander as Ut, Type$3 as V, useReferenceNesting as Vt, Declaration$4 as W, Input as Wt, Declaration$5 as X, Tooltip as Xt, go_exports as Y, ToggleButton as Yt, MethodSignature$5 as Z, VirtualExpander as Zt, languages_exports as _, SDKResourceHeader as _t, useSearchContext as a, MethodRoute as an, Type$6 as at, MethodSignature as b, SnippetButtons as bt, buildProseIndex as c, PropertyTitle as cn, components_exports as ct, declaration as d, SidebarMethod as dt, Method as en, TypeName$5 as et, render as f, SidebarResource as ft, kotlin as g, SDKResource as gt, defaultContextValue as h, SDKOverview as ht, useSearch as i, MethodInfo$1 as in, Property$6 as it, http_exports as j, SDKIcon as jt, Type$1 as k, SDKDeclaration as kt, search as l, PropertyToggle as ln, Sidebar as lt, ComponentProvider as m, SDKMethodSummary as mt, useLanguageComponents as n, MethodHeader as nn, Declaration$6 as nt, buildChatIndex as o, Property$7 as on, TypeName$6 as ot, renderMarkdown as p, SDKBreadcrumbs as pt, Type$4 as q, ListView as qt, SearchProvider as r, MethodIconBadge as rn, MethodSignature$6 as rt, buildIndex as s, PropertyDescription as sn, typescript_exports as st, contexts_exports as t, MethodDescription as tn, java_exports as tt, generateIndex as u, SidebarExpander as ut, node as v, SDKRoot as vt, csharp_exports as w, SnippetResponse as wt, Property as x, SnippetCode as xt, Declaration as y, Snippet as yt, MethodSignature$3 as z, SDKSnippetLanguages as zt };
|