@stainless-api/docs-ui 0.1.0-beta.91 → 0.1.0-beta.93
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-BaNU4WsC.d.ts → breadcrumbs-6s9Nm3WS.d.ts} +1 -1
- package/dist/components/MaskedInput.d.ts +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/index.d.ts +7 -7
- package/dist/components/index.js +2 -3
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +4 -2
- package/dist/components/primitives.d.ts +2 -2
- package/dist/components/primitives.js +1 -8
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +8 -4
- package/dist/components/snippets.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +1 -1
- package/dist/contexts/component.d.ts +1 -1
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +3 -3
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +1 -1
- package/dist/{docs-D0qzNoXq.d.ts → docs-CCsL1_Y6.d.ts} +1 -1
- package/dist/{index-DFr9Mesr.d.ts → index-BnjlyeQW.d.ts} +5 -3
- package/dist/{index-Dt9uPKZP.d.ts → index-CvadxEzQ.d.ts} +9 -9
- package/dist/index.d.ts +2 -2
- package/dist/languages/cli.d.ts +1 -1
- package/dist/languages/csharp.d.ts +1 -1
- package/dist/languages/csharp.js +5 -4
- package/dist/languages/go.d.ts +1 -1
- package/dist/languages/go.js +6 -2
- package/dist/languages/http.d.ts +1 -1
- package/dist/languages/http.js +6 -3
- package/dist/languages/index.d.ts +1 -1
- package/dist/languages/java.d.ts +1 -1
- package/dist/languages/java.js +5 -4
- package/dist/languages/php.d.ts +1 -1
- package/dist/languages/python.d.ts +1 -1
- package/dist/languages/python.js +8 -5
- package/dist/languages/ruby.d.ts +1 -1
- package/dist/languages/ruby.js +13 -4
- package/dist/languages/terraform.d.ts +1 -1
- package/dist/languages/typescript.d.ts +1 -1
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/md.d.ts +2 -1
- package/dist/markdown/md.js +5 -1
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/{navigation-DGl8lR6w.d.ts → navigation-0gY-w3QQ.d.ts} +1 -1
- package/dist/{overview-iH1evPEF.d.ts → overview-ByEjLgyh.d.ts} +1 -1
- package/dist/{primitives-BHt-BuLf.d.ts → primitives-I8l8KcZ1.d.ts} +1 -9
- package/dist/{routing-yTSG7nWM.d.ts → routing-BJ8MkvFn.d.ts} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/{sdk-BengV7mg.d.ts → sdk-Dh8yE8vs.d.ts} +2 -2
- package/dist/{sdk-sidebar-CRqLm3YO.d.ts → sdk-sidebar-uQZp3Qf-.d.ts} +1 -1
- package/dist/spec.d.ts +2 -2
- package/dist/style.d.ts +3 -0
- package/dist/style.js +3 -0
- package/dist/styles/main.css +7 -21
- package/dist/styles/primitives.css +14 -0
- package/dist/styles/sidebar.css +2 -1
- package/dist/styles.css +79 -80
- package/dist/utils.d.ts +1 -1
- package/package.json +6 -10
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-
|
|
1
|
+
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-6s9Nm3WS.js";
|
|
2
2
|
export { SDKBreadcrumbs, generateApiBreadcrumbs };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-
|
|
1
|
+
import { a as Link, c as Markdown, d as Tooltip, f as VirtualExpander, i as Join, l as ToggleButton, n as Input, o as ListView, r as InputProps, s as ListViewProps, t as Expander, u as ToggleButtonProps } from "../primitives-I8l8KcZ1.js";
|
|
2
|
+
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "../breadcrumbs-6s9Nm3WS.js";
|
|
3
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-BKJnP-rW.js";
|
|
4
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-CCbMRhSX.js";
|
|
5
|
-
import { A as useStreamingResponse, C as SDKRequestTitleProps, D as useDeclarationParents, E as TransformRequestSnippetFn, O as usePropertyModel, S as SDKRequestTitle, T as SDKSnippetLanguagesType, _ as SDKMethodNotImplemented, a as ReferenceNestingContextType, b as SDKModelProps, c as SDKConstraintsProps, d as SDKIcon, f as SDKLanguageBlock, g as SDKMethodInfoContent, h as SDKMethodInfo, i as ReferenceNestingContext, k as useReferenceNesting, l as SDKDeclaration, m as SDKMethodHeader, n as PropertyModelContext, o as SDKChildren, p as SDKMethod, r as PropertyModelContextType, s as SDKConstraints, t as DeclarationParentsContextType, u as SDKExample, v as SDKMethodProps, w as SDKSnippetLanguages, x as SDKReference, y as SDKModel } from "../sdk-
|
|
6
|
-
import { a as SnippetButtons, c as SnippetContainer, d as SnippetProps, f as SnippetRequestContainer, i as Snippet, l as SnippetContainerProps, m as SnippetResponse, n as MultiSnippets, o as SnippetCode, p as SnippetRequestContainerProps, r as MultiSnippetsProps, s as SnippetCodeProps, u as SnippetFooter } from "../index-
|
|
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-
|
|
8
|
-
import { n as SDKSidebarProps, t as SDKSidebar } from "../sdk-sidebar-
|
|
5
|
+
import { A as useStreamingResponse, C as SDKRequestTitleProps, D as useDeclarationParents, E as TransformRequestSnippetFn, O as usePropertyModel, S as SDKRequestTitle, T as SDKSnippetLanguagesType, _ as SDKMethodNotImplemented, a as ReferenceNestingContextType, b as SDKModelProps, c as SDKConstraintsProps, d as SDKIcon, f as SDKLanguageBlock, g as SDKMethodInfoContent, h as SDKMethodInfo, i as ReferenceNestingContext, k as useReferenceNesting, l as SDKDeclaration, m as SDKMethodHeader, n as PropertyModelContext, o as SDKChildren, p as SDKMethod, r as PropertyModelContextType, s as SDKConstraints, t as DeclarationParentsContextType, u as SDKExample, v as SDKMethodProps, w as SDKSnippetLanguages, x as SDKReference, y as SDKModel } from "../sdk-Dh8yE8vs.js";
|
|
6
|
+
import { a as SnippetButtons, c as SnippetContainer, d as SnippetProps, f as SnippetRequestContainer, i as Snippet, l as SnippetContainerProps, m as SnippetResponse, n as MultiSnippets, o as SnippetCode, p as SnippetRequestContainerProps, r as MultiSnippetsProps, s as SnippetCodeProps, u as SnippetFooter } from "../index-CvadxEzQ.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-ByEjLgyh.js";
|
|
8
|
+
import { n as SDKSidebarProps, t as SDKSidebar } from "../sdk-sidebar-uQZp3Qf-.js";
|
|
9
9
|
import { a as StlSidebarProps, i as StlSidebarLink, n as StlSidebarEntry, o as StlSidebarTarget, r as StlSidebarGroup, t as StlSidebar } from "../stl-sidebar-Pra9uCYo.js";
|
|
10
|
-
export {
|
|
10
|
+
export { DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as __exportAll } from "../chunk-pbuEa-1d.js";
|
|
2
2
|
import { Property, PropertyDescription, PropertyTitle, PropertyToggle } from "./properties.js";
|
|
3
3
|
import { Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute } from "./method.js";
|
|
4
|
-
import {
|
|
4
|
+
import { Expander, Input, Join, Link, ListView, Markdown, ToggleButton, Tooltip, VirtualExpander } from "./primitives.js";
|
|
5
5
|
import { PropertyModelContext, ReferenceNestingContext, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKModel, SDKReference, SDKRequestTitle, SDKSnippetLanguages, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse } from "./sdk.js";
|
|
6
6
|
import { MultiSnippets, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse } from "./snippets.js";
|
|
7
7
|
import { SDKMethodSummary, SDKOverview, SDKResource, SDKResourceHeader, SDKRoot } from "./overview.js";
|
|
@@ -10,7 +10,6 @@ import { StlSidebar } from "./stl-sidebar.js";
|
|
|
10
10
|
import { SDKSidebar } from "./sdk-sidebar.js";
|
|
11
11
|
//#region src/components/index.ts
|
|
12
12
|
var components_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
-
Badge: () => Badge,
|
|
14
13
|
Expander: () => Expander,
|
|
15
14
|
Input: () => Input,
|
|
16
15
|
Join: () => Join,
|
|
@@ -69,4 +68,4 @@ var components_exports = /* @__PURE__ */ __exportAll({
|
|
|
69
68
|
useStreamingResponse: () => useStreamingResponse
|
|
70
69
|
});
|
|
71
70
|
//#endregion
|
|
72
|
-
export {
|
|
71
|
+
export { Expander, Input, Join, Link, ListView, Markdown, Method, MethodDescription, MethodHeader, MethodInfo, MethodRoute, MultiSnippets, Property, PropertyDescription, PropertyModelContext, PropertyTitle, PropertyToggle, ReferenceNestingContext, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodSummary, SDKModel, SDKOverview, SDKReference, SDKRequestTitle, SDKResource, SDKResourceHeader, SDKRoot, SDKSidebar, SDKSnippetLanguages, Snippet, SnippetButtons, SnippetCode, SnippetContainer, SnippetFooter, SnippetRequestContainer, SnippetResponse, StlSidebar, ToggleButton, Tooltip, VirtualExpander, generateApiBreadcrumbs, components_exports as t, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-ByEjLgyh.js";
|
|
2
2
|
export { SDKMethodSummary, SDKMethodSummaryProps, SDKOverview, SDKOverviewProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps };
|
|
@@ -9,6 +9,7 @@ import { flatResources, getResourceFromSpec } from "../utils.js";
|
|
|
9
9
|
import * as React$1 from "react";
|
|
10
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
import { ChevronRight } from "lucide-react";
|
|
12
|
+
import { Badge } from "@stainless-api/ui-primitives";
|
|
12
13
|
//#region src/components/overview.tsx
|
|
13
14
|
function SDKResourceHeader({ resource, parents }) {
|
|
14
15
|
const segments = parents?.map((parent, index) => /* @__PURE__ */ jsxs("span", {
|
|
@@ -45,8 +46,9 @@ function SDKMethodSummary({ method }) {
|
|
|
45
46
|
children: method.summary || method.title
|
|
46
47
|
}),
|
|
47
48
|
signature: /* @__PURE__ */ jsx(Lang.MethodSignature, { decl }),
|
|
48
|
-
badges: method.deprecated && /* @__PURE__ */ jsx(
|
|
49
|
-
|
|
49
|
+
badges: method.deprecated && /* @__PURE__ */ jsx(Badge, {
|
|
50
|
+
intent: "danger",
|
|
51
|
+
size: "sm",
|
|
50
52
|
children: "Deprecated"
|
|
51
53
|
}),
|
|
52
54
|
children: /* @__PURE__ */ jsx(Docs.MethodRoute, {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export {
|
|
1
|
+
import { a as Link, c as Markdown, d as Tooltip, f as VirtualExpander, i as Join, l as ToggleButton, n as Input, o as ListView, r as InputProps, s as ListViewProps, t as Expander, u as ToggleButtonProps } from "../primitives-I8l8KcZ1.js";
|
|
2
|
+
export { Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, ToggleButton, ToggleButtonProps, Tooltip, VirtualExpander };
|
|
@@ -91,13 +91,6 @@ function Markdown({ content, style: cssStyle }) {
|
|
|
91
91
|
dangerouslySetInnerHTML: { __html: rendered }
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
function Badge({ id, children }) {
|
|
95
|
-
return /* @__PURE__ */ jsx("span", {
|
|
96
|
-
className: style_default.Badge,
|
|
97
|
-
"data-badge-id": id,
|
|
98
|
-
children: children ?? id
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
94
|
const TooltipNestingContext = createContext(false);
|
|
102
95
|
function Tooltip({ content, children }) {
|
|
103
96
|
if (use(TooltipNestingContext)) return children;
|
|
@@ -247,4 +240,4 @@ function ListView({ items, itemDelegate, onSelectListItem, ...rest }) {
|
|
|
247
240
|
});
|
|
248
241
|
}
|
|
249
242
|
//#endregion
|
|
250
|
-
export {
|
|
243
|
+
export { Expander, Input, Join, Link, ListView, Markdown, ToggleButton, Tooltip, VirtualExpander };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SDKSidebarProps, t as SDKSidebar } from "../sdk-sidebar-
|
|
1
|
+
import { n as SDKSidebarProps, t as SDKSidebar } from "../sdk-sidebar-uQZp3Qf-.js";
|
|
2
2
|
export { SDKSidebar, SDKSidebarProps };
|
package/dist/components/sdk.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as useStreamingResponse, C as SDKRequestTitleProps, D as useDeclarationParents, E as TransformRequestSnippetFn, O as usePropertyModel, S as SDKRequestTitle, T as SDKSnippetLanguagesType, _ as SDKMethodNotImplemented, a as ReferenceNestingContextType, b as SDKModelProps, c as SDKConstraintsProps, d as SDKIcon, f as SDKLanguageBlock, g as SDKMethodInfoContent, h as SDKMethodInfo, i as ReferenceNestingContext, k as useReferenceNesting, l as SDKDeclaration, m as SDKMethodHeader, n as PropertyModelContext, o as SDKChildren, p as SDKMethod, r as PropertyModelContextType, s as SDKConstraints, t as DeclarationParentsContextType, u as SDKExample, v as SDKMethodProps, w as SDKSnippetLanguages, x as SDKReference, y as SDKModel } from "../sdk-
|
|
1
|
+
import { A as useStreamingResponse, C as SDKRequestTitleProps, D as useDeclarationParents, E as TransformRequestSnippetFn, O as usePropertyModel, S as SDKRequestTitle, T as SDKSnippetLanguagesType, _ as SDKMethodNotImplemented, a as ReferenceNestingContextType, b as SDKModelProps, c as SDKConstraintsProps, d as SDKIcon, f as SDKLanguageBlock, g as SDKMethodInfoContent, h as SDKMethodInfo, i as ReferenceNestingContext, k as useReferenceNesting, l as SDKDeclaration, m as SDKMethodHeader, n as PropertyModelContext, o as SDKChildren, p as SDKMethod, r as PropertyModelContextType, s as SDKConstraints, t as DeclarationParentsContextType, u as SDKExample, v as SDKMethodProps, w as SDKSnippetLanguages, x as SDKReference, y as SDKModel } from "../sdk-Dh8yE8vs.js";
|
|
2
2
|
export { DeclarationParentsContextType, PropertyModelContext, PropertyModelContextType, ReferenceNestingContext, ReferenceNestingContextType, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKModel, SDKModelProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKSnippetLanguages, SDKSnippetLanguagesType, TransformRequestSnippetFn, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
package/dist/components/sdk.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as React$1 from "react";
|
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import clsx from "clsx";
|
|
11
11
|
import { BookOpenIcon, CopyIcon } from "lucide-react";
|
|
12
|
-
import { Button, Callout } from "@stainless-api/ui-primitives";
|
|
12
|
+
import { Badge, Button, Callout } from "@stainless-api/ui-primitives";
|
|
13
13
|
//#region src/components/sdk.tsx
|
|
14
14
|
const PropertyModelContext = React$1.createContext({});
|
|
15
15
|
function usePropertyModel() {
|
|
@@ -269,10 +269,14 @@ function SDKMethodHeader({ method }) {
|
|
|
269
269
|
level: "h1",
|
|
270
270
|
title: method.summary || method.title,
|
|
271
271
|
signature: /* @__PURE__ */ jsx(Lang.MethodSignature, { decl }),
|
|
272
|
-
badges: method.deprecated && /* @__PURE__ */
|
|
273
|
-
|
|
272
|
+
badges: method.deprecated && (typeof method.deprecated === "string" ? /* @__PURE__ */ jsxs(Callout, {
|
|
273
|
+
className: style_default.CalloutDeprecationWarning,
|
|
274
|
+
variant: "danger",
|
|
275
|
+
children: ["Deprecated: ", method.deprecated]
|
|
276
|
+
}) : /* @__PURE__ */ jsx(Badge, {
|
|
277
|
+
intent: "danger",
|
|
274
278
|
children: "Deprecated"
|
|
275
|
-
}),
|
|
279
|
+
})),
|
|
276
280
|
children: /* @__PURE__ */ jsx(Docs.MethodRoute, {
|
|
277
281
|
httpMethod: method.httpMethod,
|
|
278
282
|
endpoint: method.endpoint.split(" ", 2).at(-1)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SnippetButtons, c as SnippetContainer, d as SnippetProps, f as SnippetRequestContainer, i as Snippet, l as SnippetContainerProps, m as SnippetResponse, n as MultiSnippets, o as SnippetCode, p as SnippetRequestContainerProps, r as MultiSnippetsProps, s as SnippetCodeProps, u as SnippetFooter } from "../index-
|
|
1
|
+
import { a as SnippetButtons, c as SnippetContainer, d as SnippetProps, f as SnippetRequestContainer, i as Snippet, l as SnippetContainerProps, m as SnippetResponse, n as MultiSnippets, o as SnippetCode, p as SnippetRequestContainerProps, r as MultiSnippetsProps, s as SnippetCodeProps, u as SnippetFooter } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { MultiSnippets, MultiSnippetsProps, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as index_d_exports, y as index_d_exports$1 } from "../index-
|
|
1
|
+
import { t as index_d_exports, y as index_d_exports$1 } from "../index-CvadxEzQ.js";
|
|
2
2
|
import { n as ComponentsContextType } from "../component-generics-D9XaPlr8.js";
|
|
3
3
|
import React from "react";
|
|
4
4
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
package/dist/contexts/docs.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "../docs-
|
|
1
|
+
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "../docs-CCsL1_Y6.js";
|
|
2
2
|
export { ContentPanelLayout, Declaration, DocsContextType, DocsProvider, DocsProviderProps, PropertySettingsType, useAvailableLanguages, useContentPanelLayout, useDeclaration, useDocs, useIgnoredResources, useLanguage, useResource, useSettings, useSnippet, useSnippetIds, useSnippetResponse, useSnippets, useSpec };
|
package/dist/contexts/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as useLanguageComponents } from "../index-
|
|
2
|
-
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-
|
|
1
|
+
import { g as useLanguageComponents } from "../index-CvadxEzQ.js";
|
|
2
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-0gY-w3QQ.js";
|
|
3
3
|
import { a as SuspensefulMarkdownProvider, c as useRenderMarkdown, i as MarkdownProviderProps, n as MarkdownContextValue, o as useHighlight, r as MarkdownProvider, s as useMarkdownContext, t as MarkdownContext } from "../markdown-B30HO-Vy.js";
|
|
4
4
|
import { a as useComponents, i as useComponentContext, n as ComponentsContextType, r as customizeComponents, t as ComponentProvider } from "../component-generics-D9XaPlr8.js";
|
|
5
|
-
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "../docs-
|
|
5
|
+
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "../docs-CCsL1_Y6.js";
|
|
6
6
|
export { ComponentProvider, ComponentsContextType, ContentPanelLayout, Declaration, DocsContextType, DocsProvider, DocsProviderProps, MarkdownContext, MarkdownContextValue, MarkdownProvider, MarkdownProviderProps, NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, PropertySettingsType, SuspensefulMarkdownProvider, customizeComponents, useAvailableLanguages, useComponentContext, useComponents, useContentPanelLayout, useDeclaration, useDocs, useHighlight, useIgnoredResources, useLanguage, useLanguageComponents, useMarkdownContext, useNavigation, useRenderMarkdown, useResource, useSettings, useSnippet, useSnippetIds, useSnippetResponse, useSnippets, useSpec };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-
|
|
1
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "../navigation-0gY-w3QQ.js";
|
|
2
2
|
export { NavigationContextType, NavigationHandler, NavigationProvider, NavigationProviderProps, useNavigation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "./index-
|
|
1
|
+
import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "./index-BnjlyeQW.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
@@ -167,8 +167,8 @@ interface Config {
|
|
|
167
167
|
}[] | undefined;
|
|
168
168
|
} | undefined;
|
|
169
169
|
}
|
|
170
|
-
type InternalDiagnosticLevel = 'fatal' | 'internal_error' | 'error' | 'warning' | 'note';
|
|
171
|
-
type DiagnosticLevel = Exclude<InternalDiagnosticLevel, 'internal_error'>;
|
|
170
|
+
type InternalDiagnosticLevel = 'fatal' | 'user_generated_fatal' | 'internal_error' | 'error' | 'warning' | 'note';
|
|
171
|
+
type DiagnosticLevel = Exclude<InternalDiagnosticLevel, 'user_generated_fatal' | 'internal_error'>;
|
|
172
172
|
type AutoFixOp = SimplifyDeep<{
|
|
173
173
|
file: 'config';
|
|
174
174
|
} & Operation>;
|
|
@@ -1015,6 +1015,7 @@ type RubyIdentifier = string;
|
|
|
1015
1015
|
type RubyDeclReference = BaseDeclaration & {
|
|
1016
1016
|
kind: 'RubyDeclReference';
|
|
1017
1017
|
docstring?: string;
|
|
1018
|
+
ident?: RubyIdentifier;
|
|
1018
1019
|
type: RubyType;
|
|
1019
1020
|
children?: ID[];
|
|
1020
1021
|
};
|
|
@@ -1028,6 +1029,7 @@ type RubyTypeReference = BaseType & {
|
|
|
1028
1029
|
};
|
|
1029
1030
|
type RubyTypeObject = BaseType & {
|
|
1030
1031
|
kind: 'RubyTypeObject';
|
|
1032
|
+
ident: RubyIdentifier | null;
|
|
1031
1033
|
members: {
|
|
1032
1034
|
ident: RubyIdentifier;
|
|
1033
1035
|
optional?: boolean;
|
|
@@ -1507,7 +1509,7 @@ type SnippetLanguage<lang extends SpecLanguage = SpecLanguage> = (typeof Snippet
|
|
|
1507
1509
|
/**
|
|
1508
1510
|
* A literal property path from Spec down to a given node
|
|
1509
1511
|
*/
|
|
1510
|
-
type Type = HttpType | TSType | PythonType | GoType | RubyType | JavaType | CSharpType |
|
|
1512
|
+
type Type = HttpType | TSType | PythonType | GoType | RubyType | JavaType | CSharpType | AttributeType | PhpType;
|
|
1511
1513
|
type Spec = {
|
|
1512
1514
|
name: string;
|
|
1513
1515
|
kind: 'spec';
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { S as Type$10, a as GoAST, b as TSAST, d as Method, g as RubyAST, h as Resource$1, i as DeclarationNode, l as JavaAST, m as PythonAST, n as CLIAST, o as HasStainlessPath, p as PhpAST, r as CSharpAST, s as HttpAST, x as TerraformAST } from "./index-
|
|
3
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-
|
|
1
|
+
import { a as Link, c as Markdown, d as Tooltip, f as VirtualExpander, i as Join, l as ToggleButton, n as Input, o as ListView, r as InputProps, s as ListViewProps, t as Expander, u as ToggleButtonProps } from "./primitives-I8l8KcZ1.js";
|
|
2
|
+
import { S as Type$10, a as GoAST, b as TSAST, d as Method, g as RubyAST, h as Resource$1, i as DeclarationNode, l as JavaAST, m as PythonAST, n as CLIAST, o as HasStainlessPath, p as PhpAST, r as CSharpAST, s as HttpAST, x as TerraformAST } from "./index-BnjlyeQW.js";
|
|
3
|
+
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-6s9Nm3WS.js";
|
|
4
4
|
import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo$1, r as MethodDescriptionProps, s as MethodInfoProps, t as Method$1, u as MethodRouteProps } from "./method-BKJnP-rW.js";
|
|
5
5
|
import { a as PropertyTitle, c as PropertyToggleProps, i as PropertyProps$10, n as PropertyDescription, o as PropertyTitleProps, r as PropertyDescriptionProps, s as PropertyToggle, t as Property$10 } from "./properties-CCbMRhSX.js";
|
|
6
|
-
import { A as useStreamingResponse, C as SDKRequestTitleProps, D as useDeclarationParents, E as TransformRequestSnippetFn, O as usePropertyModel, S as SDKRequestTitle, T as SDKSnippetLanguagesType, _ as SDKMethodNotImplemented, a as ReferenceNestingContextType, b as SDKModelProps, c as SDKConstraintsProps, d as SDKIcon, f as SDKLanguageBlock, g as SDKMethodInfoContent, h as SDKMethodInfo, i as ReferenceNestingContext, k as useReferenceNesting, l as SDKDeclaration, m as SDKMethodHeader, n as PropertyModelContext, o as SDKChildren, p as SDKMethod, r as PropertyModelContextType, s as SDKConstraints, t as DeclarationParentsContextType, u as SDKExample, v as SDKMethodProps, w as SDKSnippetLanguages, x as SDKReference, y as SDKModel } from "./sdk-
|
|
7
|
-
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "./navigation-
|
|
6
|
+
import { A as useStreamingResponse, C as SDKRequestTitleProps, D as useDeclarationParents, E as TransformRequestSnippetFn, O as usePropertyModel, S as SDKRequestTitle, T as SDKSnippetLanguagesType, _ as SDKMethodNotImplemented, a as ReferenceNestingContextType, b as SDKModelProps, c as SDKConstraintsProps, d as SDKIcon, f as SDKLanguageBlock, g as SDKMethodInfoContent, h as SDKMethodInfo, i as ReferenceNestingContext, k as useReferenceNesting, l as SDKDeclaration, m as SDKMethodHeader, n as PropertyModelContext, o as SDKChildren, p as SDKMethod, r as PropertyModelContextType, s as SDKConstraints, t as DeclarationParentsContextType, u as SDKExample, v as SDKMethodProps, w as SDKSnippetLanguages, x as SDKReference, y as SDKModel } from "./sdk-Dh8yE8vs.js";
|
|
7
|
+
import { a as useNavigation, i as NavigationProviderProps, n as NavigationHandler, r as NavigationProvider, t as NavigationContextType } from "./navigation-0gY-w3QQ.js";
|
|
8
8
|
import { a as SuspensefulMarkdownProvider, c as useRenderMarkdown, i as MarkdownProviderProps, n as MarkdownContextValue, o as useHighlight, r as MarkdownProvider, s as useMarkdownContext, t as MarkdownContext } from "./markdown-B30HO-Vy.js";
|
|
9
9
|
import { a as useComponents, i as useComponentContext, n as ComponentsContextType, r as customizeComponents, t as ComponentProvider } from "./component-generics-D9XaPlr8.js";
|
|
10
|
-
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration$10, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "./docs-
|
|
11
|
-
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-
|
|
12
|
-
import { n as SDKSidebarProps, t as SDKSidebar } from "./sdk-sidebar-
|
|
10
|
+
import { _ as useSnippetResponse, a as DocsProviderProps, c as useContentPanelLayout, d as useIgnoredResources, f as useLanguage, g as useSnippetIds, h as useSnippet, i as DocsProvider, l as useDeclaration, m as useSettings, n as Declaration$10, o as PropertySettingsType, p as useResource, r as DocsContextType, s as useAvailableLanguages, t as ContentPanelLayout, u as useDocs, v as useSnippets, y as useSpec } from "./docs-CCsL1_Y6.js";
|
|
11
|
+
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-ByEjLgyh.js";
|
|
12
|
+
import { n as SDKSidebarProps, t as SDKSidebar } from "./sdk-sidebar-uQZp3Qf-.js";
|
|
13
13
|
import { a as StlSidebarProps, i as StlSidebarLink, n as StlSidebarEntry, o as StlSidebarTarget, r as StlSidebarGroup, t as StlSidebar } from "./stl-sidebar-Pra9uCYo.js";
|
|
14
14
|
import * as React$1 from "react";
|
|
15
15
|
import React, { ReactNode } from "react";
|
|
@@ -458,7 +458,7 @@ declare function SnippetResponse({
|
|
|
458
458
|
}[];
|
|
459
459
|
}): _$react_jsx_runtime0.JSX.Element | null;
|
|
460
460
|
declare namespace index_d_exports {
|
|
461
|
-
export {
|
|
461
|
+
export { DeclarationParentsContextType, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method$1 as Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo$1 as MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, MultiSnippets, MultiSnippetsProps, Property$10 as Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps$10 as PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodInfoContent, SDKMethodNotImplemented, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSidebar, SDKSidebarProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, StlSidebar, StlSidebarEntry, StlSidebarGroup, StlSidebarLink, StlSidebarProps, StlSidebarTarget, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, useDeclarationParents, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
462
462
|
}
|
|
463
463
|
//#endregion
|
|
464
464
|
export { Declaration$3 as $, TypeName$8 as $t, Type as A, MethodSignatureProps$5 as At, PropertyProps$1 as B, Property$7 as Bt, DeclarationProps as C, PropertyProps$5 as Ct, Resource as D, Declaration$6 as Dt, PropertyProps as E, ruby_d_exports as Et, Declaration$1 as F, python_d_exports as Ft, DeclarationProps$2 as G, go_d_exports as Gt, TypeName$1 as H, Type$7 as Ht, DeclarationProps$1 as I, Declaration$7 as It, Property$2 as J, MethodSignature$8 as Jt, MethodSignature$2 as K, Declaration$8 as Kt, MethodSignature$1 as L, DeclarationProps$7 as Lt, TypeProps as M, PropertyProps$6 as Mt, isResourceEntirelyUnsupported as N, Type$6 as Nt, ResourceProps as O, DeclarationProps$6 as Ot, terraform_d_exports as P, TypeName$6 as Pt, php_d_exports as Q, Type$8 as Qt, MethodSignatureProps as R, MethodSignature$7 as Rt, Declaration as S, Property$5 as St, Property as T, TypeName$5 as Tt, cli_d_exports as U, TypeName$7 as Ut, Type$1 as V, PropertyProps$7 as Vt, Declaration$2 as W, TypeProps$7 as Wt, Type$2 as X, Property$8 as Xt, PropertyProps$2 as Y, MethodSignatureProps$7 as Yt, TypeName$2 as Z, PropertyProps$8 as Zt, LanguageComponentDefinition as _, http_d_exports as _t, SnippetButtons as a, Property$9 as an, Type$3 as at, kotlin as b, MethodSignature$5 as bt, SnippetContainer as c, TypeName$9 as cn, Declaration$4 as ct, SnippetProps as d, MethodSignature$4 as dt, java_d_exports as en, DeclarationProps$3 as et, SnippetRequestContainer as f, MethodSignatureProps$3 as ft, useLanguageComponents as g, TypeName$4 as gt, index_d_exports$1 as h, Type$4 as ht, Snippet as i, MethodSignatureProps$8 as in, PropertyProps$3 as it, TypeName as j, Property$6 as jt, TerraformSource as k, MethodSignature$6 as kt, SnippetContainerProps as l, typescript_d_exports as ln, DeclarationProps$4 as lt, SnippetResponse as m, PropertyProps$4 as mt, MultiSnippets as n, DeclarationProps$9 as nn, MethodSignatureProps$2 as nt, SnippetCode as o, PropertyProps$9 as on, TypeName$3 as ot, SnippetRequestContainerProps as p, Property$4 as pt, MethodSignatureProps$1 as q, DeclarationProps$8 as qt, MultiSnippetsProps as r, MethodSignature$9 as rn, Property$3 as rt, SnippetCodeProps as s, Type$9 as sn, csharp_d_exports as st, index_d_exports as t, Declaration$9 as tn, MethodSignature$3 as tt, SnippetFooter as u, MethodInfo as ut, PropertyFn as v, Declaration$5 as vt, MethodSignature as w, Type$5 as wt, node as x, MethodSignatureProps$4 as xt, index_d_exports$2 as y, DeclarationProps$5 as yt, Property$1 as z, MethodSignatureProps$6 as zt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { v as routing_d_exports } from "./routing-
|
|
2
|
-
import { h as index_d_exports$1, t as index_d_exports, y as index_d_exports$2 } from "./index-
|
|
1
|
+
import { v as routing_d_exports } from "./routing-BJ8MkvFn.js";
|
|
2
|
+
import { h as index_d_exports$1, t as index_d_exports, y as index_d_exports$2 } from "./index-CvadxEzQ.js";
|
|
3
3
|
import { t as utils_d_exports } from "./utils.js";
|
|
4
4
|
import _default from "./style.js";
|
|
5
5
|
export { index_d_exports as components, index_d_exports$1 as contexts, index_d_exports$2 as languages, routing_d_exports as routing, _default as style, utils_d_exports as utils };
|
package/dist/languages/cli.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { B as PropertyProps, F as Declaration, H as TypeName, I as DeclarationProps, L as MethodSignature, R as MethodSignatureProps, V as Type, z as Property } from "../index-
|
|
1
|
+
import { B as PropertyProps, F as Declaration, H as TypeName, I as DeclarationProps, L as MethodSignature, R as MethodSignatureProps, V as Type, z as Property } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as Declaration, at as Type, et as DeclarationProps, it as PropertyProps, nt as MethodSignatureProps, ot as TypeName, rt as Property, tt as MethodSignature } from "../index-
|
|
1
|
+
import { $ as Declaration, at as Type, et as DeclarationProps, it as PropertyProps, nt as MethodSignatureProps, ot as TypeName, rt as Property, tt as MethodSignature } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
package/dist/languages/csharp.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useComponents } from "../contexts/use-components.js";
|
|
|
4
4
|
import style_default from "../style.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Badge } from "@stainless-api/ui-primitives";
|
|
7
8
|
//#region src/languages/csharp.tsx
|
|
8
9
|
var csharp_exports = /* @__PURE__ */ __exportAll({
|
|
9
10
|
Declaration: () => Declaration,
|
|
@@ -236,8 +237,8 @@ function Declaration({ decl }) {
|
|
|
236
237
|
" ",
|
|
237
238
|
/* @__PURE__ */ jsx(Docs.Tooltip, {
|
|
238
239
|
content: "A class that can be one of several variants.",
|
|
239
|
-
children: /* @__PURE__ */ jsx(
|
|
240
|
-
|
|
240
|
+
children: /* @__PURE__ */ jsx(Badge, {
|
|
241
|
+
size: "sm",
|
|
241
242
|
children: "union"
|
|
242
243
|
})
|
|
243
244
|
}),
|
|
@@ -268,8 +269,8 @@ function Declaration({ decl }) {
|
|
|
268
269
|
className: style_default.TextIdentifier,
|
|
269
270
|
children: decl.type.value
|
|
270
271
|
}),
|
|
271
|
-
children: /* @__PURE__ */ jsx(
|
|
272
|
-
|
|
272
|
+
children: /* @__PURE__ */ jsx(Badge, {
|
|
273
|
+
size: "sm",
|
|
273
274
|
children: "constant"
|
|
274
275
|
})
|
|
275
276
|
})] })
|
package/dist/languages/go.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Bt as Property, Ht as Type, It as Declaration, Lt as DeclarationProps, Rt as MethodSignature, Ut as TypeName, Vt as PropertyProps, Wt as TypeProps, zt as MethodSignatureProps } from "../index-
|
|
1
|
+
import { Bt as Property, Ht as Type, It as Declaration, Lt as DeclarationProps, Rt as MethodSignature, Ut as TypeName, Vt as PropertyProps, Wt as TypeProps, zt as MethodSignatureProps } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, TypeProps };
|
package/dist/languages/go.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useComponents } from "../contexts/use-components.js";
|
|
|
4
4
|
import style_default from "../style.js";
|
|
5
5
|
import * as React$1 from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { Badge } from "@stainless-api/ui-primitives";
|
|
7
8
|
//#region src/languages/go.tsx
|
|
8
9
|
var go_exports = /* @__PURE__ */ __exportAll({
|
|
9
10
|
Declaration: () => Declaration,
|
|
@@ -214,14 +215,17 @@ function MethodSignature({ decl }) {
|
|
|
214
215
|
});
|
|
215
216
|
}
|
|
216
217
|
function Property({ decl, children }) {
|
|
217
|
-
const Docs = useComponents();
|
|
218
218
|
const Lang = useLanguageComponents();
|
|
219
219
|
if (!decl) return null;
|
|
220
220
|
switch (decl.kind) {
|
|
221
221
|
case "GoDeclProperty": return children({
|
|
222
222
|
name: decl.ident,
|
|
223
223
|
typeName: /* @__PURE__ */ jsx(Lang.TypeName, { type: decl.type }),
|
|
224
|
-
badges: decl.optional && /* @__PURE__ */ jsx(
|
|
224
|
+
badges: decl.optional && /* @__PURE__ */ jsx(Badge, {
|
|
225
|
+
size: "sm",
|
|
226
|
+
intent: "info",
|
|
227
|
+
children: "Optional"
|
|
228
|
+
}),
|
|
225
229
|
type: (isField(decl.type) || decl.type.kind in ComplexTypes) && /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })
|
|
226
230
|
});
|
|
227
231
|
case "GoDeclConst": return children({
|
package/dist/languages/http.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ct as Declaration, dt as MethodSignature, ft as MethodSignatureProps, gt as TypeName, ht as Type, lt as DeclarationProps, mt as PropertyProps, pt as Property, ut as MethodInfo } from "../index-
|
|
1
|
+
import { ct as Declaration, dt as MethodSignature, ft as MethodSignatureProps, gt as TypeName, ht as Type, lt as DeclarationProps, mt as PropertyProps, pt as Property, ut as MethodInfo } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
package/dist/languages/http.js
CHANGED
|
@@ -198,9 +198,12 @@ function Type({ type }) {
|
|
|
198
198
|
className: style_default.TypePropertyName,
|
|
199
199
|
children: /* @__PURE__ */ jsx(Identifier, { name: ident })
|
|
200
200
|
}, ident));
|
|
201
|
-
return /* @__PURE__ */
|
|
201
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
202
202
|
className: style_default.Type,
|
|
203
|
-
children: /* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
204
|
+
className: style_default.TypePreviewPrefix,
|
|
205
|
+
children: "object"
|
|
206
|
+
}), /* @__PURE__ */ jsxs("span", {
|
|
204
207
|
className: style_default.TypePreview,
|
|
205
208
|
"data-stldocs-type-preview": "properties",
|
|
206
209
|
children: [
|
|
@@ -228,7 +231,7 @@ function Type({ type }) {
|
|
|
228
231
|
children: "} "
|
|
229
232
|
})
|
|
230
233
|
]
|
|
231
|
-
})
|
|
234
|
+
})]
|
|
232
235
|
});
|
|
233
236
|
}
|
|
234
237
|
default: return /* @__PURE__ */ jsx("span", {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Et as ruby_d_exports, Ft as python_d_exports, Gt as go_d_exports, P as terraform_d_exports, Q as php_d_exports, U as cli_d_exports, _ as LanguageComponentDefinition, _t as http_d_exports, b as kotlin, en as java_d_exports, ln as typescript_d_exports, st as csharp_d_exports, v as PropertyFn, x as node } from "../index-
|
|
1
|
+
import { Et as ruby_d_exports, Ft as python_d_exports, Gt as go_d_exports, P as terraform_d_exports, Q as php_d_exports, U as cli_d_exports, _ as LanguageComponentDefinition, _t as http_d_exports, b as kotlin, en as java_d_exports, ln as typescript_d_exports, st as csharp_d_exports, v as PropertyFn, x as node } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { LanguageComponentDefinition, PropertyFn, cli_d_exports as cli, csharp_d_exports as csharp, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, php_d_exports as php, python_d_exports as python, ruby_d_exports as ruby, terraform_d_exports as terraform, typescript_d_exports as typescript };
|
package/dist/languages/java.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $t as TypeName, Jt as MethodSignature, Kt as Declaration, Qt as Type, Xt as Property, Yt as MethodSignatureProps, Zt as PropertyProps, qt as DeclarationProps } from "../index-
|
|
1
|
+
import { $t as TypeName, Jt as MethodSignature, Kt as Declaration, Qt as Type, Xt as Property, Yt as MethodSignatureProps, Zt as PropertyProps, qt as DeclarationProps } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
package/dist/languages/java.js
CHANGED
|
@@ -5,6 +5,7 @@ import { useComponents } from "../contexts/use-components.js";
|
|
|
5
5
|
import style_default from "../style.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
import { Badge } from "@stainless-api/ui-primitives";
|
|
8
9
|
//#region src/languages/java.tsx
|
|
9
10
|
var java_exports = /* @__PURE__ */ __exportAll({
|
|
10
11
|
Declaration: () => Declaration,
|
|
@@ -318,8 +319,8 @@ function Declaration({ decl }) {
|
|
|
318
319
|
" ",
|
|
319
320
|
/* @__PURE__ */ jsx(Docs.Tooltip, {
|
|
320
321
|
content: "A class that can be one of several variants.",
|
|
321
|
-
children: /* @__PURE__ */ jsx(
|
|
322
|
-
|
|
322
|
+
children: /* @__PURE__ */ jsx(Badge, {
|
|
323
|
+
size: "sm",
|
|
323
324
|
children: "union"
|
|
324
325
|
})
|
|
325
326
|
}),
|
|
@@ -344,8 +345,8 @@ function Declaration({ decl }) {
|
|
|
344
345
|
className: style_default.TextIdentifier,
|
|
345
346
|
children: decl.type.value
|
|
346
347
|
}),
|
|
347
|
-
children: /* @__PURE__ */ jsx(
|
|
348
|
-
|
|
348
|
+
children: /* @__PURE__ */ jsx(Badge, {
|
|
349
|
+
size: "sm",
|
|
349
350
|
children: "constant"
|
|
350
351
|
})
|
|
351
352
|
})] }) : null;
|
package/dist/languages/php.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { G as DeclarationProps, J as Property, K as MethodSignature, W as Declaration, X as Type, Y as PropertyProps, Z as TypeName, q as MethodSignatureProps } from "../index-
|
|
1
|
+
import { G as DeclarationProps, J as Property, K as MethodSignature, W as Declaration, X as Type, Y as PropertyProps, Z as TypeName, q as MethodSignatureProps } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { At as MethodSignatureProps, Dt as Declaration, Mt as PropertyProps, Nt as Type, Ot as DeclarationProps, Pt as TypeName, jt as Property, kt as MethodSignature } from "../index-
|
|
1
|
+
import { At as MethodSignatureProps, Dt as Declaration, Mt as PropertyProps, Nt as Type, Ot as DeclarationProps, Pt as TypeName, jt as Property, kt as MethodSignature } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
package/dist/languages/python.js
CHANGED
|
@@ -66,12 +66,12 @@ function Type({ type }) {
|
|
|
66
66
|
children: [
|
|
67
67
|
/* @__PURE__ */ jsx("span", {
|
|
68
68
|
className: style_default.TypeArray,
|
|
69
|
-
children: "
|
|
69
|
+
children: "List["
|
|
70
70
|
}),
|
|
71
71
|
/* @__PURE__ */ jsx(Lang.Type, { type: type.elementType }),
|
|
72
72
|
/* @__PURE__ */ jsx("span", {
|
|
73
73
|
className: style_default.TypeArray,
|
|
74
|
-
children: "
|
|
74
|
+
children: "]"
|
|
75
75
|
})
|
|
76
76
|
]
|
|
77
77
|
});
|
|
@@ -93,12 +93,15 @@ function Type({ type }) {
|
|
|
93
93
|
const params = type.typeParameters?.map((param, key) => /* @__PURE__ */ jsx(Lang.Type, { type: param }, key));
|
|
94
94
|
return /* @__PURE__ */ jsxs("span", {
|
|
95
95
|
className: style_default.Type,
|
|
96
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
97
|
-
className:
|
|
96
|
+
children: [type.$ref ? /* @__PURE__ */ jsx("span", {
|
|
97
|
+
className: style_default.TypeReference,
|
|
98
98
|
children: /* @__PURE__ */ jsx(SDKReference, {
|
|
99
99
|
stainlessPath: type.$ref,
|
|
100
100
|
children: type.typeName
|
|
101
101
|
})
|
|
102
|
+
}) : /* @__PURE__ */ jsx("span", {
|
|
103
|
+
className: params && params.length > 0 ? style_default.TypeReferencePlain : style_default.TypeReference,
|
|
104
|
+
children: type.typeName
|
|
102
105
|
}), params && params.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
103
106
|
/* @__PURE__ */ jsx("span", {
|
|
104
107
|
className: style_default.TypeBracket,
|
|
@@ -226,7 +229,7 @@ function Declaration({ decl }) {
|
|
|
226
229
|
}),
|
|
227
230
|
decl.optional && !nullable ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
228
231
|
/* @__PURE__ */ jsx("span", {
|
|
229
|
-
className: style_default.
|
|
232
|
+
className: style_default.TypeReferencePlain,
|
|
230
233
|
children: "Optional"
|
|
231
234
|
}),
|
|
232
235
|
/* @__PURE__ */ jsx("span", {
|
package/dist/languages/ruby.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Ct as PropertyProps, St as Property, Tt as TypeName, bt as MethodSignature, vt as Declaration, wt as Type, xt as MethodSignatureProps, yt as DeclarationProps } from "../index-
|
|
1
|
+
import { Ct as PropertyProps, St as Property, Tt as TypeName, bt as MethodSignature, vt as Declaration, wt as Type, xt as MethodSignatureProps, yt as DeclarationProps } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
package/dist/languages/ruby.js
CHANGED
|
@@ -232,9 +232,12 @@ function Type({ type }) {
|
|
|
232
232
|
className: style_default.TextIdentifier,
|
|
233
233
|
children: prop.ident
|
|
234
234
|
}, key));
|
|
235
|
-
return /* @__PURE__ */
|
|
235
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
236
236
|
className: style_default.Type,
|
|
237
|
-
children: /* @__PURE__ */ jsx("span", {
|
|
237
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
238
|
+
className: style_default.TextIdentifier,
|
|
239
|
+
children: type.ident
|
|
240
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
238
241
|
className: style_default.TypePreview,
|
|
239
242
|
"data-stldocs-type-preview": "properties",
|
|
240
243
|
children: /* @__PURE__ */ jsxs("span", {
|
|
@@ -258,7 +261,7 @@ function Type({ type }) {
|
|
|
258
261
|
})
|
|
259
262
|
]
|
|
260
263
|
})
|
|
261
|
-
})
|
|
264
|
+
})]
|
|
262
265
|
});
|
|
263
266
|
}
|
|
264
267
|
}
|
|
@@ -378,7 +381,13 @@ function Declaration({ decl }) {
|
|
|
378
381
|
}),
|
|
379
382
|
/* @__PURE__ */ jsx(TypePreview, { path: decl.stainlessPath })
|
|
380
383
|
] });
|
|
381
|
-
case "RubyDeclReference": return /* @__PURE__ */
|
|
384
|
+
case "RubyDeclReference": return /* @__PURE__ */ jsxs(Fragment$1, { children: [decl.ident && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
|
|
385
|
+
className: style_default.TextIdentifier,
|
|
386
|
+
children: decl.ident
|
|
387
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
388
|
+
className: style_default.TextOperator,
|
|
389
|
+
children: " = "
|
|
390
|
+
})] }), /* @__PURE__ */ jsx(Lang.Type, { type: decl.type })] });
|
|
382
391
|
}
|
|
383
392
|
}
|
|
384
393
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as Type, C as DeclarationProps, D as Resource, E as PropertyProps, M as TypeProps, N as isResourceEntirelyUnsupported, O as ResourceProps, S as Declaration, T as Property, j as TypeName, k as TerraformSource, w as MethodSignature } from "../index-
|
|
1
|
+
import { A as Type, C as DeclarationProps, D as Resource, E as PropertyProps, M as TypeProps, N as isResourceEntirelyUnsupported, O as ResourceProps, S as Declaration, T as Property, j as TypeName, k as TerraformSource, w as MethodSignature } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps, isResourceEntirelyUnsupported };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { an as Property, cn as TypeName, in as MethodSignatureProps, nn as DeclarationProps, on as PropertyProps, rn as MethodSignature, sn as Type, tn as Declaration } from "../index-
|
|
1
|
+
import { an as Property, cn as TypeName, in as MethodSignatureProps, nn as DeclarationProps, on as PropertyProps, rn as MethodSignature, sn as Type, tn as Declaration } from "../index-CvadxEzQ.js";
|
|
2
2
|
export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
|
package/dist/markdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-
|
|
1
|
+
import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-BnjlyeQW.js";
|
|
2
2
|
import { EnvironmentType } from "./utils.js";
|
|
3
3
|
import { t as printer_d_exports } from "./printer.js";
|
|
4
4
|
import { Node } from "@markdoc/markdoc";
|