@stainless-api/docs-ui 0.1.0-beta.61 → 0.1.0-beta.63
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-BVskoBYz.d.ts → breadcrumbs-CpdCGzeH.d.ts} +3 -3
- package/dist/{breadcrumbs-C9LLJyuJ.d.ts → breadcrumbs-DwldC63b.d.ts} +3 -3
- package/dist/{breadcrumbs-CqA6kow2.js → breadcrumbs-hzZqGExJ.js} +3 -3
- package/dist/{cli-0bJ66S1r.js → cli-BAhN1pvm.js} +3 -3
- package/dist/{component-CjJJYIxG.js → component-Bf-__z99.js} +2 -2
- package/dist/{component-generics-BkwbbxJF.d.ts → component-generics-Bs9VsgxB.d.ts} +2 -2
- package/dist/{component-generics-BC_P155r.d.ts → component-generics-uYXTXWFi.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +5 -5
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +11 -10
- package/dist/components/index.js +14 -13
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +5 -5
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +6 -6
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +4 -4
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +4 -4
- package/dist/components/sdk-sidebar.d.ts +2 -0
- package/dist/components/sdk-sidebar.js +10 -0
- package/dist/components/sdk.d.ts +2 -2
- package/dist/components/sdk.js +5 -5
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +4 -4
- package/dist/components/stl-sidebar.d.ts +2 -0
- package/dist/components/stl-sidebar.js +5 -0
- package/dist/{components-FEHnQBJC.js → components-CwIKWfid.js} +14 -13
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +11 -10
- package/dist/contexts/component.d.ts +12 -11
- package/dist/contexts/component.js +23 -22
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +2 -2
- package/dist/contexts/index.d.ts +17 -16
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +10 -9
- package/dist/{contexts-CeV_L_Iy.js → contexts-DMjqoc7S.js} +3 -2
- package/dist/{csharp-Dl2RIiYP.js → csharp-BD37FKH6.js} +2 -2
- package/dist/{docs-Di94viZV.js → docs-6PYi1eEV.js} +5 -1
- package/dist/{docs--qWFuJCM.d.ts → docs-Chc8A7zc.d.ts} +6 -5
- package/dist/{docs-DSFRsmbQ.d.ts → docs-FJV1-6V2.d.ts} +5 -4
- package/dist/{go-DuKdRGqU.js → go-v-i4WDzK.js} +2 -2
- package/dist/{http-C7bu4oCl.js → http-BKoVLcpv.js} +10 -6
- package/dist/{index-FDM-j9s-.d.ts → index-C9bUFWfw.d.ts} +35 -35
- package/dist/{index-zNpvNvtN.d.ts → index-DuHyTVVD.d.ts} +1 -1
- package/dist/index-Dz6SFEud.d.ts +16 -0
- package/dist/{index-DE1vA8T2.d.ts → index-WHKRwqwo.d.ts} +35 -35
- package/dist/index-_wZU78e1.d.ts +16 -0
- package/dist/index.d.ts +16 -15
- package/dist/index.js +25 -24
- package/dist/{java-DSyzO-6F.js → java-A6j1NMJ7.js} +3 -3
- package/dist/languages/cli.d.ts +11 -10
- package/dist/languages/cli.js +15 -14
- package/dist/languages/csharp.d.ts +11 -10
- package/dist/languages/csharp.js +4 -4
- package/dist/languages/go.d.ts +11 -10
- package/dist/languages/go.js +4 -4
- package/dist/languages/http.d.ts +11 -10
- package/dist/languages/http.js +14 -13
- package/dist/languages/index.d.ts +11 -10
- package/dist/languages/index.js +22 -21
- package/dist/languages/java.d.ts +11 -10
- package/dist/languages/java.js +4 -4
- package/dist/languages/python.d.ts +11 -10
- package/dist/languages/python.js +4 -4
- package/dist/languages/ruby.d.ts +11 -10
- package/dist/languages/ruby.js +4 -4
- package/dist/languages/typescript.d.ts +11 -10
- package/dist/languages/typescript.js +4 -4
- package/dist/languages-BPVYg1lj.js +28 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +23 -22
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +24 -23
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/{markdown-C7Tb41LZ.d.ts → markdown-CoIy7fea.d.ts} +2 -2
- package/dist/{markdown-D2JWyRws.js → markdown-DHjcD13O.js} +1 -1
- package/dist/{markdown-B517MrZh.d.ts → markdown-IA9nH38V.d.ts} +2 -2
- package/dist/{method-BaQEZVlw.d.ts → method-Bt3V4B4q.d.ts} +6 -6
- package/dist/{method-Dln4ZTIB.d.ts → method-CZDrcjKP.d.ts} +6 -6
- package/dist/{method-jTnA0G8m.js → method-mosT_h9v.js} +2 -2
- package/dist/{navigation-XhIgqXwM.d.ts → navigation-CHVw_t5x.d.ts} +3 -3
- package/dist/{navigation-rKdts-BR.d.ts → navigation-CIQImbWI.d.ts} +3 -3
- package/dist/{overview-B3kgyac2.d.ts → overview-9J_EJ4Uv.d.ts} +7 -7
- package/dist/{overview-Dp-gGl3v.d.ts → overview-DVklHrbY.d.ts} +7 -7
- package/dist/{overview-BnagZfH1.js → overview-dG8i3EyZ.js} +7 -7
- package/dist/{primitives-DQLc9kN7.js → primitives-B6nufz49.js} +5 -5
- package/dist/{primitives-B6zu2rrx.d.ts → primitives-BkenBSev.d.ts} +12 -12
- package/dist/{primitives-VtUGoYwX.d.ts → primitives-Bmr19wBU.d.ts} +12 -12
- package/dist/{properties-DGL2J11L.js → properties-4w8hy0hf.js} +2 -2
- package/dist/{properties-Bun4nfUE.d.ts → properties-Dx6tQNus.d.ts} +5 -5
- package/dist/{properties-ZOIqpkET.d.ts → properties-NrkX1jGk.d.ts} +5 -5
- package/dist/{python-D8ABqtn1.js → python-CtQJaLw5.js} +2 -2
- package/dist/{routing-Ce0_tBW6.js → routing-CLgL--x1.js} +6 -1
- package/dist/{routing-CtbZJru_.d.ts → routing-CqnhQY4G.d.ts} +10 -3
- package/dist/routing.d.ts +2 -2
- package/dist/routing.js +2 -2
- package/dist/{ruby-261jvCjl.js → ruby-DJqEHgOw.js} +3 -3
- package/dist/{sdk-BebFnWYL.d.ts → sdk-BDzHdl2y.d.ts} +20 -16
- package/dist/{sdk-GGpyGTao.js → sdk-afI6c7Wd.js} +43 -13
- package/dist/{sdk-CIxaNoAs.d.ts → sdk-hDAzjotL.d.ts} +20 -16
- package/dist/sdk-sidebar-ByMsvpUm.d.ts +15 -0
- package/dist/sdk-sidebar-CoVgP38f.d.ts +15 -0
- package/dist/sdk-sidebar-ZaXTw63C.js +36 -0
- package/dist/{snippets-CwVjwsAo.d.ts → snippets-BqKFOZfY.d.ts} +9 -9
- package/dist/{snippets-Ym3mnHO3.d.ts → snippets-Dfd3zU_j.d.ts} +9 -9
- package/dist/{snippets-kI8eNs1F.js → snippets-bh8lfniq.js} +3 -3
- package/dist/spec.d.ts +2 -2
- package/dist/spec.js +2 -2
- package/dist/stl-sidebar-D6OGr1Gl.d.ts +45 -0
- package/dist/stl-sidebar-DdxZx2KK.js +82 -0
- package/dist/stl-sidebar-nQWQbRVM.d.ts +45 -0
- package/dist/{style-LwfvXElj.js → style-Bxr5gqcM.js} +4 -4
- package/dist/style.d.ts +4 -4
- package/dist/style.js +1 -1
- package/dist/styles/primitives.css +6 -0
- package/dist/styles/resets.css +1 -1
- package/dist/styles/sidebar.css +219 -49
- package/dist/styles.css +226 -50
- package/dist/{typescript-D924WidI.js → typescript-DA7mcN1t.js} +3 -3
- package/dist/{utils-D01mAUfQ.js → utils-36jzmKxv.js} +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/components/sidebar.d.ts +0 -2
- package/dist/components/sidebar.js +0 -9
- package/dist/index-C0qvL4yP.d.ts +0 -15
- package/dist/index-DsFyACw9.d.ts +0 -15
- package/dist/languages-BO5YJ6cy.js +0 -28
- package/dist/sidebar-BWno0E4w.js +0 -85
- package/dist/sidebar-CLsIJZZf.d.ts +0 -36
- package/dist/sidebar-D4m_pVpS.d.ts +0 -36
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "../sidebar-CLsIJZZf.js";
|
|
2
|
-
export { Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "../docs-Di94viZV.js";
|
|
2
|
-
import "../component-generics-POFirVVb.js";
|
|
3
|
-
import "../navigation-aoYZ_tl4.js";
|
|
4
|
-
import "../markdown-D2JWyRws.js";
|
|
5
|
-
import "../contexts-CeV_L_Iy.js";
|
|
6
|
-
import "../use-components-BUz3GbO4.js";
|
|
7
|
-
import { i as SidebarResource, n as SidebarExpander, r as SidebarMethod, t as Sidebar } from "../sidebar-BWno0E4w.js";
|
|
8
|
-
|
|
9
|
-
export { Sidebar, SidebarExpander, SidebarMethod, SidebarResource };
|
package/dist/index-C0qvL4yP.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "./primitives-B6zu2rrx.js";
|
|
2
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-C9LLJyuJ.js";
|
|
3
|
-
import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "./method-Dln4ZTIB.js";
|
|
4
|
-
import { a as PropertyTitle, c as PropertyToggleProps, i as PropertyProps, n as PropertyDescription, o as PropertyTitleProps, r as PropertyDescriptionProps, s as PropertyToggle, t as Property } from "./properties-ZOIqpkET.js";
|
|
5
|
-
import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "./sdk-BebFnWYL.js";
|
|
6
|
-
import { a as SnippetContainer, c as SnippetProps, d as SnippetResponse, i as SnippetCodeProps, l as SnippetRequestContainer, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetFooter, t as Snippet, u as SnippetRequestContainerProps } from "./snippets-Ym3mnHO3.js";
|
|
7
|
-
import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "./overview-B3kgyac2.js";
|
|
8
|
-
import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "./sidebar-D4m_pVpS.js";
|
|
9
|
-
|
|
10
|
-
//#region src/components/index.d.ts
|
|
11
|
-
declare namespace index_d_exports {
|
|
12
|
-
export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting };
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { index_d_exports as t };
|
package/dist/index-DsFyACw9.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "./primitives-VtUGoYwX.js";
|
|
2
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-BVskoBYz.js";
|
|
3
|
-
import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "./method-BaQEZVlw.js";
|
|
4
|
-
import { a as PropertyTitle, c as PropertyToggleProps, i as PropertyProps, n as PropertyDescription, o as PropertyTitleProps, r as PropertyDescriptionProps, s as PropertyToggle, t as Property } from "./properties-Bun4nfUE.js";
|
|
5
|
-
import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "./sdk-CIxaNoAs.js";
|
|
6
|
-
import { a as SnippetContainer, c as SnippetProps, d as SnippetResponse, i as SnippetCodeProps, l as SnippetRequestContainer, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetFooter, t as Snippet, u as SnippetRequestContainerProps } from "./snippets-CwVjwsAo.js";
|
|
7
|
-
import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "./overview-Dp-gGl3v.js";
|
|
8
|
-
import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "./sidebar-CLsIJZZf.js";
|
|
9
|
-
|
|
10
|
-
//#region src/components/index.d.ts
|
|
11
|
-
declare namespace index_d_exports {
|
|
12
|
-
export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting };
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { index_d_exports as t };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { o as typescript_exports } from "./typescript-D924WidI.js";
|
|
3
|
-
import { o as java_exports } from "./java-DSyzO-6F.js";
|
|
4
|
-
import { o as go_exports } from "./go-DuKdRGqU.js";
|
|
5
|
-
import { o as python_exports } from "./python-D8ABqtn1.js";
|
|
6
|
-
import { o as ruby_exports } from "./ruby-261jvCjl.js";
|
|
7
|
-
import { s as http_exports } from "./http-C7bu4oCl.js";
|
|
8
|
-
import { o as csharp_exports } from "./csharp-Dl2RIiYP.js";
|
|
9
|
-
import { o as cli_exports } from "./cli-0bJ66S1r.js";
|
|
10
|
-
|
|
11
|
-
//#region src/languages/index.ts
|
|
12
|
-
var languages_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
-
cli: () => cli_exports,
|
|
14
|
-
csharp: () => csharp_exports,
|
|
15
|
-
go: () => go_exports,
|
|
16
|
-
http: () => http_exports,
|
|
17
|
-
java: () => java_exports,
|
|
18
|
-
kotlin: () => kotlin,
|
|
19
|
-
node: () => node,
|
|
20
|
-
python: () => python_exports,
|
|
21
|
-
ruby: () => ruby_exports,
|
|
22
|
-
typescript: () => typescript_exports
|
|
23
|
-
});
|
|
24
|
-
const node = typescript_exports;
|
|
25
|
-
const kotlin = java_exports;
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { languages_exports as n, node as r, kotlin as t };
|
package/dist/sidebar-BWno0E4w.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
|
|
2
|
-
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
3
|
-
import { t as style_default } from "./style-LwfvXElj.js";
|
|
4
|
-
import { r as isResourceEmpty } from "./utils-D01mAUfQ.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
8
|
-
import { Badge, getHttpMethod } from "@stainless-api/ui-primitives";
|
|
9
|
-
|
|
10
|
-
//#region src/components/sidebar.tsx
|
|
11
|
-
function SidebarExpander({ open, summary, children }) {
|
|
12
|
-
return /* @__PURE__ */ jsxs("details", {
|
|
13
|
-
className: style_default.SidebarExpander,
|
|
14
|
-
open,
|
|
15
|
-
children: [/* @__PURE__ */ jsxs("summary", {
|
|
16
|
-
className: style_default.ExpanderSummary,
|
|
17
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
18
|
-
className: style_default.ExpanderSummaryContent,
|
|
19
|
-
children: summary
|
|
20
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
21
|
-
className: style_default.ExpanderSummaryIcon,
|
|
22
|
-
children: [/* @__PURE__ */ jsx(ChevronRight, {
|
|
23
|
-
size: 16,
|
|
24
|
-
strokeWidth: 1,
|
|
25
|
-
className: style_default.Icon
|
|
26
|
-
}), /* @__PURE__ */ jsx(ChevronDown, {
|
|
27
|
-
size: 16,
|
|
28
|
-
strokeWidth: 1,
|
|
29
|
-
className: style_default.Icon
|
|
30
|
-
})]
|
|
31
|
-
})]
|
|
32
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
33
|
-
className: style_default.ExpanderContent,
|
|
34
|
-
children
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function SidebarMethod({ method }) {
|
|
39
|
-
const Docs = useComponents();
|
|
40
|
-
const { selectedPath } = useNavigation();
|
|
41
|
-
const httpMethod = getHttpMethod(method.httpMethod);
|
|
42
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
43
|
-
className: style_default.SidebarMethod,
|
|
44
|
-
"data-selected": method.stainlessPath === selectedPath,
|
|
45
|
-
children: [httpMethod && /* @__PURE__ */ jsx(Badge.HTTP, {
|
|
46
|
-
method: httpMethod,
|
|
47
|
-
iconOnly: true
|
|
48
|
-
}), /* @__PURE__ */ jsx(Docs.Link, {
|
|
49
|
-
stainlessPath: method.stainlessPath,
|
|
50
|
-
children: method.title
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function SidebarResource({ resource }) {
|
|
55
|
-
const Docs = useComponents();
|
|
56
|
-
const { selectedPath } = useNavigation();
|
|
57
|
-
const subresources = Object.values(resource.subresources ?? {}).map((sub) => /* @__PURE__ */ jsx(SidebarResource, { resource: sub }, sub.stainlessPath));
|
|
58
|
-
const methods = Object.values(resource.methods).map((method) => /* @__PURE__ */ jsx(SidebarMethod, { method }, method.stainlessPath));
|
|
59
|
-
const hasChildren = subresources.length > 0 || methods.length > 0;
|
|
60
|
-
const title = /* @__PURE__ */ jsx("div", {
|
|
61
|
-
className: style_default.SidebarResourceTitle,
|
|
62
|
-
children: /* @__PURE__ */ jsx(Docs.Link, {
|
|
63
|
-
stainlessPath: resource.stainlessPath,
|
|
64
|
-
children: resource.title
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
return /* @__PURE__ */ jsx("div", {
|
|
68
|
-
className: style_default.SidebarResource,
|
|
69
|
-
"data-selected": resource.stainlessPath === selectedPath,
|
|
70
|
-
children: hasChildren ? /* @__PURE__ */ jsxs(SidebarExpander, {
|
|
71
|
-
summary: title,
|
|
72
|
-
open: true,
|
|
73
|
-
children: [methods, subresources]
|
|
74
|
-
}) : title
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function Sidebar({ resources }) {
|
|
78
|
-
return /* @__PURE__ */ jsx("div", {
|
|
79
|
-
className: `${style_default.Root} ${style_default.Sidebar}`,
|
|
80
|
-
children: resources.filter((resource) => !isResourceEmpty(resource)).map((resource) => /* @__PURE__ */ jsx(SidebarResource, { resource }, resource.stainlessPath))
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
//#endregion
|
|
85
|
-
export { SidebarResource as i, SidebarExpander as n, SidebarMethod as r, Sidebar as t };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { f as Resource, l as Method } from "./index-zNpvNvtN.js";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/sidebar.d.ts
|
|
6
|
-
type SidebarExpanderProps = {
|
|
7
|
-
open?: boolean;
|
|
8
|
-
summary: React$1.ReactNode;
|
|
9
|
-
children?: React$1.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare function SidebarExpander({
|
|
12
|
-
open,
|
|
13
|
-
summary,
|
|
14
|
-
children
|
|
15
|
-
}: SidebarExpanderProps): react_jsx_runtime32.JSX.Element;
|
|
16
|
-
type SidebarMethodProps = {
|
|
17
|
-
method: Method;
|
|
18
|
-
};
|
|
19
|
-
declare function SidebarMethod({
|
|
20
|
-
method
|
|
21
|
-
}: SidebarMethodProps): react_jsx_runtime32.JSX.Element;
|
|
22
|
-
type SidebarResourceProps = {
|
|
23
|
-
resource: Resource;
|
|
24
|
-
};
|
|
25
|
-
declare function SidebarResource({
|
|
26
|
-
resource
|
|
27
|
-
}: SidebarResourceProps): react_jsx_runtime32.JSX.Element;
|
|
28
|
-
type SidebarProps = {
|
|
29
|
-
resources: Resource[];
|
|
30
|
-
selectedPath?: string;
|
|
31
|
-
};
|
|
32
|
-
declare function Sidebar({
|
|
33
|
-
resources
|
|
34
|
-
}: SidebarProps): react_jsx_runtime32.JSX.Element;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { f as Resource, l as Method } from "./index-zNpvNvtN.js";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/sidebar.d.ts
|
|
6
|
-
type SidebarExpanderProps = {
|
|
7
|
-
open?: boolean;
|
|
8
|
-
summary: React$1.ReactNode;
|
|
9
|
-
children?: React$1.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare function SidebarExpander({
|
|
12
|
-
open,
|
|
13
|
-
summary,
|
|
14
|
-
children
|
|
15
|
-
}: SidebarExpanderProps): react_jsx_runtime63.JSX.Element;
|
|
16
|
-
type SidebarMethodProps = {
|
|
17
|
-
method: Method;
|
|
18
|
-
};
|
|
19
|
-
declare function SidebarMethod({
|
|
20
|
-
method
|
|
21
|
-
}: SidebarMethodProps): react_jsx_runtime63.JSX.Element;
|
|
22
|
-
type SidebarResourceProps = {
|
|
23
|
-
resource: Resource;
|
|
24
|
-
};
|
|
25
|
-
declare function SidebarResource({
|
|
26
|
-
resource
|
|
27
|
-
}: SidebarResourceProps): react_jsx_runtime63.JSX.Element;
|
|
28
|
-
type SidebarProps = {
|
|
29
|
-
resources: Resource[];
|
|
30
|
-
selectedPath?: string;
|
|
31
|
-
};
|
|
32
|
-
declare function Sidebar({
|
|
33
|
-
resources
|
|
34
|
-
}: SidebarProps): react_jsx_runtime63.JSX.Element;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
|