@stainless-api/docs-ui 0.1.0-beta.57 → 0.1.0-beta.59
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-CCViAnPI.js → breadcrumbs-85Y-pybq.js} +3 -3
- package/dist/{breadcrumbs-BFCcsaL5.d.ts → breadcrumbs-D1pqkQVq.d.ts} +4 -4
- package/dist/cli-CoLvH9jq.js +157 -0
- package/dist/{component-2IFa97aV.js → component-CF9lLzZX.js} +3 -3
- package/dist/{component-generics-Dbwqv7EL.d.ts → component-generics-CIV4pVmh.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +7 -7
- package/dist/components/icons.d.ts +17 -12
- package/dist/components/icons.js +2 -2
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +17 -17
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +8 -8
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +9 -9
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +6 -6
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +7 -7
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +8 -8
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +7 -7
- package/dist/components/snippets.d.ts +3 -3
- package/dist/components/snippets.js +8 -8
- package/dist/{components-B6opXKh2.js → components-Bz5h0Y4x.js} +10 -9
- 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 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/component.js +26 -25
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +1 -1
- package/dist/contexts/index.d.ts +16 -16
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/navigation.js +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/contexts/use-components.js +2 -2
- package/dist/{contexts-CLpvBI91.js → contexts-DZfPd182.js} +5 -5
- package/dist/{csharp-Cs2V5Q49.js → csharp-BbNnLZWW.js} +10 -10
- package/dist/{docs-BQbH-a6R.d.ts → docs-BVs5MLfL.d.ts} +6 -7
- package/dist/{go-jtKybF5f.js → go-OFa_5xje.js} +4 -4
- package/dist/{http-ByTnZCdl.js → http-olFAYLFq.js} +8 -7
- package/dist/{icons-Ckod9aod.js → icons-DMkAA03z.js} +17 -1
- package/dist/index-BHy63Zur.d.ts +302 -0
- package/dist/index-Ct7H30x1.d.ts +1691 -0
- package/dist/{index-CxTvYsqI.d.ts → index-JJET_1EX.d.ts} +9 -9
- package/dist/index.d.ts +15 -15
- package/dist/index.js +28 -27
- package/dist/{java-CSfLt_jp.js → java-Bw0o13Wk.js} +5 -5
- package/dist/languages/cli.d.ts +11 -0
- package/dist/languages/cli.js +20 -0
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/csharp.js +7 -7
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +7 -7
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +17 -17
- package/dist/languages/index.d.ts +11 -11
- package/dist/languages/index.js +26 -25
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +7 -7
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +7 -7
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +7 -7
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +7 -7
- package/dist/languages-DW_T-Th6.js +28 -0
- package/dist/markdown/index.d.ts +5 -5
- package/dist/markdown/index.js +26 -25
- package/dist/markdown/md.js +2 -2
- package/dist/markdown/printer.d.ts +6 -6
- package/dist/markdown/printer.js +42 -40
- package/dist/markdown/utils.d.ts +5 -5
- package/dist/{markdown-V_bNKjle.d.ts → markdown-BXDwR9bo.d.ts} +2 -2
- package/dist/{markdown-CxdeWgjV.js → markdown-ZzVcn4kq.js} +3 -2
- package/dist/{method-CD_dwBsB.d.ts → method-B-AEMp1G.d.ts} +6 -6
- package/dist/{method-BPsNdtwS.js → method-Dktsfckf.js} +3 -3
- package/dist/{navigation-BlOvTCTX.d.ts → navigation-CEMwVe3s.d.ts} +3 -3
- package/dist/{overview-CVTaIlP6.d.ts → overview-BzJqrxc6.d.ts} +11 -11
- package/dist/{overview-BslKVsRE.js → overview-EkRigi6e.js} +11 -11
- package/dist/{primitives-CCj2Pn-o.js → primitives-BVaiiY63.js} +7 -7
- package/dist/{primitives-Da9sUCQo.d.ts → primitives-CDxnkX_O.d.ts} +12 -11
- package/dist/{properties-DhttBLpf.js → properties-BHvUHbcf.js} +3 -3
- package/dist/{properties-CEjSSMRr.d.ts → properties-fAurDGW2.d.ts} +5 -5
- package/dist/{python-BU7eaJMy.js → python-D8NWX7Cb.js} +4 -4
- package/dist/{routing-CUnVDpU-.d.ts → routing-BifRCZt4.d.ts} +7 -7
- package/dist/{routing-Dl0FprK1.js → routing-Fzn1XfX_.js} +7 -4
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{ruby-LiJ6VW-R.js → ruby-DOUaLhKJ.js} +5 -5
- package/dist/{sdk-CbNqFzOI.js → sdk-DrK2bq-v.js} +11 -9
- package/dist/{sdk-CenwRRXT.d.ts → sdk-DwyhWkhn.d.ts} +22 -22
- package/dist/{sidebar-ZNWRDHyv.js → sidebar-BLGIKgRI.js} +5 -5
- package/dist/{sidebar-CcX4PdH0.d.ts → sidebar-BbCq6Ibl.d.ts} +9 -9
- package/dist/{snippets-CO4kIovz.js → snippets-D4VhtZIC.js} +38 -36
- package/dist/snippets-VclrBnJJ.d.ts +53 -0
- package/dist/spec.d.ts +26 -26
- package/dist/spec.js +2 -2
- package/dist/{style-Vk87Pfuy.js → style-TeAZuiHh.js} +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/style.js +1 -1
- package/dist/styles/main.css +34 -15
- package/dist/styles/primitives.css +2 -1
- package/dist/styles/resets.css +1 -1
- package/dist/styles.css +37 -17
- package/dist/{typescript-C8J1uyak.js → typescript-DDa446mB.js} +6 -6
- package/dist/{use-components-DBx5LZk0.js → use-components-Dbin0y07.js} +1 -1
- package/dist/{utils-C12Fme2N.js → utils-BoRmEFRn.js} +2 -2
- package/dist/utils.d.ts +6 -6
- package/dist/utils.js +1 -1
- package/package.json +4 -4
- package/dist/breadcrumbs-DTHE6aca.d.ts +0 -25
- package/dist/component-generics-CXfH4VNh.d.ts +0 -30
- package/dist/docs-AUJrRqst.d.ts +0 -47
- package/dist/index-Bk5AWxiZ.d.ts +0 -274
- package/dist/index-CBfCrZxK.d.ts +0 -15
- package/dist/index-DUvl24AZ.d.ts +0 -274
- package/dist/languages-X8bJZjuW.js +0 -26
- package/dist/markdown-CqEZJJrZ.d.ts +0 -22
- package/dist/method-CkGKALRi.d.ts +0 -59
- package/dist/navigation-CXQA2RZo.d.ts +0 -29
- package/dist/overview-DFrenwhf.d.ts +0 -39
- package/dist/primitives-DiDzLHoK.d.ts +0 -104
- package/dist/properties-CXDSYNGL.d.ts +0 -54
- package/dist/sdk-CL6r5JlK.d.ts +0 -118
- package/dist/sidebar-BDwx6h14.d.ts +0 -36
- package/dist/snippets-DePfv2T6.d.ts +0 -51
- package/dist/snippets-ykHHsG1B.d.ts +0 -51
- /package/dist/{chunk-CAbhIZi1.js → chunk-Du3t87LU.js} +0 -0
- /package/dist/{component-generics-B6Fn47Mz.js → component-generics-CmIGbBLq.js} +0 -0
- /package/dist/{docs-CXqi26jB.js → docs-Bw-eLYjA.js} +0 -0
- /package/dist/{navigation-C5TN0SgC.js → navigation-By1sQl6M.js} +0 -0
package/dist/markdown/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "../
|
|
1
|
+
import { f as Resource, l as Method, r as DeclarationNode, u as Model } from "../index-Ct7H30x1.js";
|
|
2
|
+
import "../sdk-DwyhWkhn.js";
|
|
2
3
|
import { EnvironmentType } from "./utils.js";
|
|
3
4
|
import { t as printer_d_exports } from "./printer.js";
|
|
4
5
|
import { Node } from "@markdoc/markdoc";
|
|
5
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
6
6
|
|
|
7
7
|
//#region src/markdown/index.d.ts
|
|
8
|
-
declare function declaration(env: EnvironmentType, decl:
|
|
9
|
-
declare function render(env: EnvironmentType, node:
|
|
10
|
-
declare function renderMarkdown(env: EnvironmentType, node:
|
|
8
|
+
declare function declaration(env: EnvironmentType, decl: DeclarationNode): Node;
|
|
9
|
+
declare function render(env: EnvironmentType, node: Resource | Method | Model): Node[];
|
|
10
|
+
declare function renderMarkdown(env: EnvironmentType, node: Resource | Method | Model): string;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { declaration, printer_d_exports as printer, render, renderMarkdown };
|
package/dist/markdown/index.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import "../docs-
|
|
2
|
-
import "../component-generics-
|
|
3
|
-
import "../navigation-
|
|
4
|
-
import "../markdown-
|
|
5
|
-
import "../contexts-
|
|
6
|
-
import "../use-components-
|
|
7
|
-
import "../properties-
|
|
8
|
-
import "../method-
|
|
9
|
-
import "../primitives-
|
|
10
|
-
import "../icons-
|
|
11
|
-
import "../sdk-
|
|
12
|
-
import "../snippets-
|
|
13
|
-
import "../overview-
|
|
14
|
-
import "../breadcrumbs-
|
|
15
|
-
import "../sidebar-
|
|
16
|
-
import "../components-
|
|
17
|
-
import "../typescript-
|
|
18
|
-
import "../java-
|
|
19
|
-
import "../go-
|
|
20
|
-
import "../python-
|
|
21
|
-
import "../ruby-
|
|
22
|
-
import "../http-
|
|
23
|
-
import "../csharp-
|
|
24
|
-
import "../
|
|
25
|
-
import "../
|
|
1
|
+
import "../docs-Bw-eLYjA.js";
|
|
2
|
+
import "../component-generics-CmIGbBLq.js";
|
|
3
|
+
import "../navigation-By1sQl6M.js";
|
|
4
|
+
import "../markdown-ZzVcn4kq.js";
|
|
5
|
+
import "../contexts-DZfPd182.js";
|
|
6
|
+
import "../use-components-Dbin0y07.js";
|
|
7
|
+
import "../properties-BHvUHbcf.js";
|
|
8
|
+
import "../method-Dktsfckf.js";
|
|
9
|
+
import "../primitives-BVaiiY63.js";
|
|
10
|
+
import "../icons-DMkAA03z.js";
|
|
11
|
+
import "../sdk-DrK2bq-v.js";
|
|
12
|
+
import "../snippets-D4VhtZIC.js";
|
|
13
|
+
import "../overview-EkRigi6e.js";
|
|
14
|
+
import "../breadcrumbs-85Y-pybq.js";
|
|
15
|
+
import "../sidebar-BLGIKgRI.js";
|
|
16
|
+
import "../components-Bz5h0Y4x.js";
|
|
17
|
+
import "../typescript-DDa446mB.js";
|
|
18
|
+
import "../java-Bw0o13Wk.js";
|
|
19
|
+
import "../go-OFa_5xje.js";
|
|
20
|
+
import "../python-D8NWX7Cb.js";
|
|
21
|
+
import "../ruby-DOUaLhKJ.js";
|
|
22
|
+
import "../http-olFAYLFq.js";
|
|
23
|
+
import "../csharp-BbNnLZWW.js";
|
|
24
|
+
import "../cli-CoLvH9jq.js";
|
|
25
|
+
import "../languages-DW_T-Th6.js";
|
|
26
|
+
import "../component-CF9lLzZX.js";
|
|
26
27
|
import { code, fence, heading, item, list, paragraph, parse, strong, text } from "./md.js";
|
|
27
28
|
import { getDecl, getSnippet, stripMarkup } from "./utils.js";
|
|
28
29
|
import { declaration as declaration$1, methodSignature, t as printer_exports } from "./printer.js";
|
package/dist/markdown/md.js
CHANGED
|
@@ -12,8 +12,8 @@ function code(content) {
|
|
|
12
12
|
return new Markdoc.Ast.Node("code", { content });
|
|
13
13
|
}
|
|
14
14
|
function paragraph(...children) {
|
|
15
|
-
const inline
|
|
16
|
-
return new Markdoc.Ast.Node("paragraph", {}, [inline
|
|
15
|
+
const inline = new Markdoc.Ast.Node("inline", {}, children);
|
|
16
|
+
return new Markdoc.Ast.Node("paragraph", {}, [inline]);
|
|
17
17
|
}
|
|
18
18
|
function list(...children) {
|
|
19
19
|
return new Markdoc.Ast.Node("list", { ordered: false }, children);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { r as DeclarationNode, v as Type } from "../index-Ct7H30x1.js";
|
|
2
|
+
import { t as DocsLanguage } from "../routing-BifRCZt4.js";
|
|
3
3
|
|
|
4
4
|
//#region src/markdown/printer.d.ts
|
|
5
5
|
declare namespace printer_d_exports {
|
|
6
6
|
export { declaration, methodSignature, type, typeName };
|
|
7
7
|
}
|
|
8
|
-
declare function typeName(language: DocsLanguage, type:
|
|
9
|
-
declare function type(language: DocsLanguage, type:
|
|
10
|
-
declare function declaration(language: DocsLanguage, decl:
|
|
11
|
-
declare function methodSignature(language: DocsLanguage, decl:
|
|
8
|
+
declare function typeName(language: DocsLanguage, type: Type): string;
|
|
9
|
+
declare function type(language: DocsLanguage, type: Type): string;
|
|
10
|
+
declare function declaration(language: DocsLanguage, decl: DeclarationNode): string;
|
|
11
|
+
declare function methodSignature(language: DocsLanguage, decl: DeclarationNode): string;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { declaration, methodSignature, printer_d_exports as t, type, typeName };
|
package/dist/markdown/printer.js
CHANGED
|
@@ -1,30 +1,31 @@
|
|
|
1
|
-
import { t as __exportAll } from "../chunk-
|
|
2
|
-
import { t as DocsProvider } from "../docs-
|
|
3
|
-
import "../component-generics-
|
|
4
|
-
import "../navigation-
|
|
5
|
-
import "../markdown-
|
|
6
|
-
import { n as useLanguageComponents } from "../contexts-
|
|
7
|
-
import "../use-components-
|
|
8
|
-
import { t as style_default } from "../style-
|
|
9
|
-
import "../properties-
|
|
10
|
-
import "../method-
|
|
11
|
-
import "../primitives-
|
|
12
|
-
import "../icons-
|
|
13
|
-
import "../sdk-
|
|
14
|
-
import "../snippets-
|
|
15
|
-
import "../overview-
|
|
16
|
-
import "../breadcrumbs-
|
|
17
|
-
import "../sidebar-
|
|
18
|
-
import "../components-
|
|
19
|
-
import "../typescript-
|
|
20
|
-
import "../java-
|
|
21
|
-
import "../go-
|
|
22
|
-
import "../python-
|
|
23
|
-
import "../ruby-
|
|
24
|
-
import "../http-
|
|
25
|
-
import "../csharp-
|
|
26
|
-
import "../
|
|
27
|
-
import
|
|
1
|
+
import { t as __exportAll } from "../chunk-Du3t87LU.js";
|
|
2
|
+
import { t as DocsProvider } from "../docs-Bw-eLYjA.js";
|
|
3
|
+
import "../component-generics-CmIGbBLq.js";
|
|
4
|
+
import "../navigation-By1sQl6M.js";
|
|
5
|
+
import "../markdown-ZzVcn4kq.js";
|
|
6
|
+
import { n as useLanguageComponents } from "../contexts-DZfPd182.js";
|
|
7
|
+
import "../use-components-Dbin0y07.js";
|
|
8
|
+
import { t as style_default } from "../style-TeAZuiHh.js";
|
|
9
|
+
import "../properties-BHvUHbcf.js";
|
|
10
|
+
import "../method-Dktsfckf.js";
|
|
11
|
+
import "../primitives-BVaiiY63.js";
|
|
12
|
+
import "../icons-DMkAA03z.js";
|
|
13
|
+
import "../sdk-DrK2bq-v.js";
|
|
14
|
+
import "../snippets-D4VhtZIC.js";
|
|
15
|
+
import "../overview-EkRigi6e.js";
|
|
16
|
+
import "../breadcrumbs-85Y-pybq.js";
|
|
17
|
+
import "../sidebar-BLGIKgRI.js";
|
|
18
|
+
import "../components-Bz5h0Y4x.js";
|
|
19
|
+
import "../typescript-DDa446mB.js";
|
|
20
|
+
import "../java-Bw0o13Wk.js";
|
|
21
|
+
import "../go-OFa_5xje.js";
|
|
22
|
+
import "../python-D8NWX7Cb.js";
|
|
23
|
+
import "../ruby-DOUaLhKJ.js";
|
|
24
|
+
import "../http-olFAYLFq.js";
|
|
25
|
+
import "../csharp-BbNnLZWW.js";
|
|
26
|
+
import "../cli-CoLvH9jq.js";
|
|
27
|
+
import "../languages-DW_T-Th6.js";
|
|
28
|
+
import { t as ComponentProvider } from "../component-CF9lLzZX.js";
|
|
28
29
|
import "react";
|
|
29
30
|
import { jsx } from "react/jsx-runtime";
|
|
30
31
|
import { renderToStaticMarkup } from "react-dom/server";
|
|
@@ -36,37 +37,38 @@ var printer_exports = /* @__PURE__ */ __exportAll({
|
|
|
36
37
|
type: () => type,
|
|
37
38
|
typeName: () => typeName
|
|
38
39
|
});
|
|
40
|
+
function SDKReference({ stainlessPath, children }) {
|
|
41
|
+
if (!stainlessPath) return children;
|
|
42
|
+
return /* @__PURE__ */ jsx("span", {
|
|
43
|
+
className: style_default.TypeReference,
|
|
44
|
+
children
|
|
45
|
+
});
|
|
46
|
+
}
|
|
39
47
|
function Providers({ language, children }) {
|
|
40
48
|
return /* @__PURE__ */ jsx(DocsProvider, {
|
|
41
49
|
spec: null,
|
|
42
50
|
language,
|
|
43
51
|
children: /* @__PURE__ */ jsx(ComponentProvider, {
|
|
44
|
-
components: { SDKReference
|
|
45
|
-
if (!stainlessPath) return children$1;
|
|
46
|
-
return /* @__PURE__ */ jsx("span", {
|
|
47
|
-
className: style_default.TypeReference,
|
|
48
|
-
children: children$1
|
|
49
|
-
});
|
|
50
|
-
} },
|
|
52
|
+
components: { SDKReference },
|
|
51
53
|
children
|
|
52
54
|
})
|
|
53
55
|
});
|
|
54
56
|
}
|
|
55
|
-
function RenderType({ type
|
|
57
|
+
function RenderType({ type, full }) {
|
|
56
58
|
const { Type, TypeName } = useLanguageComponents();
|
|
57
|
-
return full ? /* @__PURE__ */ jsx(Type, { type
|
|
59
|
+
return full ? /* @__PURE__ */ jsx(Type, { type }) : /* @__PURE__ */ jsx(TypeName, { type });
|
|
58
60
|
}
|
|
59
|
-
function typeName(language, type
|
|
61
|
+
function typeName(language, type) {
|
|
60
62
|
return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
|
|
61
63
|
language,
|
|
62
|
-
children: /* @__PURE__ */ jsx(RenderType, { type
|
|
64
|
+
children: /* @__PURE__ */ jsx(RenderType, { type })
|
|
63
65
|
}));
|
|
64
66
|
}
|
|
65
|
-
function type(language, type
|
|
67
|
+
function type(language, type) {
|
|
66
68
|
return renderToStaticMarkup(/* @__PURE__ */ jsx(Providers, {
|
|
67
69
|
language,
|
|
68
70
|
children: /* @__PURE__ */ jsx(RenderType, {
|
|
69
|
-
type
|
|
71
|
+
type,
|
|
70
72
|
full: true
|
|
71
73
|
})
|
|
72
74
|
}));
|
package/dist/markdown/utils.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { c as LanguageDeclNodes, g as SpecLanguage, h as Spec } from "../index-Ct7H30x1.js";
|
|
2
|
+
import { t as DocsLanguage } from "../routing-BifRCZt4.js";
|
|
3
|
+
import { C as TransformRequestSnippetFn } from "../sdk-DwyhWkhn.js";
|
|
4
4
|
|
|
5
5
|
//#region src/markdown/utils.d.ts
|
|
6
6
|
type EnvironmentType = {
|
|
7
|
-
spec:
|
|
7
|
+
spec: Spec;
|
|
8
8
|
language: DocsLanguage;
|
|
9
9
|
transforms?: {
|
|
10
10
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
@@ -14,7 +14,7 @@ type EnvironmentType = {
|
|
|
14
14
|
includeModelProperties?: boolean;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
declare function getDecl(env: EnvironmentType, path: string):
|
|
17
|
+
declare function getDecl(env: EnvironmentType, path: string): LanguageDeclNodes[SpecLanguage] | undefined;
|
|
18
18
|
declare function getSnippet(env: EnvironmentType, path: string): string | undefined;
|
|
19
19
|
declare function stripMarkup(content: string): string;
|
|
20
20
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime72 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/contexts/markdown.d.ts
|
|
5
5
|
type MarkdownContext = {
|
|
@@ -17,6 +17,6 @@ declare function MarkdownProvider({
|
|
|
17
17
|
render,
|
|
18
18
|
highlight,
|
|
19
19
|
children
|
|
20
|
-
}: MarkdownProviderProps):
|
|
20
|
+
}: MarkdownProviderProps): react_jsx_runtime72.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { useMarkdownContext as a, useHighlight as i, MarkdownProvider as n, useRenderMarkdown as o, MarkdownProviderProps as r, MarkdownContext as t };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { a as useLanguage } from "./docs-
|
|
1
|
+
import { a as useLanguage } from "./docs-Bw-eLYjA.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/contexts/markdown.tsx
|
|
6
6
|
const HighlightLanguageMappings = {
|
|
7
7
|
node: "typescript",
|
|
8
|
-
http: "bash"
|
|
8
|
+
http: "bash",
|
|
9
|
+
cli: "bash"
|
|
9
10
|
};
|
|
10
11
|
const MarkdownContext = React$1.createContext({
|
|
11
12
|
highlight: (content) => content,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/method.d.ts
|
|
6
6
|
type MethodHeaderProps = {
|
|
@@ -16,7 +16,7 @@ declare function MethodHeader({
|
|
|
16
16
|
signature,
|
|
17
17
|
children,
|
|
18
18
|
level
|
|
19
|
-
}: MethodHeaderProps):
|
|
19
|
+
}: MethodHeaderProps): react_jsx_runtime25.JSX.Element;
|
|
20
20
|
type MethodRouteProps = {
|
|
21
21
|
httpMethod?: string;
|
|
22
22
|
endpoint?: string | ReactNode;
|
|
@@ -26,13 +26,13 @@ declare function MethodRoute({
|
|
|
26
26
|
httpMethod,
|
|
27
27
|
endpoint,
|
|
28
28
|
iconOnly
|
|
29
|
-
}: MethodRouteProps):
|
|
29
|
+
}: MethodRouteProps): react_jsx_runtime25.JSX.Element;
|
|
30
30
|
type MethodDescriptionProps = {
|
|
31
31
|
description?: string;
|
|
32
32
|
};
|
|
33
33
|
declare function MethodDescription({
|
|
34
34
|
description
|
|
35
|
-
}: MethodDescriptionProps):
|
|
35
|
+
}: MethodDescriptionProps): react_jsx_runtime25.JSX.Element | undefined;
|
|
36
36
|
type MethodInfoProps = {
|
|
37
37
|
children?: ReactNode;
|
|
38
38
|
parameters?: ReactNode;
|
|
@@ -42,7 +42,7 @@ declare function MethodInfo({
|
|
|
42
42
|
children,
|
|
43
43
|
parameters,
|
|
44
44
|
returns
|
|
45
|
-
}: MethodInfoProps):
|
|
45
|
+
}: MethodInfoProps): react_jsx_runtime25.JSX.Element;
|
|
46
46
|
type MethodProps = {
|
|
47
47
|
id?: string;
|
|
48
48
|
header?: ReactNode;
|
|
@@ -54,6 +54,6 @@ declare function Method({
|
|
|
54
54
|
children,
|
|
55
55
|
className,
|
|
56
56
|
...props
|
|
57
|
-
}: MethodProps):
|
|
57
|
+
}: MethodProps): react_jsx_runtime25.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { MethodHeaderProps as a, MethodProps as c, MethodHeader as i, MethodRoute as l, MethodDescription as n, MethodInfo as o, MethodDescriptionProps as r, MethodInfoProps as s, Method as t, MethodRouteProps as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as useComponents } from "./use-components-
|
|
2
|
-
import { t as style_default } from "./style-
|
|
3
|
-
import { i as PropertyToggle } from "./properties-
|
|
1
|
+
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
2
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
3
|
+
import { i as PropertyToggle } from "./properties-BHvUHbcf.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import clsx from "clsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-BifRCZt4.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/contexts/navigation.d.ts
|
|
6
6
|
type NavigationHandler = (ev: React$1.MouseEvent | null, opts: {
|
|
@@ -24,6 +24,6 @@ declare function NavigationProvider({
|
|
|
24
24
|
selectedPath,
|
|
25
25
|
onNavigate,
|
|
26
26
|
children
|
|
27
|
-
}: NavigationProviderProps):
|
|
27
|
+
}: NavigationProviderProps): react_jsx_runtime0.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
1
|
+
import { f as Resource, l as Method } from "./index-Ct7H30x1.js";
|
|
2
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/overview.d.ts
|
|
5
5
|
type SDKResourceProps = {
|
|
6
|
-
resource:
|
|
7
|
-
parents?:
|
|
6
|
+
resource: Resource;
|
|
7
|
+
parents?: Resource[];
|
|
8
8
|
};
|
|
9
9
|
declare function SDKResourceHeader({
|
|
10
10
|
resource,
|
|
11
11
|
parents
|
|
12
|
-
}: SDKResourceProps):
|
|
12
|
+
}: SDKResourceProps): react_jsx_runtime30.JSX.Element | null;
|
|
13
13
|
type SDKMethodSummaryProps = {
|
|
14
|
-
method:
|
|
14
|
+
method: Method;
|
|
15
15
|
};
|
|
16
16
|
declare function SDKMethodSummary({
|
|
17
17
|
method
|
|
18
|
-
}: SDKMethodSummaryProps):
|
|
18
|
+
}: SDKMethodSummaryProps): react_jsx_runtime30.JSX.Element;
|
|
19
19
|
declare function SDKResource({
|
|
20
20
|
resource,
|
|
21
21
|
parents,
|
|
22
22
|
showModels
|
|
23
23
|
}: SDKResourceProps & {
|
|
24
24
|
showModels?: boolean;
|
|
25
|
-
}):
|
|
25
|
+
}): react_jsx_runtime30.JSX.Element;
|
|
26
26
|
type SDKOverviewProps = {
|
|
27
|
-
resource:
|
|
27
|
+
resource: Resource;
|
|
28
28
|
};
|
|
29
29
|
declare function SDKOverview({
|
|
30
30
|
resource
|
|
31
|
-
}: SDKOverviewProps):
|
|
31
|
+
}: SDKOverviewProps): react_jsx_runtime30.JSX.Element;
|
|
32
32
|
type SDKRootProps = {
|
|
33
33
|
stainlessPath: string;
|
|
34
34
|
};
|
|
35
35
|
declare function SDKRoot({
|
|
36
36
|
stainlessPath
|
|
37
|
-
}: SDKRootProps):
|
|
37
|
+
}: SDKRootProps): react_jsx_runtime30.JSX.Element | null;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { SDKResource as a, SDKRoot as c, SDKOverviewProps as i, SDKRootProps as l, SDKMethodSummaryProps as n, SDKResourceHeader as o, SDKOverview as r, SDKResourceProps as s, SDKMethodSummary as t };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-
|
|
2
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
3
|
-
import { t as useComponents } from "./use-components-
|
|
4
|
-
import { t as style_default } from "./style-
|
|
5
|
-
import { i as PropertyToggle } from "./properties-
|
|
6
|
-
import { f as parseStainlessPath } from "./routing-
|
|
7
|
-
import { s as Markdown } from "./primitives-
|
|
8
|
-
import { n as getResourceFromSpec, t as flatResources } from "./utils-
|
|
1
|
+
import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-Bw-eLYjA.js";
|
|
2
|
+
import { n as useLanguageComponents } from "./contexts-DZfPd182.js";
|
|
3
|
+
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
4
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
5
|
+
import { i as PropertyToggle } from "./properties-BHvUHbcf.js";
|
|
6
|
+
import { f as parseStainlessPath } from "./routing-Fzn1XfX_.js";
|
|
7
|
+
import { s as Markdown } from "./primitives-BVaiiY63.js";
|
|
8
|
+
import { n as getResourceFromSpec, t as flatResources } from "./utils-BoRmEFRn.js";
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { createElement } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -92,7 +92,7 @@ function SDKResource({ resource, parents, showModels }) {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
function SDKOverview({ resource }) {
|
|
95
|
-
const { SDKResource
|
|
95
|
+
const { SDKResource } = useComponents();
|
|
96
96
|
const nested = React$1.useMemo(() => flatResources(resource.subresources, [resource]), [resource]);
|
|
97
97
|
return /* @__PURE__ */ jsxs("div", {
|
|
98
98
|
className: style_default.Overview,
|
|
@@ -101,8 +101,8 @@ function SDKOverview({ resource }) {
|
|
|
101
101
|
className: style_default.OverviewHeader,
|
|
102
102
|
children: /* @__PURE__ */ jsx("h1", { children: resource.title })
|
|
103
103
|
}),
|
|
104
|
-
/* @__PURE__ */ jsx(SDKResource
|
|
105
|
-
nested.map((props, index) => /* @__PURE__ */ createElement(SDKResource
|
|
104
|
+
/* @__PURE__ */ jsx(SDKResource, { resource }),
|
|
105
|
+
nested.map((props, index) => /* @__PURE__ */ createElement(SDKResource, {
|
|
106
106
|
...props,
|
|
107
107
|
key: index
|
|
108
108
|
}))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as useLanguage, s as useSettings } from "./docs-
|
|
2
|
-
import { n as useNavigation } from "./navigation-
|
|
3
|
-
import { a as useRenderMarkdown } from "./markdown-
|
|
4
|
-
import { t as style_default } from "./style-
|
|
5
|
-
import { o as generateRoute } from "./routing-
|
|
1
|
+
import { a as useLanguage, s as useSettings } from "./docs-Bw-eLYjA.js";
|
|
2
|
+
import { n as useNavigation } from "./navigation-By1sQl6M.js";
|
|
3
|
+
import { a as useRenderMarkdown } from "./markdown-ZzVcn4kq.js";
|
|
4
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
5
|
+
import { o as generateRoute } from "./routing-Fzn1XfX_.js";
|
|
6
6
|
import { Fragment, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import clsx from "clsx";
|
|
@@ -151,9 +151,9 @@ function Link({ stainlessPath, scroll = true, children, ...props }) {
|
|
|
151
151
|
children
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
function Input({ left, right, ref, ...props }) {
|
|
154
|
+
function Input({ left, right, ref, className, ...props }) {
|
|
155
155
|
return /* @__PURE__ */ jsxs("div", {
|
|
156
|
-
className: clsx(style_default.Input, props.disabled && style_default.InputDisabled),
|
|
156
|
+
className: clsx(style_default.Input, props.disabled && style_default.InputDisabled, className),
|
|
157
157
|
children: [
|
|
158
158
|
left,
|
|
159
159
|
/* @__PURE__ */ jsx("input", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react0 from "react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/primitives.d.ts
|
|
6
6
|
type JoinProps = {
|
|
@@ -12,7 +12,7 @@ declare function Join({
|
|
|
12
12
|
items,
|
|
13
13
|
limit,
|
|
14
14
|
children
|
|
15
|
-
}: JoinProps):
|
|
15
|
+
}: JoinProps): react_jsx_runtime35.JSX.Element[];
|
|
16
16
|
type ExpanderProps = {
|
|
17
17
|
id?: string;
|
|
18
18
|
open?: boolean;
|
|
@@ -28,19 +28,19 @@ declare function Expander({
|
|
|
28
28
|
virtual,
|
|
29
29
|
muted,
|
|
30
30
|
children
|
|
31
|
-
}: ExpanderProps):
|
|
31
|
+
}: ExpanderProps): react_jsx_runtime35.JSX.Element;
|
|
32
32
|
declare function VirtualExpander({
|
|
33
33
|
id,
|
|
34
34
|
open: isOpen,
|
|
35
35
|
muted,
|
|
36
36
|
summary,
|
|
37
37
|
children
|
|
38
|
-
}: Omit<ExpanderProps, 'virtual'>):
|
|
38
|
+
}: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime35.JSX.Element;
|
|
39
39
|
declare function Markdown({
|
|
40
40
|
content
|
|
41
41
|
}: {
|
|
42
42
|
content: string;
|
|
43
|
-
}): "" |
|
|
43
|
+
}): "" | react_jsx_runtime35.JSX.Element | undefined;
|
|
44
44
|
type BadgeProps = {
|
|
45
45
|
id: string;
|
|
46
46
|
children?: ReactNode;
|
|
@@ -48,7 +48,7 @@ type BadgeProps = {
|
|
|
48
48
|
declare function Badge({
|
|
49
49
|
id,
|
|
50
50
|
children
|
|
51
|
-
}: BadgeProps):
|
|
51
|
+
}: BadgeProps): react_jsx_runtime35.JSX.Element;
|
|
52
52
|
type TooltipProps = {
|
|
53
53
|
content: ReactNode;
|
|
54
54
|
children: ReactNode;
|
|
@@ -56,7 +56,7 @@ type TooltipProps = {
|
|
|
56
56
|
declare function Tooltip({
|
|
57
57
|
content,
|
|
58
58
|
children
|
|
59
|
-
}: TooltipProps): string | number | bigint | boolean |
|
|
59
|
+
}: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime35.JSX.Element | null | undefined;
|
|
60
60
|
type LinkProps = {
|
|
61
61
|
stainlessPath: string;
|
|
62
62
|
scroll?: boolean;
|
|
@@ -67,7 +67,7 @@ declare function Link({
|
|
|
67
67
|
scroll,
|
|
68
68
|
children,
|
|
69
69
|
...props
|
|
70
|
-
}: LinkProps): string | number | bigint | boolean |
|
|
70
|
+
}: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime35.JSX.Element | null | undefined;
|
|
71
71
|
type InputProps = {
|
|
72
72
|
left?: ReactNode;
|
|
73
73
|
right?: ReactNode;
|
|
@@ -77,8 +77,9 @@ declare function Input({
|
|
|
77
77
|
left,
|
|
78
78
|
right,
|
|
79
79
|
ref,
|
|
80
|
+
className,
|
|
80
81
|
...props
|
|
81
|
-
}: InputProps):
|
|
82
|
+
}: InputProps): react_jsx_runtime35.JSX.Element;
|
|
82
83
|
type ToggleButtonProps = {
|
|
83
84
|
children?: ReactNode;
|
|
84
85
|
selected?: boolean;
|
|
@@ -88,7 +89,7 @@ declare function ToggleButton({
|
|
|
88
89
|
selected,
|
|
89
90
|
ref,
|
|
90
91
|
...props
|
|
91
|
-
}: ToggleButtonProps):
|
|
92
|
+
}: ToggleButtonProps): react_jsx_runtime35.JSX.Element;
|
|
92
93
|
type ListViewProps<TItem> = {
|
|
93
94
|
items: Array<TItem>;
|
|
94
95
|
itemDelegate: (item: TItem, selected: boolean) => React.ReactNode;
|
|
@@ -99,6 +100,6 @@ declare function ListView<TItem>({
|
|
|
99
100
|
itemDelegate,
|
|
100
101
|
onSelectListItem,
|
|
101
102
|
...rest
|
|
102
|
-
}: ListViewProps<TItem>):
|
|
103
|
+
}: ListViewProps<TItem>): react_jsx_runtime35.JSX.Element;
|
|
103
104
|
//#endregion
|
|
104
105
|
export { Join as a, ListViewProps as c, ToggleButtonProps as d, Tooltip as f, InputProps as i, Markdown as l, Expander as n, Link as o, VirtualExpander as p, Input as r, ListView as s, Badge as t, ToggleButton as u };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as useLanguage, s as useSettings } from "./docs-
|
|
2
|
-
import { t as useComponents } from "./use-components-
|
|
3
|
-
import { t as style_default } from "./style-
|
|
1
|
+
import { a as useLanguage, s as useSettings } from "./docs-Bw-eLYjA.js";
|
|
2
|
+
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
3
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ArrowDownWideNarrowIcon, ArrowUpNarrowWideIcon } from "lucide-react";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime45 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/properties.d.ts
|
|
5
5
|
type PropertyToggleProps = {
|
|
@@ -7,19 +7,19 @@ type PropertyToggleProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare function PropertyToggle({
|
|
9
9
|
target
|
|
10
|
-
}: PropertyToggleProps):
|
|
10
|
+
}: PropertyToggleProps): react_jsx_runtime45.JSX.Element;
|
|
11
11
|
type PropertyDescriptionProps = {
|
|
12
12
|
description?: string;
|
|
13
13
|
};
|
|
14
14
|
declare function PropertyDescription({
|
|
15
15
|
description
|
|
16
|
-
}: PropertyDescriptionProps):
|
|
16
|
+
}: PropertyDescriptionProps): react_jsx_runtime45.JSX.Element | undefined;
|
|
17
17
|
type PropertyTitleProps = {
|
|
18
18
|
title?: string;
|
|
19
19
|
};
|
|
20
20
|
declare function PropertyTitle({
|
|
21
21
|
title
|
|
22
|
-
}: PropertyTitleProps):
|
|
22
|
+
}: PropertyTitleProps): react_jsx_runtime45.JSX.Element | undefined;
|
|
23
23
|
type PropertyProps = {
|
|
24
24
|
id?: string;
|
|
25
25
|
name?: ReactNode;
|
|
@@ -49,6 +49,6 @@ declare function Property({
|
|
|
49
49
|
additional,
|
|
50
50
|
constraints,
|
|
51
51
|
children
|
|
52
|
-
}: PropertyProps):
|
|
52
|
+
}: PropertyProps): react_jsx_runtime45.JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { PropertyTitle as a, PropertyToggleProps as c, PropertyProps as i, PropertyDescription as n, PropertyTitleProps as o, PropertyDescriptionProps as r, PropertyToggle as s, Property as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
3
|
-
import { t as useComponents } from "./use-components-
|
|
4
|
-
import { t as style_default } from "./style-
|
|
1
|
+
import { t as __exportAll } from "./chunk-Du3t87LU.js";
|
|
2
|
+
import { n as useLanguageComponents } from "./contexts-DZfPd182.js";
|
|
3
|
+
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
4
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|