@stainless-api/docs-ui 0.1.0-beta.44 → 0.1.0-beta.46
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/{component-generics-ofm2M82q.d.ts → component-generics-CDshlns_.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +14 -0
- package/dist/components/MaskedInput.js +76 -0
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +13 -13
- package/dist/components/icons.d.ts +16 -11
- package/dist/components/icons.js +2 -2
- package/dist/components/index.d.ts +11 -11
- package/dist/components/index.js +14 -14
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +13 -13
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +13 -13
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +13 -13
- package/dist/components/properties.d.ts +2 -2
- package/dist/components/properties.js +14 -14
- package/dist/components/sdk.d.ts +2 -2
- package/dist/components/sdk.js +13 -13
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +13 -13
- package/dist/components/snippets.d.ts +4 -4
- package/dist/components/snippets.js +14 -14
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-generics.js +1 -1
- package/dist/contexts/component-types.d.ts +11 -11
- package/dist/contexts/component.d.ts +14 -14
- package/dist/contexts/component.js +13 -13
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/docs.js +1 -1
- package/dist/contexts/index.d.ts +18 -18
- package/dist/contexts/index.js +13 -13
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +2 -2
- package/dist/contexts/navigation.js +1 -1
- package/dist/contexts/search.d.ts +3 -3
- package/dist/contexts/search.js +13 -13
- package/dist/contexts/use-components.d.ts +10 -10
- package/dist/contexts/use-components.js +2 -2
- package/dist/{contexts-2HSNy-rE.js → contexts-HUUrbJAJ.js} +83 -91
- package/dist/{docs-BvahWQ28.d.ts → docs-OpxXmURB.d.ts} +4 -3
- package/dist/{icons-yb-Jhkmg.js → icons-Ckod9aod.js} +117 -1
- package/dist/{index-BYYbjUs7.d.ts → index-BhNE0nV0.d.ts} +9 -9
- package/dist/{index--xwumGAy.d.ts → index-Ck2YxPj3.d.ts} +6 -6
- package/dist/{index-C6aGoMyw.d.ts → index-CkgJvy8B.d.ts} +26 -26
- package/dist/index.d.ts +20 -20
- package/dist/index.js +13 -13
- package/dist/languages/go.d.ts +11 -11
- package/dist/languages/go.js +13 -13
- package/dist/languages/http.d.ts +11 -11
- package/dist/languages/http.js +13 -13
- package/dist/languages/index.d.ts +11 -11
- package/dist/languages/index.js +13 -13
- package/dist/languages/java.d.ts +11 -11
- package/dist/languages/java.js +13 -13
- package/dist/languages/python.d.ts +11 -11
- package/dist/languages/python.js +13 -13
- package/dist/languages/ruby.d.ts +11 -11
- package/dist/languages/ruby.js +13 -13
- package/dist/languages/typescript.d.ts +11 -11
- package/dist/languages/typescript.js +13 -13
- package/dist/markdown/index.d.ts +3 -3
- package/dist/markdown/index.js +13 -13
- package/dist/markdown/md.js +1 -1
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/markdown/utils.js +1 -1
- package/dist/{markdown-R3kFvQtF.d.ts → markdown-Ck30kC3p.d.ts} +2 -2
- package/dist/{markdown-Diyg-eof.js → markdown-sJ2VePdG.js} +1 -1
- package/dist/{method-DigRMq69.d.ts → method-BpjXzDDH.d.ts} +7 -7
- package/dist/{navigation-qVV3i91K.d.ts → navigation-D4bzWy1c.d.ts} +3 -3
- package/dist/{overview-CAseV8q5.d.ts → overview-B24Fc4cH.d.ts} +6 -6
- package/dist/{primitives-DKSwbXPi.d.ts → primitives-DwXr-yo5.d.ts} +11 -13
- package/dist/{properties-CqXos0BH.d.ts → properties-wSrkbEk2.d.ts} +13 -5
- package/dist/{routing-DNN8R6bZ.d.ts → routing-Bcos-Z2q.d.ts} +2 -2
- package/dist/{routing-qs2YNG9o.js → routing-GrDalgAW.js} +7 -3
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{sdk-Rlr-Kw5_.d.ts → sdk-CDNNOl31.d.ts} +14 -15
- package/dist/search/index.d.ts +6 -6
- package/dist/search/index.js +15 -15
- package/dist/search/mcp.d.ts +13 -0
- package/dist/search/mcp.js +45 -0
- package/dist/search/providers/algolia.d.ts +2 -2
- package/dist/search/providers/algolia.js +13 -13
- package/dist/search/providers/fuse.d.ts +2 -2
- package/dist/search/providers/fuse.js +13 -13
- package/dist/search/providers/pagefind.d.ts +2 -2
- package/dist/search/providers/pagefind.js +1 -1
- package/dist/search/providers/walker.d.ts +2 -2
- package/dist/search/providers/walker.js +13 -13
- package/dist/search/types.d.ts +2 -2
- package/dist/search/types.js +1 -1
- package/dist/{search-1-mboDcE.d.ts → search-Dbhp1LKw.d.ts} +3 -3
- package/dist/{sidebar-C1v1VnyN.d.ts → sidebar-BzEJezB8.d.ts} +5 -5
- package/dist/{snippets-CmrvrMkn.d.ts → snippets-BFLGJy-C.d.ts} +13 -8
- package/dist/spec.d.ts +3 -3
- package/dist/spec.js +2 -2
- package/dist/{style-BhhgPVF6.js → style-B-5NIls4.js} +4 -0
- package/dist/{style-p4qTfnmO.d.ts → style-BJCwZ-Wf.d.ts} +4 -0
- package/dist/style.d.ts +1 -1
- package/dist/style.js +1 -1
- package/dist/styles/main.css +11 -8
- package/dist/styles/primitives.css +37 -2
- package/dist/styles.css +48 -10
- package/dist/{types-BSnSUlkN.d.ts → types-1rnoIVpZ.d.ts} +1 -1
- package/dist/{use-components-BHEwm0mE.js → use-components-DG6NAdUT.js} +1 -1
- package/dist/{utils-FnJ4tyuN.js → utils-CqR0JQ5q.js} +2 -2
- package/dist/{utils-C5oXAzyN.d.ts → utils-gEMvF6KH.d.ts} +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/package.json +4 -4
- /package/dist/{breadcrumbs-BWIz-BrA.d.ts → breadcrumbs-ChGb9Ckx.d.ts} +0 -0
- /package/dist/{chunk-Bf_Gc_jT.js → chunk-KfF3XP4c.js} +0 -0
- /package/dist/{component-generics-D3ybuN5r.js → component-generics-4gg5TFK4.js} +0 -0
- /package/dist/{docs-CopwX9a7.js → docs-C2xNNHgT.js} +0 -0
- /package/dist/{md-DxiV1_vy.js → md-Ce-Zhp9O.js} +0 -0
- /package/dist/{navigation-CGr5_w6z.js → navigation-BrIapKIN.js} +0 -0
- /package/dist/{pagefind-BaK1krMe.js → pagefind-CKBforii.js} +0 -0
- /package/dist/{types-u0fUIalc.js → types-Ci-27DYJ.js} +0 -0
- /package/dist/{utils-D43p_yTd.d.ts → utils-CI9byvCc.d.ts} +0 -0
- /package/dist/{utils-Jo_o4DX9.js → utils-jPbBiaDE.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../properties-
|
|
5
|
-
import "../routing-
|
|
6
|
-
import "../sdk-
|
|
7
|
-
import "../snippets-
|
|
8
|
-
import "../overview-
|
|
9
|
-
import "../sidebar-
|
|
10
|
-
import { t as index_d_exports } from "../index-
|
|
11
|
-
import { n as ComponentsContextType } from "../component-generics-
|
|
12
|
-
import { r as index_d_exports$1 } from "../index-
|
|
1
|
+
import "../primitives-DwXr-yo5.js";
|
|
2
|
+
import "../breadcrumbs-ChGb9Ckx.js";
|
|
3
|
+
import "../method-BpjXzDDH.js";
|
|
4
|
+
import "../properties-wSrkbEk2.js";
|
|
5
|
+
import "../routing-Bcos-Z2q.js";
|
|
6
|
+
import "../sdk-CDNNOl31.js";
|
|
7
|
+
import "../snippets-BFLGJy-C.js";
|
|
8
|
+
import "../overview-B24Fc4cH.js";
|
|
9
|
+
import "../sidebar-BzEJezB8.js";
|
|
10
|
+
import { t as index_d_exports } from "../index-BhNE0nV0.js";
|
|
11
|
+
import { n as ComponentsContextType } from "../component-generics-CDshlns_.js";
|
|
12
|
+
import { r as index_d_exports$1 } from "../index-CkgJvy8B.js";
|
|
13
13
|
import React from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/contexts/component.d.ts
|
|
17
17
|
type AppComponents = typeof index_d_exports;
|
|
@@ -25,6 +25,6 @@ declare function ComponentProvider({
|
|
|
25
25
|
components?: Partial<AppComponents>;
|
|
26
26
|
language?: { [K in keyof AppLanguage]?: Partial<AppLanguage[K]> };
|
|
27
27
|
children: React.ReactNode;
|
|
28
|
-
}):
|
|
28
|
+
}): react_jsx_runtime51.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { AppComponents, AppLanguage, ComponentProvider, defaultContextValue };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../docs-
|
|
2
|
-
import "../component-generics-
|
|
3
|
-
import "../navigation-
|
|
4
|
-
import "../markdown-
|
|
5
|
-
import "../routing-
|
|
6
|
-
import "../style-
|
|
7
|
-
import "../use-components-
|
|
8
|
-
import { h as defaultContextValue, m as ComponentProvider } from "../contexts-
|
|
9
|
-
import "../icons-
|
|
10
|
-
import "../utils-
|
|
11
|
-
import "../md-
|
|
12
|
-
import "../utils-
|
|
13
|
-
import "../types-
|
|
1
|
+
import "../docs-C2xNNHgT.js";
|
|
2
|
+
import "../component-generics-4gg5TFK4.js";
|
|
3
|
+
import "../navigation-BrIapKIN.js";
|
|
4
|
+
import "../markdown-sJ2VePdG.js";
|
|
5
|
+
import "../routing-GrDalgAW.js";
|
|
6
|
+
import "../style-B-5NIls4.js";
|
|
7
|
+
import "../use-components-DG6NAdUT.js";
|
|
8
|
+
import { h as defaultContextValue, m as ComponentProvider } from "../contexts-HUUrbJAJ.js";
|
|
9
|
+
import "../icons-Ckod9aod.js";
|
|
10
|
+
import "../utils-CqR0JQ5q.js";
|
|
11
|
+
import "../md-Ce-Zhp9O.js";
|
|
12
|
+
import "../utils-jPbBiaDE.js";
|
|
13
|
+
import "../types-Ci-27DYJ.js";
|
|
14
14
|
|
|
15
15
|
export { ComponentProvider, defaultContextValue };
|
package/dist/contexts/docs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PropertySettingsType, c as useDocs, d as useSettings, f as useSnippet, i as DocsProviderProps, l as useLanguage, n as DocsContextType, o as useContentPanelLayout, p as useSpec, r as DocsProvider, s as useDeclaration, t as ContentPanelLayout, u as useResource } from "../docs-
|
|
1
|
+
import { a as PropertySettingsType, c as useDocs, d as useSettings, f as useSnippet, i as DocsProviderProps, l as useLanguage, n as DocsContextType, o as useContentPanelLayout, p as useSpec, r as DocsProvider, s as useDeclaration, t as ContentPanelLayout, u as useResource } from "../docs-OpxXmURB.js";
|
|
2
2
|
export { ContentPanelLayout, DocsContextType, DocsProvider, DocsProviderProps, PropertySettingsType, useContentPanelLayout, useDeclaration, useDocs, useLanguage, useResource, useSettings, useSnippet, useSpec };
|
package/dist/contexts/docs.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-C2xNNHgT.js";
|
|
2
2
|
|
|
3
3
|
export { DocsProvider, useContentPanelLayout, useDeclaration, useDocs, useLanguage, useResource, useSettings, useSnippet, useSpec };
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../properties-
|
|
5
|
-
import "../routing-
|
|
6
|
-
import "../sdk-
|
|
7
|
-
import "../snippets-
|
|
8
|
-
import "../overview-
|
|
9
|
-
import "../sidebar-
|
|
10
|
-
import "../index-
|
|
11
|
-
import { a as useComponents, i as useComponentContext, n as ComponentsContextType, r as customizeComponents, t as ComponentProvider } from "../component-generics-
|
|
12
|
-
import "../index-
|
|
13
|
-
import { a as PropertySettingsType, c as useDocs, d as useSettings, f as useSnippet, i as DocsProviderProps, l as useLanguage, n as DocsContextType, o as useContentPanelLayout, p as useSpec, r as DocsProvider, s as useDeclaration, t as ContentPanelLayout, u as useResource } from "../docs-
|
|
14
|
-
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-
|
|
15
|
-
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-
|
|
16
|
-
import "../types-
|
|
17
|
-
import { a as useSearchContext, i as useSearch, n as SearchProvider, r as SearchProviderProps, t as SearchContextType } from "../search-
|
|
18
|
-
import { n as useLanguageComponents } from "../index
|
|
1
|
+
import "../primitives-DwXr-yo5.js";
|
|
2
|
+
import "../breadcrumbs-ChGb9Ckx.js";
|
|
3
|
+
import "../method-BpjXzDDH.js";
|
|
4
|
+
import "../properties-wSrkbEk2.js";
|
|
5
|
+
import "../routing-Bcos-Z2q.js";
|
|
6
|
+
import "../sdk-CDNNOl31.js";
|
|
7
|
+
import "../snippets-BFLGJy-C.js";
|
|
8
|
+
import "../overview-B24Fc4cH.js";
|
|
9
|
+
import "../sidebar-BzEJezB8.js";
|
|
10
|
+
import "../index-BhNE0nV0.js";
|
|
11
|
+
import { a as useComponents, i as useComponentContext, n as ComponentsContextType, r as customizeComponents, t as ComponentProvider } from "../component-generics-CDshlns_.js";
|
|
12
|
+
import "../index-CkgJvy8B.js";
|
|
13
|
+
import { a as PropertySettingsType, c as useDocs, d as useSettings, f as useSnippet, i as DocsProviderProps, l as useLanguage, n as DocsContextType, o as useContentPanelLayout, p as useSpec, r as DocsProvider, s as useDeclaration, t as ContentPanelLayout, u as useResource } from "../docs-OpxXmURB.js";
|
|
14
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-D4bzWy1c.js";
|
|
15
|
+
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-Ck30kC3p.js";
|
|
16
|
+
import "../types-1rnoIVpZ.js";
|
|
17
|
+
import { a as useSearchContext, i as useSearch, n as SearchProvider, r as SearchProviderProps, t as SearchContextType } from "../search-Dbhp1LKw.js";
|
|
18
|
+
import { n as useLanguageComponents } from "../index-Ck2YxPj3.js";
|
|
19
19
|
export { ComponentProvider, ComponentsContextType, ContentPanelLayout, DocsContextType, DocsProvider, DocsProviderProps, MarkdownContext, MarkdownProvider, MarkdownProviderProps, NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, PropertySettingsType, SearchContextType, SearchProvider, SearchProviderProps, customizeComponents, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSearch, useSearchContext, useSettings, useSnippet, useSpec };
|
package/dist/contexts/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
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-
|
|
2
|
-
import { i as useComponents, n as customizeComponents, r as useComponentContext, t as ComponentProvider } from "../component-generics-
|
|
3
|
-
import { n as useNavigation, t as NavigationProvider } from "../navigation-
|
|
4
|
-
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-
|
|
5
|
-
import "../routing-
|
|
6
|
-
import "../style-
|
|
7
|
-
import "../use-components-
|
|
8
|
-
import { a as useSearchContext, i as useSearch, n as useLanguageComponents, r as SearchProvider } from "../contexts-
|
|
9
|
-
import "../icons-
|
|
10
|
-
import "../utils-
|
|
11
|
-
import "../md-
|
|
12
|
-
import "../utils-
|
|
13
|
-
import "../types-
|
|
1
|
+
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-C2xNNHgT.js";
|
|
2
|
+
import { i as useComponents, n as customizeComponents, r as useComponentContext, t as ComponentProvider } from "../component-generics-4gg5TFK4.js";
|
|
3
|
+
import { n as useNavigation, t as NavigationProvider } from "../navigation-BrIapKIN.js";
|
|
4
|
+
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-sJ2VePdG.js";
|
|
5
|
+
import "../routing-GrDalgAW.js";
|
|
6
|
+
import "../style-B-5NIls4.js";
|
|
7
|
+
import "../use-components-DG6NAdUT.js";
|
|
8
|
+
import { a as useSearchContext, i as useSearch, n as useLanguageComponents, r as SearchProvider } from "../contexts-HUUrbJAJ.js";
|
|
9
|
+
import "../icons-Ckod9aod.js";
|
|
10
|
+
import "../utils-CqR0JQ5q.js";
|
|
11
|
+
import "../md-Ce-Zhp9O.js";
|
|
12
|
+
import "../utils-jPbBiaDE.js";
|
|
13
|
+
import "../types-Ci-27DYJ.js";
|
|
14
14
|
|
|
15
15
|
export { ComponentProvider, DocsProvider, MarkdownContext, MarkdownProvider, NavigationProvider, SearchProvider, customizeComponents, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSearch, useSearchContext, useSettings, useSnippet, useSpec };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-
|
|
1
|
+
import { a as useMarkdownContext, i as useHighlight, n as MarkdownProvider, o as useRenderMarkdown, r as MarkdownProviderProps, t as MarkdownContext } from "../markdown-Ck30kC3p.js";
|
|
2
2
|
export { MarkdownContext, MarkdownProvider, MarkdownProviderProps, useHighlight, useMarkdownContext, useRenderMarkdown };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../docs-
|
|
2
|
-
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-
|
|
1
|
+
import "../docs-C2xNNHgT.js";
|
|
2
|
+
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "../markdown-sJ2VePdG.js";
|
|
3
3
|
|
|
4
4
|
export { MarkdownContext, MarkdownProvider, useHighlight, useMarkdownContext, useRenderMarkdown };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../routing-
|
|
2
|
-
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-
|
|
1
|
+
import "../routing-Bcos-Z2q.js";
|
|
2
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-D4bzWy1c.js";
|
|
3
3
|
export { NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, useNavigation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../routing-
|
|
2
|
-
import "../types-
|
|
3
|
-
import { a as useSearchContext, i as useSearch, n as SearchProvider, r as SearchProviderProps, t as SearchContextType } from "../search-
|
|
1
|
+
import "../routing-Bcos-Z2q.js";
|
|
2
|
+
import "../types-1rnoIVpZ.js";
|
|
3
|
+
import { a as useSearchContext, i as useSearch, n as SearchProvider, r as SearchProviderProps, t as SearchContextType } from "../search-Dbhp1LKw.js";
|
|
4
4
|
export { SearchContextType, SearchProvider, SearchProviderProps, useSearch, useSearchContext };
|
package/dist/contexts/search.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "../docs-
|
|
2
|
-
import "../component-generics-
|
|
3
|
-
import "../navigation-
|
|
4
|
-
import "../markdown-
|
|
5
|
-
import "../routing-
|
|
6
|
-
import "../style-
|
|
7
|
-
import "../use-components-
|
|
8
|
-
import { a as useSearchContext, i as useSearch, r as SearchProvider } from "../contexts-
|
|
9
|
-
import "../icons-
|
|
10
|
-
import "../utils-
|
|
11
|
-
import "../md-
|
|
12
|
-
import "../utils-
|
|
13
|
-
import "../types-
|
|
1
|
+
import "../docs-C2xNNHgT.js";
|
|
2
|
+
import "../component-generics-4gg5TFK4.js";
|
|
3
|
+
import "../navigation-BrIapKIN.js";
|
|
4
|
+
import "../markdown-sJ2VePdG.js";
|
|
5
|
+
import "../routing-GrDalgAW.js";
|
|
6
|
+
import "../style-B-5NIls4.js";
|
|
7
|
+
import "../use-components-DG6NAdUT.js";
|
|
8
|
+
import { a as useSearchContext, i as useSearch, r as SearchProvider } from "../contexts-HUUrbJAJ.js";
|
|
9
|
+
import "../icons-Ckod9aod.js";
|
|
10
|
+
import "../utils-CqR0JQ5q.js";
|
|
11
|
+
import "../md-Ce-Zhp9O.js";
|
|
12
|
+
import "../utils-jPbBiaDE.js";
|
|
13
|
+
import "../types-Ci-27DYJ.js";
|
|
14
14
|
|
|
15
15
|
export { SearchProvider, useSearch, useSearchContext };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "../
|
|
3
|
-
import "../
|
|
4
|
-
import "../properties-
|
|
5
|
-
import "../routing-
|
|
6
|
-
import "../sdk-
|
|
7
|
-
import "../snippets-
|
|
8
|
-
import "../overview-
|
|
9
|
-
import "../sidebar-
|
|
10
|
-
import { t as index_d_exports } from "../index-
|
|
1
|
+
import "../primitives-DwXr-yo5.js";
|
|
2
|
+
import "../breadcrumbs-ChGb9Ckx.js";
|
|
3
|
+
import "../method-BpjXzDDH.js";
|
|
4
|
+
import "../properties-wSrkbEk2.js";
|
|
5
|
+
import "../routing-Bcos-Z2q.js";
|
|
6
|
+
import "../sdk-CDNNOl31.js";
|
|
7
|
+
import "../snippets-BFLGJy-C.js";
|
|
8
|
+
import "../overview-B24Fc4cH.js";
|
|
9
|
+
import "../sidebar-BzEJezB8.js";
|
|
10
|
+
import { t as index_d_exports } from "../index-BhNE0nV0.js";
|
|
11
11
|
|
|
12
12
|
//#region src/contexts/use-components.d.ts
|
|
13
13
|
declare const useComponents: () => typeof index_d_exports;
|
|
@@ -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
|
|
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-KfF3XP4c.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-C2xNNHgT.js";
|
|
3
|
+
import { a as createStrictContext, i as useComponents$1, n as customizeComponents, r as useComponentContext, t as ComponentProvider$1 } from "./component-generics-4gg5TFK4.js";
|
|
4
|
+
import { n as useNavigation, t as NavigationProvider } from "./navigation-BrIapKIN.js";
|
|
5
|
+
import { a as useRenderMarkdown, i as useMarkdownContext, n as MarkdownProvider, r as useHighlight, t as MarkdownContext } from "./markdown-sJ2VePdG.js";
|
|
6
|
+
import { _ as walkTree, c as getLanguageSnippet, f as parseStainlessPath, n as Languages, o as generateRoute, t as LanguageNames } from "./routing-GrDalgAW.js";
|
|
7
|
+
import { t as style_default } from "./style-B-5NIls4.js";
|
|
8
|
+
import { t as useComponents } from "./use-components-DG6NAdUT.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-Ckod9aod.js";
|
|
10
|
+
import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-CqR0JQ5q.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-Ce-Zhp9O.js";
|
|
12
|
+
import { n as getSnippet, r as stripMarkup, t as getDecl } from "./utils-jPbBiaDE.js";
|
|
13
|
+
import { i as SearchableAttributesProse, n as SearchableAttributes, r as SearchableAttributesChat } from "./types-Ci-27DYJ.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";
|
|
@@ -49,11 +49,18 @@ function PropertyDescription({ description }) {
|
|
|
49
49
|
children: /* @__PURE__ */ jsx(Markdown$1, { content: description })
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function PropertyTitle({ title }) {
|
|
53
|
+
const { Markdown: Markdown$1 } = useComponents();
|
|
54
|
+
if (title) return /* @__PURE__ */ jsx("div", {
|
|
55
|
+
className: style_default.PropertyTitle,
|
|
56
|
+
children: /* @__PURE__ */ jsx(Markdown$1, { content: title })
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function Property$6({ id, name, typeName: typeName$1, badges, type, declaration: declaration$2, description, title, deprecated, expand, additional, constraints, children }) {
|
|
53
60
|
const Docs = useComponents();
|
|
54
61
|
const language = useLanguage();
|
|
55
62
|
const properties = useSettings()?.properties;
|
|
56
|
-
const collapseDescription = properties
|
|
63
|
+
const { collapseDescription, showTitle } = properties ?? {};
|
|
57
64
|
const types = properties?.types;
|
|
58
65
|
const textContent = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
59
66
|
typeof deprecated === "string" && /* @__PURE__ */ jsx("div", {
|
|
@@ -66,20 +73,24 @@ function Property$6({ id, name, typeName: typeName$1, badges, type, declaration:
|
|
|
66
73
|
children: constraints
|
|
67
74
|
})
|
|
68
75
|
] });
|
|
69
|
-
const rich = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
const rich = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
77
|
+
/* @__PURE__ */ jsxs("div", {
|
|
78
|
+
className: style_default.PropertyDeclaration,
|
|
79
|
+
children: [
|
|
80
|
+
deprecated && /* @__PURE__ */ jsx("span", {
|
|
81
|
+
className: style_default.PropertyDeprecated,
|
|
82
|
+
children: "Deprecated"
|
|
83
|
+
}),
|
|
84
|
+
declaration$2,
|
|
85
|
+
badges && /* @__PURE__ */ jsx("span", {
|
|
86
|
+
className: style_default.PropertyBadges,
|
|
87
|
+
children: badges
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
}),
|
|
91
|
+
title && showTitle && /* @__PURE__ */ jsx(Docs.PropertyTitle, { title }),
|
|
92
|
+
collapseDescription === false ? textContent : null
|
|
93
|
+
] });
|
|
83
94
|
const simple = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
84
95
|
name && /* @__PURE__ */ jsxs("div", {
|
|
85
96
|
className: style_default.PropertyHeader,
|
|
@@ -106,6 +117,7 @@ function Property$6({ id, name, typeName: typeName$1, badges, type, declaration:
|
|
|
106
117
|
className: style_default.PropertyType,
|
|
107
118
|
children: type
|
|
108
119
|
}),
|
|
120
|
+
title && showTitle && /* @__PURE__ */ jsx(Docs.PropertyTitle, { title }),
|
|
109
121
|
collapseDescription === false ? textContent : null
|
|
110
122
|
] });
|
|
111
123
|
const content = /* @__PURE__ */ jsx("div", {
|
|
@@ -495,46 +507,18 @@ function useReferenceNesting() {
|
|
|
495
507
|
return React$1.useContext(ReferenceNestingContext);
|
|
496
508
|
}
|
|
497
509
|
const SDKSnippetLanguages = {
|
|
498
|
-
"node.default": {
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
},
|
|
502
|
-
"
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
},
|
|
506
|
-
"
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
510
|
-
"go.default": {
|
|
511
|
-
name: "Go",
|
|
512
|
-
icon: "go"
|
|
513
|
-
},
|
|
514
|
-
"java.default": {
|
|
515
|
-
name: "Java",
|
|
516
|
-
icon: "java"
|
|
517
|
-
},
|
|
518
|
-
"kotlin.default": {
|
|
519
|
-
name: "Kotlin",
|
|
520
|
-
icon: "kotlin"
|
|
521
|
-
},
|
|
522
|
-
"http.curl": {
|
|
523
|
-
name: "cURL",
|
|
524
|
-
icon: "http"
|
|
525
|
-
},
|
|
526
|
-
"http.powershell": {
|
|
527
|
-
name: "Powershell",
|
|
528
|
-
icon: "powershell"
|
|
529
|
-
},
|
|
530
|
-
"terraform.default": {
|
|
531
|
-
name: "Terraform",
|
|
532
|
-
icon: "terraform"
|
|
533
|
-
},
|
|
534
|
-
"ruby.default": {
|
|
535
|
-
name: "Ruby",
|
|
536
|
-
icon: "ruby"
|
|
537
|
-
}
|
|
510
|
+
"node.default": { name: "TypeScript" },
|
|
511
|
+
"typescript.default": { name: "TypeScript" },
|
|
512
|
+
"python.default": { name: "Python" },
|
|
513
|
+
"go.default": { name: "Go" },
|
|
514
|
+
"java.default": { name: "Java" },
|
|
515
|
+
"kotlin.default": { name: "Kotlin" },
|
|
516
|
+
"http.curl": { name: "cURL" },
|
|
517
|
+
"http.powershell": { name: "Powershell" },
|
|
518
|
+
"terraform.default": { name: "Terraform" },
|
|
519
|
+
"ruby.default": { name: "Ruby" },
|
|
520
|
+
"csharp.default": { name: "C#" },
|
|
521
|
+
"php.default": { name: "PHP" }
|
|
538
522
|
};
|
|
539
523
|
function SDKChildren({ paths, expand, depth }) {
|
|
540
524
|
const Docs = useComponents();
|
|
@@ -576,6 +560,7 @@ function SDKDeclaration({ path, expand, depth = 0 }) {
|
|
|
576
560
|
expand: shouldExpand,
|
|
577
561
|
constraints: "constraints" in decl && /* @__PURE__ */ jsx(Docs.SDKConstraints, { constraints: decl["constraints"] }),
|
|
578
562
|
declaration: /* @__PURE__ */ jsx(Lang.Declaration, { decl }),
|
|
563
|
+
title: "title" in decl ? decl.title : void 0,
|
|
579
564
|
description: "docstring" in decl ? decl["docstring"] : void 0,
|
|
580
565
|
deprecated: decl.deprecated,
|
|
581
566
|
...props,
|
|
@@ -625,7 +610,9 @@ const snippetIcons = {
|
|
|
625
610
|
"http.powershell": PowershellIcon,
|
|
626
611
|
"ruby.default": RubyIcon,
|
|
627
612
|
"java.default": JavaIcon,
|
|
628
|
-
"kotlin.default": KotlinIcon
|
|
613
|
+
"kotlin.default": KotlinIcon,
|
|
614
|
+
"csharp.default": CSharpIcon,
|
|
615
|
+
"php.default": CSharpIcon
|
|
629
616
|
};
|
|
630
617
|
function SDKIcon({ language }) {
|
|
631
618
|
const LangIcon = snippetIcons[language];
|
|
@@ -859,7 +846,6 @@ function SnippetRequestContainer({ children }) {
|
|
|
859
846
|
function Snippet({ requestTitle, method, transformRequestSnippet }) {
|
|
860
847
|
const Docs = useComponents();
|
|
861
848
|
const language = useLanguage();
|
|
862
|
-
const [CopyButtonIcon, setCopyIcon] = React$1.useState(CopyIcon);
|
|
863
849
|
const originalSnippet = useSnippet(method.stainlessPath, void 0, language === "http" ? "curl" : "default");
|
|
864
850
|
const decl = useDeclaration(method.stainlessPath, false);
|
|
865
851
|
if (!originalSnippet) {
|
|
@@ -872,15 +858,6 @@ function Snippet({ requestTitle, method, transformRequestSnippet }) {
|
|
|
872
858
|
snippet: originalSnippet,
|
|
873
859
|
language
|
|
874
860
|
}) : originalSnippet;
|
|
875
|
-
async function handleCopy() {
|
|
876
|
-
try {
|
|
877
|
-
await navigator.clipboard.writeText(snippet);
|
|
878
|
-
setCopyIcon(CheckIcon);
|
|
879
|
-
} catch {
|
|
880
|
-
setCopyIcon(CircleAlertIcon);
|
|
881
|
-
}
|
|
882
|
-
setTimeout(() => setCopyIcon(CopyIcon), 1e3);
|
|
883
|
-
}
|
|
884
861
|
return /* @__PURE__ */ jsxs(Docs.SnippetContainer, {
|
|
885
862
|
signature,
|
|
886
863
|
children: [snippet && /* @__PURE__ */ jsx(Docs.SnippetRequestContainer, {
|
|
@@ -896,21 +873,13 @@ function Snippet({ requestTitle, method, transformRequestSnippet }) {
|
|
|
896
873
|
children: [/* @__PURE__ */ jsx(Docs.MethodRoute, {
|
|
897
874
|
httpMethod: method.httpMethod,
|
|
898
875
|
iconOnly: true
|
|
899
|
-
}), /* @__PURE__ */ jsx("h5", { children: method.summary })]
|
|
876
|
+
}), /* @__PURE__ */ jsx("h5", { children: method.summary ?? method.title })]
|
|
900
877
|
}),
|
|
901
878
|
/* @__PURE__ */ jsx("div", {
|
|
902
879
|
className: style_default.SnippetRequestTitleContent,
|
|
903
880
|
children: requestTitle
|
|
904
881
|
}),
|
|
905
|
-
/* @__PURE__ */ jsx(
|
|
906
|
-
variant: "ghost",
|
|
907
|
-
"data-stldocs-snippet-copy": true,
|
|
908
|
-
children: /* @__PURE__ */ jsx(CopyButtonIcon, {
|
|
909
|
-
size: 16,
|
|
910
|
-
className: style_default.Icon,
|
|
911
|
-
onClick: handleCopy
|
|
912
|
-
})
|
|
913
|
-
})
|
|
882
|
+
/* @__PURE__ */ jsx(Docs.SnippetButtons, { content: snippet })
|
|
914
883
|
]
|
|
915
884
|
}), /* @__PURE__ */ jsx(Docs.SnippetCode, {
|
|
916
885
|
content: snippet,
|
|
@@ -920,6 +889,27 @@ function Snippet({ requestTitle, method, transformRequestSnippet }) {
|
|
|
920
889
|
}), responses && /* @__PURE__ */ jsx(Docs.SnippetResponse, { responses })]
|
|
921
890
|
});
|
|
922
891
|
}
|
|
892
|
+
function SnippetButtons({ content }) {
|
|
893
|
+
const [CopyButtonIcon, setCopyIcon] = React$1.useState(CopyIcon);
|
|
894
|
+
async function handleCopy() {
|
|
895
|
+
try {
|
|
896
|
+
await navigator.clipboard.writeText(content);
|
|
897
|
+
setCopyIcon(CheckIcon);
|
|
898
|
+
} catch {
|
|
899
|
+
setCopyIcon(CircleAlertIcon);
|
|
900
|
+
}
|
|
901
|
+
setTimeout(() => setCopyIcon(CopyIcon), 1e3);
|
|
902
|
+
}
|
|
903
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
904
|
+
variant: "ghost",
|
|
905
|
+
"data-stldocs-snippet-copy": true,
|
|
906
|
+
children: /* @__PURE__ */ jsx(CopyButtonIcon, {
|
|
907
|
+
size: 16,
|
|
908
|
+
className: style_default.Icon,
|
|
909
|
+
onClick: handleCopy
|
|
910
|
+
})
|
|
911
|
+
});
|
|
912
|
+
}
|
|
923
913
|
function SnippetResponse({ responses }) {
|
|
924
914
|
const { SnippetCode: SnippetCode$1 } = useComponents();
|
|
925
915
|
if (!responses) return null;
|
|
@@ -1250,6 +1240,7 @@ var components_exports = /* @__PURE__ */ __export({
|
|
|
1250
1240
|
Property: () => Property$6,
|
|
1251
1241
|
PropertyDescription: () => PropertyDescription,
|
|
1252
1242
|
PropertyModelContext: () => PropertyModelContext,
|
|
1243
|
+
PropertyTitle: () => PropertyTitle,
|
|
1253
1244
|
PropertyToggle: () => PropertyToggle,
|
|
1254
1245
|
ReferenceNestingContext: () => ReferenceNestingContext,
|
|
1255
1246
|
SDKBreadcrumbs: () => SDKBreadcrumbs,
|
|
@@ -1276,6 +1267,7 @@ var components_exports = /* @__PURE__ */ __export({
|
|
|
1276
1267
|
SidebarMethod: () => SidebarMethod,
|
|
1277
1268
|
SidebarResource: () => SidebarResource,
|
|
1278
1269
|
Snippet: () => Snippet,
|
|
1270
|
+
SnippetButtons: () => SnippetButtons,
|
|
1279
1271
|
SnippetCode: () => SnippetCode,
|
|
1280
1272
|
SnippetContainer: () => SnippetContainer,
|
|
1281
1273
|
SnippetRequestContainer: () => SnippetRequestContainer,
|
|
@@ -3846,4 +3838,4 @@ function useLanguageComponents() {
|
|
|
3846
3838
|
}
|
|
3847
3839
|
|
|
3848
3840
|
//#endregion
|
|
3849
|
-
export { Type$5 as $,
|
|
3841
|
+
export { Type$5 as $, MethodRoute as $t, TypeName$1 as A, SDKModel as At, Property$3 as B, Link as Bt, Type as C, SDKDeclaration as Ct, MethodSignature$1 as D, SDKMethod as Dt, Declaration$1 as E, SDKLanguageBlock as Et, Type$2 as F, useReferenceNesting as Ft, MethodSignature$4 as G, VirtualExpander as Gt, TypeName$3 as H, Markdown as Ht, TypeName$2 as I, Badge as It, TypeName$4 as J, Method as Jt, Property$4 as K, HttpMethodIcons as Kt, python_exports as L, Expander as Lt, Declaration$2 as M, SDKRequestTitle as Mt, MethodSignature$2 as N, SDKSnippetLanguages as Nt, Property$1 as O, SDKMethodHeader as Ot, Property$2 as P, usePropertyModel as Pt, Property$5 as Q, MethodInfo$1 as Qt, Declaration$3 as R, Input as Rt, Property as S, SDKConstraints as St, http_exports as T, SDKIcon as Tt, go_exports as U, ToggleButton as Ut, Type$3 as V, ListView as Vt, Declaration$4 as W, Tooltip as Wt, Declaration$5 as X, MethodHeader as Xt, java_exports as Y, MethodDescription as Yt, MethodSignature$5 as Z, MethodIconBadge as Zt, languages_exports as _, SnippetRequestContainer as _t, useSearchContext as a, SidebarMethod as at, MethodInfo as b, ReferenceNestingContext as bt, buildProseIndex as c, SDKMethodSummary as ct, declaration as d, SDKResourceHeader as dt, Property$6 as en, TypeName$5 as et, render as f, SDKRoot as ft, kotlin as g, SnippetContainer as gt, defaultContextValue as h, SnippetCode as ht, useSearch as i, SidebarExpander as it, ruby_exports as j, SDKReference as jt, Type$1 as k, SDKMethodInfo as kt, search as l, SDKOverview as lt, ComponentProvider as m, SnippetButtons as mt, useLanguageComponents as n, PropertyTitle as nn, components_exports as nt, buildChatIndex as o, SidebarResource as ot, renderMarkdown as p, Snippet as pt, Type$4 as q, HttpMethods as qt, SearchProvider as r, PropertyToggle as rn, Sidebar as rt, buildIndex as s, SDKBreadcrumbs as st, contexts_exports as t, PropertyDescription as tn, typescript_exports as tt, generateIndex as u, SDKResource as ut, node as v, SnippetResponse as vt, TypeName as w, SDKExample as wt, MethodSignature as x, SDKChildren as xt, Declaration as y, PropertyModelContext as yt, MethodSignature$3 as z, Join as zt };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
3
3
|
import * as _stainless_sdk_json0 from "@stainless/sdk-json";
|
|
4
4
|
import { LanguageDeclNodes, Spec, SpecLanguage } from "@stainless/sdk-json";
|
|
5
5
|
|
|
@@ -9,6 +9,7 @@ type PropertySettingsType = {
|
|
|
9
9
|
types?: 'simple' | 'rich';
|
|
10
10
|
includeModelProperties?: boolean;
|
|
11
11
|
collapseDescription?: boolean;
|
|
12
|
+
showTitle?: boolean;
|
|
12
13
|
expandDepth?: number;
|
|
13
14
|
};
|
|
14
15
|
type DocsContextType = {
|
|
@@ -31,7 +32,7 @@ declare function useSnippet(stainlessPath: string, language?: SpecLanguage, vari
|
|
|
31
32
|
type Declaration = LanguageDeclNodes[SpecLanguage];
|
|
32
33
|
declare function useDeclaration<Required extends boolean>(stainlessPath: string, required: Required, language?: SpecLanguage): (Required extends true ? never : undefined) | Declaration;
|
|
33
34
|
declare function useResource(name: string): _stainless_sdk_json0.Resource | undefined;
|
|
34
|
-
declare function useLanguage(): "
|
|
35
|
+
declare function useLanguage(): "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
|
|
35
36
|
declare function useContentPanelLayout(): ContentPanelLayout;
|
|
36
37
|
type DocsProviderProps = DocsContextType & {
|
|
37
38
|
children: React$1.ReactNode;
|
|
@@ -41,6 +42,6 @@ declare function DocsProvider({
|
|
|
41
42
|
language,
|
|
42
43
|
settings,
|
|
43
44
|
children
|
|
44
|
-
}: DocsProviderProps):
|
|
45
|
+
}: DocsProviderProps): react_jsx_runtime52.JSX.Element;
|
|
45
46
|
//#endregion
|
|
46
47
|
export { PropertySettingsType as a, useDocs as c, useSettings as d, useSnippet as f, DocsProviderProps as i, useLanguage as l, DocsContextType as n, useContentPanelLayout as o, useSpec as p, DocsProvider as r, useDeclaration as s, ContentPanelLayout as t, useResource as u };
|