@stainless-api/docs-ui 0.1.0-beta.56 → 0.1.0-beta.58
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-D4R5cbSw.js → breadcrumbs-3q1o8SBZ.js} +2 -2
- package/dist/{breadcrumbs-C4-bfzhR.d.ts → breadcrumbs-Bu4Lz7cO.d.ts} +4 -4
- package/dist/{component-generics-BXUlfDmo.d.ts → component-generics-CLPqY1b3.d.ts} +2 -2
- package/dist/{component-5L-iyIZ6.js → component-l0Q5m3CM.js} +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 +2 -2
- package/dist/components/icons.d.ts +11 -11
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +10 -10
- package/dist/components/method.d.ts +2 -2
- package/dist/components/method.js +3 -3
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +3 -3
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +1 -1
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +1 -1
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +1 -3
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +1 -1
- package/dist/{components-DuWqBogG.js → components-BdOXrvW2.js} +8 -11
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +10 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/component.js +18 -18
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +14 -14
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/{csharp-E3FbT47c.js → csharp-ZbePFjQO.js} +7 -7
- package/dist/{docs-DXW3HLam.d.ts → docs-8bJ2Zq-a.d.ts} +4 -5
- package/dist/{go-DNSFGJle.js → go-B0LsOWv5.js} +1 -1
- package/dist/{http-DXRdcllM.js → http-DhFmbdJn.js} +3 -3
- package/dist/index-BON8gAFi.d.ts +15 -0
- package/dist/index-BtmA2psc.d.ts +1587 -0
- package/dist/{index-CMjS_7Z-.d.ts → index-qF_YVWCx.d.ts} +48 -48
- package/dist/index.d.ts +15 -15
- package/dist/index.js +18 -18
- package/dist/{java-X1yS0K52.js → java-DnoViM8r.js} +1 -1
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/csharp.js +1 -1
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +1 -1
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +10 -10
- package/dist/languages/index.d.ts +10 -10
- package/dist/languages/index.js +17 -17
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +1 -1
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +1 -1
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +1 -1
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +1 -1
- package/dist/{languages-Ir9QQoCT.js → languages-DkMjjyDN.js} +7 -7
- package/dist/markdown/index.d.ts +5 -5
- package/dist/markdown/index.js +18 -18
- package/dist/markdown/md.js +2 -2
- package/dist/markdown/printer.d.ts +6 -6
- package/dist/markdown/printer.js +33 -32
- package/dist/markdown/utils.d.ts +5 -5
- package/dist/{markdown-DlZBWMNG.d.ts → markdown-DTp4ociY.d.ts} +2 -2
- package/dist/method-ClPGsX68.d.ts +59 -0
- package/dist/{method-nEcioXL5.js → method-pJ_RhZj-.js} +10 -35
- package/dist/{navigation-BO8IjmvM.d.ts → navigation-DzgC_T1S.d.ts} +3 -3
- package/dist/{overview-BI_asPrF.d.ts → overview-CdbaBavs.d.ts} +11 -11
- package/dist/{overview-D_7o7P6l.js → overview-DYiiAHTd.js} +6 -6
- package/dist/{primitives-Bm0Cm3Xo.d.ts → primitives-Cw5uBUQk.d.ts} +11 -11
- package/dist/{primitives-Dk_RvOzh.js → primitives-DHsRAENq.js} +2 -2
- package/dist/{properties-BGhVCqER.d.ts → properties-Bn_hArWT.d.ts} +5 -5
- package/dist/{properties-BTdEzx5f.js → properties-WqNSu-9K.js} +1 -1
- package/dist/{python-DqdvqQ9I.js → python-Bj1XJ1je.js} +1 -1
- package/dist/{routing-CUnVDpU-.d.ts → routing-BHkWbZpp.d.ts} +5 -5
- package/dist/routing.d.ts +1 -1
- package/dist/{ruby-CHeld1ey.js → ruby-CUOmUwz-.js} +1 -1
- package/dist/{sdk-DA3oRxHu.d.ts → sdk-BiLj2q7E.d.ts} +22 -22
- package/dist/{sdk-DEoUlY8I.js → sdk-DoprvjCy.js} +2 -2
- package/dist/{sidebar-D_cK7JN_.js → sidebar-4QeeafnE.js} +8 -4
- package/dist/{sidebar-DZQPDV-z.d.ts → sidebar-DimNfsmt.d.ts} +9 -9
- package/dist/{snippets-BiXJx1BL.js → snippets-BPHTjwpN.js} +11 -16
- package/dist/{snippets-Dg6GX-e4.d.ts → snippets-CQrk6Dfj.d.ts} +11 -11
- package/dist/spec.d.ts +26 -26
- package/dist/{style-cJZFOvnF.js → style-WTDMMzqU.js} +0 -3
- package/dist/style.d.ts +0 -3
- package/dist/style.js +1 -1
- package/dist/styles/main.css +10 -27
- package/dist/styles/primitives.css +1 -1
- package/dist/styles/search.css +0 -9
- package/dist/styles/sidebar.css +0 -4
- package/dist/styles.css +161 -41
- package/dist/{typescript-C--P_L-R.js → typescript-B4wuVmP1.js} +1 -1
- package/dist/utils.d.ts +6 -6
- package/package.json +4 -4
- package/dist/breadcrumbs-R-MrRUAb.d.ts +0 -25
- package/dist/component-generics-DK3L_HfT.d.ts +0 -30
- package/dist/docs-Bbe2P0iM.d.ts +0 -47
- package/dist/index-B0GI632t.d.ts +0 -274
- package/dist/index-C8y-QK_S.d.ts +0 -15
- package/dist/index-CXNWVE3S.d.ts +0 -15
- package/dist/markdown-xEaREw5e.d.ts +0 -22
- package/dist/method-BRfK1KuU.d.ts +0 -71
- package/dist/method-BUQRaC59.d.ts +0 -71
- package/dist/navigation-C36vzOT-.d.ts +0 -29
- package/dist/overview-g0IyxCAY.d.ts +0 -39
- package/dist/primitives-COZrZCWZ.d.ts +0 -104
- package/dist/properties-BqjMaZ-l.d.ts +0 -54
- package/dist/routing-o8okAfJK.d.ts +0 -54
- package/dist/sdk-tq-VoVQP.d.ts +0 -118
- package/dist/sidebar-sPFdjATU.d.ts +0 -36
- package/dist/snippets-CVckJDzp.d.ts +0 -51
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-CAbhIZi1.js";
|
|
2
2
|
import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
|
|
3
3
|
import { t as useComponents } from "./use-components-DBx5LZk0.js";
|
|
4
|
-
import { t as style_default } from "./style-
|
|
4
|
+
import { t as style_default } from "./style-WTDMMzqU.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -210,13 +210,13 @@ function Declaration({ decl }) {
|
|
|
210
210
|
const Lang = useLanguageComponents();
|
|
211
211
|
if (!decl) return null;
|
|
212
212
|
switch (decl.kind) {
|
|
213
|
-
case "CSharpDeclConst": return /* @__PURE__ */
|
|
214
|
-
content:
|
|
213
|
+
case "CSharpDeclConst": return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(Docs.Tooltip, {
|
|
214
|
+
content: JSON.stringify(decl.value),
|
|
215
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
215
216
|
className: style_default.TextIdentifier,
|
|
216
|
-
children: decl.
|
|
217
|
-
})
|
|
218
|
-
|
|
219
|
-
})] });
|
|
217
|
+
children: decl.ident
|
|
218
|
+
})
|
|
219
|
+
}) });
|
|
220
220
|
case "CSharpDeclType": {
|
|
221
221
|
const keyword = decl.type.kind === "CSharpTypeEnum" ? "enum" : "class";
|
|
222
222
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { d as Resource, h as SpecLanguage, m as Spec, s as LanguageDeclNodes } from "./index-BtmA2psc.js";
|
|
1
2
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as _stainless_sdk_json0 from "@stainless/sdk-json";
|
|
4
|
-
import { LanguageDeclNodes, Spec, SpecLanguage } from "@stainless/sdk-json";
|
|
3
|
+
import * as react_jsx_runtime59 from "react/jsx-runtime";
|
|
5
4
|
|
|
6
5
|
//#region src/contexts/docs.d.ts
|
|
7
6
|
type ContentPanelLayout = 'double-pane' | 'single-pane';
|
|
@@ -31,7 +30,7 @@ declare function useSettings(): {
|
|
|
31
30
|
declare function useSnippet(stainlessPath: string, language?: SpecLanguage, variant?: string): string | undefined;
|
|
32
31
|
type Declaration = LanguageDeclNodes[SpecLanguage];
|
|
33
32
|
declare function useDeclaration<Required extends boolean>(stainlessPath: string, required: Required, language?: SpecLanguage): (Required extends true ? never : undefined) | Declaration;
|
|
34
|
-
declare function useResource(name: string):
|
|
33
|
+
declare function useResource(name: string): Resource | undefined;
|
|
35
34
|
declare function useLanguage(): "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
|
|
36
35
|
declare function useContentPanelLayout(): ContentPanelLayout;
|
|
37
36
|
type DocsProviderProps = DocsContextType & {
|
|
@@ -42,6 +41,6 @@ declare function DocsProvider({
|
|
|
42
41
|
language,
|
|
43
42
|
settings,
|
|
44
43
|
children
|
|
45
|
-
}: DocsProviderProps):
|
|
44
|
+
}: DocsProviderProps): react_jsx_runtime59.JSX.Element;
|
|
46
45
|
//#endregion
|
|
47
46
|
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 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-CAbhIZi1.js";
|
|
2
2
|
import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
|
|
3
3
|
import { t as useComponents } from "./use-components-DBx5LZk0.js";
|
|
4
|
-
import { t as style_default } from "./style-
|
|
4
|
+
import { t as style_default } from "./style-WTDMMzqU.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -2,8 +2,8 @@ import { t as __exportAll } from "./chunk-CAbhIZi1.js";
|
|
|
2
2
|
import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-CXqi26jB.js";
|
|
3
3
|
import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
|
|
4
4
|
import { t as useComponents } from "./use-components-DBx5LZk0.js";
|
|
5
|
-
import { t as style_default } from "./style-
|
|
6
|
-
import { i as PropertyToggle } from "./properties-
|
|
5
|
+
import { t as style_default } from "./style-WTDMMzqU.js";
|
|
6
|
+
import { i as PropertyToggle } from "./properties-WqNSu-9K.js";
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
|
|
@@ -249,7 +249,7 @@ function MethodInfo({ decl, children }) {
|
|
|
249
249
|
"data-stldocs-property-group": "body",
|
|
250
250
|
children: /* @__PURE__ */ jsx(Docs.SDKChildren, { paths: decl.bodyParamsChildren?.["application/json"] ?? [] })
|
|
251
251
|
})]
|
|
252
|
-
}));
|
|
252
|
+
}, "method-info-section"));
|
|
253
253
|
return /* @__PURE__ */ jsxs("div", {
|
|
254
254
|
className: style_default.MethodInfo,
|
|
255
255
|
children: [
|
|
@@ -0,0 +1,15 @@
|
|
|
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-Cw5uBUQk.js";
|
|
2
|
+
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-Bu4Lz7cO.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-ClPGsX68.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-Bn_hArWT.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-BiLj2q7E.js";
|
|
6
|
+
import { a as SnippetContainer, c as SnippetRequestContainer, i as SnippetCodeProps, l as SnippetRequestContainerProps, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetProps, t as Snippet, u as SnippetResponse } from "./snippets-CQrk6Dfj.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-CdbaBavs.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-DimNfsmt.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, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting };
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { index_d_exports as t };
|