@stainless-api/docs-ui 0.1.0-beta.71 → 0.1.0-beta.72
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-Cvm5Ifm7.d.ts → breadcrumbs-46Qjx1Pd.d.ts} +3 -3
- package/dist/{breadcrumbs-7G1MoVzo.d.ts → breadcrumbs-BZ4wBC9-.d.ts} +3 -3
- package/dist/{breadcrumbs-DA4WgDhR.js → breadcrumbs-BiBfNqBI.js} +2 -2
- package/dist/{cli-DhMMZoiU.js → cli-hduQ5XS1.js} +3 -3
- package/dist/{component-Drp93QK-.js → component-BU8BTbqz.js} +2 -2
- package/dist/{component-generics-t_S0Wc9i.d.ts → component-generics-Bw4ZOyEG.d.ts} +2 -2
- package/dist/{component-generics-5cSjFCLn.d.ts → component-generics-D-WarFUb.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +1 -1
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +5 -5
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +14 -11
- package/dist/components/index.js +14 -14
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +5 -5
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +6 -6
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +4 -4
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +4 -4
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk-sidebar.js +5 -5
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +4 -4
- package/dist/components/snippets.d.ts +14 -3
- package/dist/components/snippets.js +5 -5
- package/dist/components/stl-sidebar.d.ts +1 -1
- package/dist/components/stl-sidebar.js +1 -1
- package/dist/{components-BbJAAdUU.js → components-9NMl1791.js} +10 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +13 -11
- package/dist/contexts/component.d.ts +15 -14
- package/dist/contexts/component.js +24 -24
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +2 -2
- package/dist/contexts/index.d.ts +14 -23
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +13 -10
- package/dist/{contexts-CVj20VV4.js → contexts-_NNW5yqC.js} +5 -2
- package/dist/{csharp-D6_jlynY.js → csharp-sn5CJu9t.js} +2 -2
- package/dist/{docs-CceV-0oK.d.ts → docs-Cu9Yl6-y.d.ts} +24 -6
- package/dist/docs-YgoQ3bzY.js +81 -0
- package/dist/{docs---kdT2w-.d.ts → docs-xb5wYGjM.d.ts} +24 -6
- package/dist/{go-COaHV3Hc.js → go-BoaAVmP0.js} +2 -2
- package/dist/{http-DVyJ-D6t.js → http-B3qTyMc3.js} +5 -5
- package/dist/index-BOmn7DHa.d.ts +428 -0
- package/dist/{index-Bc1tYWPC.d.ts → index-BvcPmB0r.d.ts} +85 -4
- package/dist/{index-CwjGm9zX.d.ts → index-W4Td2Hl7.d.ts} +46 -31
- package/dist/index.d.ts +14 -17
- package/dist/index.js +24 -24
- package/dist/{java-CxGSJVvv.js → java-BiLRuLuD.js} +3 -3
- package/dist/languages/cli.d.ts +13 -11
- package/dist/languages/cli.js +15 -15
- package/dist/languages/csharp.d.ts +13 -11
- package/dist/languages/csharp.js +4 -4
- package/dist/languages/go.d.ts +13 -11
- package/dist/languages/go.js +4 -4
- package/dist/languages/http.d.ts +13 -11
- package/dist/languages/http.js +14 -14
- package/dist/languages/index.d.ts +13 -11
- package/dist/languages/index.js +23 -23
- package/dist/languages/java.d.ts +13 -11
- package/dist/languages/java.js +4 -4
- package/dist/languages/python.d.ts +13 -11
- package/dist/languages/python.js +4 -4
- package/dist/languages/ruby.d.ts +13 -11
- package/dist/languages/ruby.js +4 -4
- package/dist/languages/terraform.d.ts +13 -11
- package/dist/languages/terraform.js +4 -4
- package/dist/languages/typescript.d.ts +13 -11
- package/dist/languages/typescript.js +4 -4
- package/dist/languages-vUhD5Hu_.js +30 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +24 -24
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +25 -25
- package/dist/markdown/utils.d.ts +4 -4
- package/dist/markdown/utils.js +3 -3
- package/dist/{markdown-HJXGh2Yn.d.ts → markdown-BszOPZhh.d.ts} +2 -2
- package/dist/{markdown-CTKHMLVr.js → markdown-Cq3XEhrR.js} +1 -1
- package/dist/{markdown-Cdh0TSHp.d.ts → markdown-plMAoN22.d.ts} +2 -2
- package/dist/{method-DPnfsySL.d.ts → method-C4PgTWAu.d.ts} +6 -6
- package/dist/{method-R97dH39J.d.ts → method-D6R_farj.d.ts} +6 -6
- package/dist/{method-iAV6cZjF.js → method-DjzVBzZe.js} +2 -2
- package/dist/{navigation-QXH2ufM3.d.ts → navigation-HiZWRl34.d.ts} +3 -3
- package/dist/{navigation-dh0gX_lm.d.ts → navigation-MrP4Ubbg.d.ts} +3 -3
- package/dist/{overview-Ddh84S6_.d.ts → overview-CTeKhpQq.d.ts} +7 -7
- package/dist/{overview-BR3WhCoz.d.ts → overview-Yf1PTJNi.d.ts} +7 -7
- package/dist/{overview-DQIrvYJr.js → overview-ocTARt-j.js} +5 -5
- package/dist/{primitives-DJEqe_r1.js → primitives-CNG-fEhQ.js} +3 -3
- package/dist/{primitives-D0h4FgbU.d.ts → primitives-K7NijV36.d.ts} +11 -11
- package/dist/{primitives-xbTKYFgQ.d.ts → primitives-WGxdBJDS.d.ts} +11 -11
- package/dist/{properties-CjUi1Cjx.d.ts → properties-Bu4nW9JD.d.ts} +5 -5
- package/dist/{properties-q3XaAaRo.d.ts → properties-Bynmj9_H.d.ts} +5 -5
- package/dist/{properties-PNuJPLqP.js → properties-DQU0NBzb.js} +2 -2
- package/dist/{python-DsTuWCKE.js → python-nqOBH7GS.js} +2 -2
- package/dist/{routing-utiR5mY3.d.ts → routing-pAL4V4hv.d.ts} +2 -2
- package/dist/routing.d.ts +1 -1
- package/dist/{ruby-BncKp6hd.js → ruby-BBc8HdIt.js} +3 -3
- package/dist/{sdk-Bw99eXxA.js → sdk-BSdgEEJw.js} +13 -7
- package/dist/{sdk-CSKStkB5.d.ts → sdk-BVCk1ox2.d.ts} +17 -17
- package/dist/{sdk-D3U444dU.d.ts → sdk-Dm0S-XQE.d.ts} +17 -17
- package/dist/{sdk-sidebar-f7SS4xxq.d.ts → sdk-sidebar-B1ehT_xI.d.ts} +3 -3
- package/dist/{sdk-sidebar-V_MTkVw8.js → sdk-sidebar-BDn8S1xS.js} +1 -1
- package/dist/{sdk-sidebar-Cf04O8rR.d.ts → sdk-sidebar-Dqeu7C1-.d.ts} +3 -3
- package/dist/snippets-CLpNVNlA.js +181 -0
- package/dist/spec.d.ts +4 -4
- package/dist/spec.js +1 -1
- package/dist/{stl-sidebar-CItXFC3n.d.ts → stl-sidebar-BTTErIJs.d.ts} +2 -2
- package/dist/{stl-sidebar-DpnXVa_V.d.ts → stl-sidebar-C7GNALtk.d.ts} +2 -2
- package/dist/{stl-sidebar-WtimNrk1.js → stl-sidebar-DC5UOJiT.js} +1 -1
- package/dist/{style-HpXpcJ9v.js → style-DJIYkFhO.js} +6 -0
- package/dist/style.d.ts +6 -0
- package/dist/style.js +1 -1
- package/dist/styles/main.css +53 -14
- package/dist/styles.css +53 -14
- package/dist/{terraform-B95X4rNK.js → terraform-DVx2ea2h.js} +3 -3
- package/dist/{typescript-n46M9OtL.js → typescript-Cmk-jBBw.js} +3 -3
- package/dist/utils.d.ts +1 -1
- package/package.json +2 -2
- package/dist/docs-BmOB2f-I.js +0 -61
- package/dist/index-Cuw1pZs8.d.ts +0 -16
- package/dist/index-DIchpgQZ.d.ts +0 -16
- package/dist/index-DSeLOs29.d.ts +0 -347
- package/dist/languages-C8iNdbjN.js +0 -30
- package/dist/snippets-BehbU3rt.js +0 -164
- package/dist/snippets-CMtWGDSE.d.ts +0 -53
- package/dist/snippets-DZAozdda.d.ts +0 -53
package/dist/utils.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs-ui",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.1.0-beta.
|
|
4
|
+
"version": "0.1.0-beta.72",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsdown": "^0.20.0",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"@stainless/eslint-config": "0.1.0-beta.1",
|
|
33
|
-
"@stainless/sdk-json": "^0.1.0-beta.
|
|
33
|
+
"@stainless/sdk-json": "^0.1.0-beta.5"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
package/dist/docs-BmOB2f-I.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/contexts/docs.tsx
|
|
5
|
-
const DocsContextDefaults = {
|
|
6
|
-
settings: {},
|
|
7
|
-
language: "node",
|
|
8
|
-
spec: null
|
|
9
|
-
};
|
|
10
|
-
const DocsContext = React$1.createContext(DocsContextDefaults);
|
|
11
|
-
function useDocs() {
|
|
12
|
-
return React$1.useContext(DocsContext);
|
|
13
|
-
}
|
|
14
|
-
function useSpec() {
|
|
15
|
-
return useDocs().spec;
|
|
16
|
-
}
|
|
17
|
-
function useSettings() {
|
|
18
|
-
return useDocs().settings;
|
|
19
|
-
}
|
|
20
|
-
function useSnippet(stainlessPath, language, variant) {
|
|
21
|
-
const defaultLanguage = useLanguage();
|
|
22
|
-
const snippetLanguage = [language ?? defaultLanguage, variant ?? "default"].join(".");
|
|
23
|
-
return useSpec()?.snippets?.[snippetLanguage]?.[stainlessPath];
|
|
24
|
-
}
|
|
25
|
-
function useDeclaration(stainlessPath, required, language) {
|
|
26
|
-
const defaultLanguage = useLanguage();
|
|
27
|
-
const decl = useSpec()?.decls?.[language ?? defaultLanguage]?.[stainlessPath];
|
|
28
|
-
if (required && !decl) throw new Error(`Declaration not found for '${stainlessPath}'`);
|
|
29
|
-
return decl;
|
|
30
|
-
}
|
|
31
|
-
function useAvailableLanguages(stainlessPath) {
|
|
32
|
-
const spec = useSpec();
|
|
33
|
-
return Object.keys(spec?.decls ?? {}).filter((lang) => spec?.decls?.[lang]?.[stainlessPath] !== void 0);
|
|
34
|
-
}
|
|
35
|
-
function useIgnoredResources() {
|
|
36
|
-
return ["(resource) webhooks > (model) unwrap_webhook_event > (schema)"];
|
|
37
|
-
}
|
|
38
|
-
function useResource(name) {
|
|
39
|
-
return useSpec()?.resources?.[name];
|
|
40
|
-
}
|
|
41
|
-
function useLanguage() {
|
|
42
|
-
return useDocs().language;
|
|
43
|
-
}
|
|
44
|
-
function useContentPanelLayout() {
|
|
45
|
-
return useDocs().settings?.contentPanelLayout ?? "double-pane";
|
|
46
|
-
}
|
|
47
|
-
function DocsProvider({ spec, language, settings, children }) {
|
|
48
|
-
const value = {
|
|
49
|
-
...DocsContextDefaults,
|
|
50
|
-
spec,
|
|
51
|
-
settings: settings ?? DocsContextDefaults.settings,
|
|
52
|
-
language: language ?? DocsContextDefaults.language
|
|
53
|
-
};
|
|
54
|
-
return /* @__PURE__ */ jsx(DocsContext.Provider, {
|
|
55
|
-
value,
|
|
56
|
-
children
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
//#endregion
|
|
61
|
-
export { useDocs as a, useResource as c, useSpec as d, useDeclaration as i, useSettings as l, useAvailableLanguages as n, useIgnoredResources as o, useContentPanelLayout as r, useLanguage as s, DocsProvider as t, useSnippet as u };
|
package/dist/index-Cuw1pZs8.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "./primitives-xbTKYFgQ.js";
|
|
2
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-Cvm5Ifm7.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-DPnfsySL.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-CjUi1Cjx.js";
|
|
5
|
-
import { C as SDKSnippetLanguagesType, D as useStreamingResponse, E as useReferenceNesting, S as SDKSnippetLanguages, T as usePropertyModel, _ as SDKModel, a as SDKChildren, b as SDKRequestTitle, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKMethodProps, h as SDKMethodNotImplemented, 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 SDKModelProps, w as TransformRequestSnippetFn, x as SDKRequestTitleProps, y as SDKReference } from "./sdk-D3U444dU.js";
|
|
6
|
-
import { a as SnippetContainer, c as SnippetProps, d as SnippetResponse, i as SnippetCodeProps, l as SnippetRequestContainer, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetFooter, t as Snippet, u as SnippetRequestContainerProps } from "./snippets-CMtWGDSE.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-Ddh84S6_.js";
|
|
8
|
-
import { n as SDKSidebarProps, t as SDKSidebar } from "./sdk-sidebar-Cf04O8rR.js";
|
|
9
|
-
import { a as StlSidebarProps, i as StlSidebarLink, n as StlSidebarEntry, o as StlSidebarTarget, r as StlSidebarGroup, t as StlSidebar } from "./stl-sidebar-CItXFC3n.js";
|
|
10
|
-
|
|
11
|
-
//#region src/components/index.d.ts
|
|
12
|
-
declare namespace index_d_exports {
|
|
13
|
-
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, 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, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { index_d_exports as t };
|
package/dist/index-DIchpgQZ.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "./primitives-D0h4FgbU.js";
|
|
2
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-7G1MoVzo.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-R97dH39J.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-q3XaAaRo.js";
|
|
5
|
-
import { C as SDKSnippetLanguagesType, D as useStreamingResponse, E as useReferenceNesting, S as SDKSnippetLanguages, T as usePropertyModel, _ as SDKModel, a as SDKChildren, b as SDKRequestTitle, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKMethodProps, h as SDKMethodNotImplemented, 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 SDKModelProps, w as TransformRequestSnippetFn, x as SDKRequestTitleProps, y as SDKReference } from "./sdk-CSKStkB5.js";
|
|
6
|
-
import { a as SnippetContainer, c as SnippetProps, d as SnippetResponse, i as SnippetCodeProps, l as SnippetRequestContainer, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetFooter, t as Snippet, u as SnippetRequestContainerProps } from "./snippets-DZAozdda.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-BR3WhCoz.js";
|
|
8
|
-
import { n as SDKSidebarProps, t as SDKSidebar } from "./sdk-sidebar-f7SS4xxq.js";
|
|
9
|
-
import { a as StlSidebarProps, i as StlSidebarLink, n as StlSidebarEntry, o as StlSidebarTarget, r as StlSidebarGroup, t as StlSidebar } from "./stl-sidebar-DpnXVa_V.js";
|
|
10
|
-
|
|
11
|
-
//#region src/components/index.d.ts
|
|
12
|
-
declare namespace index_d_exports {
|
|
13
|
-
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, 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, usePropertyModel, useReferenceNesting, useStreamingResponse };
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { index_d_exports as t };
|
package/dist/index-DSeLOs29.d.ts
DELETED
|
@@ -1,347 +0,0 @@
|
|
|
1
|
-
import { a as GoAST, b as TerraformAST, h as RubyAST, i as DeclarationNode, l as JavaAST, m as Resource$1, n as CLIAST, p as PythonAST, r as CSharpAST, s as HttpAST, x as Type$9, y as TSAST } from "./index-CwjGm9zX.js";
|
|
2
|
-
import { i as PropertyProps$9 } from "./properties-q3XaAaRo.js";
|
|
3
|
-
import * as React$1 from "react";
|
|
4
|
-
import React, { ReactNode } from "react";
|
|
5
|
-
import * as react_jsx_runtime95 from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
//#region src/languages/typescript.d.ts
|
|
8
|
-
declare namespace typescript_d_exports {
|
|
9
|
-
export { Declaration$8 as Declaration, DeclarationProps$8 as DeclarationProps, MethodSignature$8 as MethodSignature, MethodSignatureProps$7 as MethodSignatureProps, Property$8 as Property, PropertyProps$8 as PropertyProps, Type$8 as Type, TypeName$8 as TypeName };
|
|
10
|
-
}
|
|
11
|
-
type TypeProps$8 = {
|
|
12
|
-
type: TSAST.TSType;
|
|
13
|
-
};
|
|
14
|
-
declare function TypeName$8({
|
|
15
|
-
type
|
|
16
|
-
}: TypeProps$8): string | react_jsx_runtime95.JSX.Element;
|
|
17
|
-
declare function Type$8({
|
|
18
|
-
type
|
|
19
|
-
}: TypeProps$8): react_jsx_runtime95.JSX.Element;
|
|
20
|
-
type MethodSignatureProps$7 = {
|
|
21
|
-
decl: TSAST.TSDeclFunction;
|
|
22
|
-
};
|
|
23
|
-
declare function MethodSignature$8({
|
|
24
|
-
decl
|
|
25
|
-
}: MethodSignatureProps$7): react_jsx_runtime95.JSX.Element;
|
|
26
|
-
type PropertyProps$8 = {
|
|
27
|
-
decl: TSAST.TSDeclaration;
|
|
28
|
-
children: PropertyFn;
|
|
29
|
-
};
|
|
30
|
-
declare function Property$8({
|
|
31
|
-
decl,
|
|
32
|
-
children
|
|
33
|
-
}: PropertyProps$8): React$1.ReactNode;
|
|
34
|
-
type DeclarationProps$8 = {
|
|
35
|
-
decl: TSAST.TSDeclaration;
|
|
36
|
-
};
|
|
37
|
-
declare function Declaration$8({
|
|
38
|
-
decl
|
|
39
|
-
}: DeclarationProps$8): react_jsx_runtime95.JSX.Element | undefined;
|
|
40
|
-
declare namespace java_d_exports {
|
|
41
|
-
export { Declaration$7 as Declaration, DeclarationProps$7 as DeclarationProps, MethodSignature$7 as MethodSignature, MethodSignatureProps$6 as MethodSignatureProps, Property$7 as Property, PropertyProps$7 as PropertyProps, Type$7 as Type, TypeName$7 as TypeName };
|
|
42
|
-
}
|
|
43
|
-
type TypeProps$7 = {
|
|
44
|
-
type: JavaAST.JavaType;
|
|
45
|
-
optional?: boolean;
|
|
46
|
-
};
|
|
47
|
-
declare function TypeName$7({
|
|
48
|
-
type,
|
|
49
|
-
optional
|
|
50
|
-
}: TypeProps$7): react_jsx_runtime95.JSX.Element | "List";
|
|
51
|
-
declare function Type$7({
|
|
52
|
-
type,
|
|
53
|
-
optional
|
|
54
|
-
}: TypeProps$7): react_jsx_runtime95.JSX.Element;
|
|
55
|
-
type MethodSignatureProps$6 = {
|
|
56
|
-
decl: JavaAST.JavaDeclFunction;
|
|
57
|
-
};
|
|
58
|
-
declare function MethodSignature$7({
|
|
59
|
-
decl
|
|
60
|
-
}: MethodSignatureProps$6): react_jsx_runtime95.JSX.Element;
|
|
61
|
-
type PropertyProps$7 = {
|
|
62
|
-
decl: JavaAST.JavaDeclaration;
|
|
63
|
-
children: PropertyFn;
|
|
64
|
-
};
|
|
65
|
-
declare function Property$7({
|
|
66
|
-
decl,
|
|
67
|
-
children
|
|
68
|
-
}: PropertyProps$7): React$1.ReactNode;
|
|
69
|
-
type DeclarationProps$7 = {
|
|
70
|
-
decl: JavaAST.JavaDeclaration;
|
|
71
|
-
};
|
|
72
|
-
declare function Declaration$7({
|
|
73
|
-
decl
|
|
74
|
-
}: DeclarationProps$7): react_jsx_runtime95.JSX.Element | null | undefined;
|
|
75
|
-
declare namespace go_d_exports {
|
|
76
|
-
export { Declaration$6 as Declaration, DeclarationProps$6 as DeclarationProps, MethodSignature$6 as MethodSignature, MethodSignatureProps$5 as MethodSignatureProps, Property$6 as Property, PropertyProps$6 as PropertyProps, Type$6 as Type, TypeName$6 as TypeName, TypeProps$6 as TypeProps };
|
|
77
|
-
}
|
|
78
|
-
type TypeProps$6 = {
|
|
79
|
-
type: GoAST.GoType;
|
|
80
|
-
};
|
|
81
|
-
declare function TypeName$6({
|
|
82
|
-
type
|
|
83
|
-
}: TypeProps$6): string | react_jsx_runtime95.JSX.Element;
|
|
84
|
-
declare function Type$6({
|
|
85
|
-
type
|
|
86
|
-
}: TypeProps$6): react_jsx_runtime95.JSX.Element;
|
|
87
|
-
type MethodSignatureProps$5 = {
|
|
88
|
-
decl: GoAST.GoDeclFunction;
|
|
89
|
-
};
|
|
90
|
-
declare function MethodSignature$6({
|
|
91
|
-
decl
|
|
92
|
-
}: MethodSignatureProps$5): react_jsx_runtime95.JSX.Element;
|
|
93
|
-
type PropertyProps$6 = {
|
|
94
|
-
decl: GoAST.GoDeclaration;
|
|
95
|
-
children: PropertyFn;
|
|
96
|
-
};
|
|
97
|
-
declare function Property$6({
|
|
98
|
-
decl,
|
|
99
|
-
children
|
|
100
|
-
}: PropertyProps$6): React$1.ReactNode;
|
|
101
|
-
type DeclarationProps$6 = {
|
|
102
|
-
decl: GoAST.GoDeclaration;
|
|
103
|
-
};
|
|
104
|
-
declare function Declaration$6({
|
|
105
|
-
decl
|
|
106
|
-
}: DeclarationProps$6): react_jsx_runtime95.JSX.Element | undefined;
|
|
107
|
-
declare namespace python_d_exports {
|
|
108
|
-
export { Declaration$5 as Declaration, DeclarationProps$5 as DeclarationProps, MethodSignature$5 as MethodSignature, MethodSignatureProps$4 as MethodSignatureProps, Property$5 as Property, PropertyProps$5 as PropertyProps, Type$5 as Type, TypeName$5 as TypeName };
|
|
109
|
-
}
|
|
110
|
-
type TypeProps$5 = {
|
|
111
|
-
type: PythonAST.PythonType;
|
|
112
|
-
};
|
|
113
|
-
declare function TypeName$5({
|
|
114
|
-
type
|
|
115
|
-
}: TypeProps$5): string | react_jsx_runtime95.JSX.Element;
|
|
116
|
-
declare function Type$5({
|
|
117
|
-
type
|
|
118
|
-
}: TypeProps$5): react_jsx_runtime95.JSX.Element;
|
|
119
|
-
type MethodSignatureProps$4 = {
|
|
120
|
-
decl: PythonAST.PythonDeclFunction;
|
|
121
|
-
};
|
|
122
|
-
declare function MethodSignature$5({
|
|
123
|
-
decl
|
|
124
|
-
}: MethodSignatureProps$4): react_jsx_runtime95.JSX.Element;
|
|
125
|
-
type PropertyProps$5 = {
|
|
126
|
-
decl: PythonAST.PythonDeclaration;
|
|
127
|
-
children: PropertyFn;
|
|
128
|
-
};
|
|
129
|
-
declare function Property$5({
|
|
130
|
-
decl,
|
|
131
|
-
children
|
|
132
|
-
}: PropertyProps$5): React$1.ReactNode;
|
|
133
|
-
type DeclarationProps$5 = {
|
|
134
|
-
decl: PythonAST.PythonDeclaration;
|
|
135
|
-
};
|
|
136
|
-
declare function Declaration$5({
|
|
137
|
-
decl
|
|
138
|
-
}: DeclarationProps$5): react_jsx_runtime95.JSX.Element | undefined;
|
|
139
|
-
declare namespace ruby_d_exports {
|
|
140
|
-
export { Declaration$4 as Declaration, DeclarationProps$4 as DeclarationProps, MethodSignature$4 as MethodSignature, MethodSignatureProps$3 as MethodSignatureProps, Property$4 as Property, PropertyProps$4 as PropertyProps, Type$4 as Type, TypeName$4 as TypeName };
|
|
141
|
-
}
|
|
142
|
-
type TypeProps$4 = {
|
|
143
|
-
type: RubyAST.RubyType;
|
|
144
|
-
};
|
|
145
|
-
declare function TypeName$4({
|
|
146
|
-
type
|
|
147
|
-
}: TypeProps$4): string | react_jsx_runtime95.JSX.Element;
|
|
148
|
-
declare function Type$4({
|
|
149
|
-
type
|
|
150
|
-
}: TypeProps$4): react_jsx_runtime95.JSX.Element;
|
|
151
|
-
type MethodSignatureProps$3 = {
|
|
152
|
-
decl: RubyAST.RubyDeclFunction;
|
|
153
|
-
};
|
|
154
|
-
declare function MethodSignature$4({
|
|
155
|
-
decl
|
|
156
|
-
}: MethodSignatureProps$3): react_jsx_runtime95.JSX.Element;
|
|
157
|
-
type PropertyProps$4 = {
|
|
158
|
-
decl: RubyAST.RubyDeclaration;
|
|
159
|
-
children: PropertyFn;
|
|
160
|
-
};
|
|
161
|
-
declare function Property$4({
|
|
162
|
-
decl,
|
|
163
|
-
children
|
|
164
|
-
}: PropertyProps$4): React$1.ReactNode;
|
|
165
|
-
type DeclarationProps$4 = {
|
|
166
|
-
decl: RubyAST.RubyDeclaration;
|
|
167
|
-
};
|
|
168
|
-
declare function Declaration$4({
|
|
169
|
-
decl
|
|
170
|
-
}: DeclarationProps$4): react_jsx_runtime95.JSX.Element | undefined;
|
|
171
|
-
declare namespace http_d_exports {
|
|
172
|
-
export { Declaration$3 as Declaration, DeclarationProps$3 as DeclarationProps, MethodInfo, MethodSignature$3 as MethodSignature, MethodSignatureProps$2 as MethodSignatureProps, Property$3 as Property, PropertyProps$3 as PropertyProps, Type$3 as Type, TypeName$3 as TypeName };
|
|
173
|
-
}
|
|
174
|
-
type TypeProps$3 = {
|
|
175
|
-
type: HttpAST.HttpType;
|
|
176
|
-
};
|
|
177
|
-
declare function TypeName$3({
|
|
178
|
-
type
|
|
179
|
-
}: TypeProps$3): string | react_jsx_runtime95.JSX.Element;
|
|
180
|
-
declare function Type$3({
|
|
181
|
-
type
|
|
182
|
-
}: TypeProps$3): react_jsx_runtime95.JSX.Element;
|
|
183
|
-
type MethodSignatureProps$2 = {
|
|
184
|
-
decl: HttpAST.HttpDeclFunction;
|
|
185
|
-
};
|
|
186
|
-
declare function MethodSignature$3({
|
|
187
|
-
decl
|
|
188
|
-
}: MethodSignatureProps$2): null;
|
|
189
|
-
declare function MethodInfo({
|
|
190
|
-
decl,
|
|
191
|
-
children
|
|
192
|
-
}: MethodSignatureProps$2 & {
|
|
193
|
-
children: React.ReactNode;
|
|
194
|
-
}): react_jsx_runtime95.JSX.Element;
|
|
195
|
-
type PropertyProps$3 = {
|
|
196
|
-
decl: HttpAST.HttpDeclaration;
|
|
197
|
-
children: PropertyFn;
|
|
198
|
-
};
|
|
199
|
-
declare function Property$3({
|
|
200
|
-
decl,
|
|
201
|
-
children
|
|
202
|
-
}: PropertyProps$3): React.ReactNode;
|
|
203
|
-
type DeclarationProps$3 = {
|
|
204
|
-
decl: HttpAST.HttpDeclaration;
|
|
205
|
-
};
|
|
206
|
-
declare function Declaration$3({
|
|
207
|
-
decl
|
|
208
|
-
}: DeclarationProps$3): react_jsx_runtime95.JSX.Element | undefined;
|
|
209
|
-
declare namespace csharp_d_exports {
|
|
210
|
-
export { Declaration$2 as Declaration, DeclarationProps$2 as DeclarationProps, MethodSignature$2 as MethodSignature, MethodSignatureProps$1 as MethodSignatureProps, Property$2 as Property, PropertyProps$2 as PropertyProps, Type$2 as Type, TypeName$2 as TypeName };
|
|
211
|
-
}
|
|
212
|
-
declare function TypeName$2({
|
|
213
|
-
type,
|
|
214
|
-
optional
|
|
215
|
-
}: TypeProps$2): react_jsx_runtime95.JSX.Element;
|
|
216
|
-
type TypeProps$2 = {
|
|
217
|
-
type: CSharpAST.CSharpType;
|
|
218
|
-
optional?: boolean;
|
|
219
|
-
};
|
|
220
|
-
declare function Type$2({
|
|
221
|
-
type
|
|
222
|
-
}: TypeProps$2): react_jsx_runtime95.JSX.Element;
|
|
223
|
-
type MethodSignatureProps$1 = {
|
|
224
|
-
decl: CSharpAST.CSharpDeclFunction;
|
|
225
|
-
};
|
|
226
|
-
declare function MethodSignature$2({
|
|
227
|
-
decl
|
|
228
|
-
}: MethodSignatureProps$1): react_jsx_runtime95.JSX.Element;
|
|
229
|
-
type PropertyProps$2 = {
|
|
230
|
-
decl: CSharpAST.CSharpDeclaration;
|
|
231
|
-
children: PropertyFn;
|
|
232
|
-
};
|
|
233
|
-
declare function Property$2({
|
|
234
|
-
decl,
|
|
235
|
-
children
|
|
236
|
-
}: PropertyProps$2): React$1.ReactNode;
|
|
237
|
-
type DeclarationProps$2 = {
|
|
238
|
-
decl: CSharpAST.CSharpDeclaration;
|
|
239
|
-
};
|
|
240
|
-
declare function Declaration$2({
|
|
241
|
-
decl
|
|
242
|
-
}: DeclarationProps$2): react_jsx_runtime95.JSX.Element | null | undefined;
|
|
243
|
-
declare namespace cli_d_exports {
|
|
244
|
-
export { Declaration$1 as Declaration, DeclarationProps$1 as DeclarationProps, MethodSignature$1 as MethodSignature, MethodSignatureProps, Property$1 as Property, PropertyProps$1 as PropertyProps, Type$1 as Type, TypeName$1 as TypeName };
|
|
245
|
-
}
|
|
246
|
-
type TypeProps$1 = {
|
|
247
|
-
type: HttpAST.HttpType;
|
|
248
|
-
};
|
|
249
|
-
declare function TypeName$1(props: TypeProps$1): string | react_jsx_runtime95.JSX.Element;
|
|
250
|
-
declare function Type$1({
|
|
251
|
-
type
|
|
252
|
-
}: TypeProps$1): react_jsx_runtime95.JSX.Element;
|
|
253
|
-
type MethodSignatureProps = {
|
|
254
|
-
decl: CLIAST.CLICommand;
|
|
255
|
-
};
|
|
256
|
-
declare function MethodSignature$1({
|
|
257
|
-
decl
|
|
258
|
-
}: MethodSignatureProps): react_jsx_runtime95.JSX.Element;
|
|
259
|
-
type PropertyProps$1 = {
|
|
260
|
-
decl: CLIAST.CLIDeclaration;
|
|
261
|
-
children: PropertyFn;
|
|
262
|
-
};
|
|
263
|
-
declare function Property$1({
|
|
264
|
-
decl,
|
|
265
|
-
children
|
|
266
|
-
}: PropertyProps$1): React.ReactNode;
|
|
267
|
-
type DeclarationProps$1 = {
|
|
268
|
-
decl: CLIAST.CLIDeclaration;
|
|
269
|
-
};
|
|
270
|
-
declare function Declaration$1({
|
|
271
|
-
decl
|
|
272
|
-
}: DeclarationProps$1): react_jsx_runtime95.JSX.Element | undefined;
|
|
273
|
-
declare namespace terraform_d_exports {
|
|
274
|
-
export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps };
|
|
275
|
-
}
|
|
276
|
-
type TypeProps = {
|
|
277
|
-
type: TerraformAST.AttributeType;
|
|
278
|
-
};
|
|
279
|
-
declare function TypeName({
|
|
280
|
-
type
|
|
281
|
-
}: TypeProps): react_jsx_runtime95.JSX.Element;
|
|
282
|
-
declare function Type({
|
|
283
|
-
type
|
|
284
|
-
}: TypeProps): react_jsx_runtime95.JSX.Element | undefined;
|
|
285
|
-
declare function MethodSignature(): null;
|
|
286
|
-
type PropertyProps = {
|
|
287
|
-
decl: TerraformAST.TerraformDeclaration;
|
|
288
|
-
children: PropertyFn;
|
|
289
|
-
};
|
|
290
|
-
declare function Property({
|
|
291
|
-
decl,
|
|
292
|
-
children
|
|
293
|
-
}: PropertyProps): React$1.ReactNode;
|
|
294
|
-
declare function TerraformSource({
|
|
295
|
-
path,
|
|
296
|
-
group
|
|
297
|
-
}: {
|
|
298
|
-
path: string;
|
|
299
|
-
group: string;
|
|
300
|
-
}): react_jsx_runtime95.JSX.Element | undefined;
|
|
301
|
-
type DeclarationProps = {
|
|
302
|
-
decl: TerraformAST.TerraformDeclaration;
|
|
303
|
-
};
|
|
304
|
-
declare function Declaration({
|
|
305
|
-
decl
|
|
306
|
-
}: DeclarationProps): react_jsx_runtime95.JSX.Element | undefined;
|
|
307
|
-
type ResourceProps = {
|
|
308
|
-
resource: Resource$1;
|
|
309
|
-
};
|
|
310
|
-
declare function Resource({
|
|
311
|
-
resource
|
|
312
|
-
}: ResourceProps): react_jsx_runtime95.JSX.Element;
|
|
313
|
-
declare namespace index_d_exports {
|
|
314
|
-
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, python_d_exports as python, ruby_d_exports as ruby, terraform_d_exports as terraform, typescript_d_exports as typescript };
|
|
315
|
-
}
|
|
316
|
-
declare const node: typeof typescript_d_exports;
|
|
317
|
-
declare const kotlin: typeof java_d_exports;
|
|
318
|
-
type PropertyFn = (params: PropertyProps$9) => ReactNode;
|
|
319
|
-
interface LanguageComponentDefinition {
|
|
320
|
-
Declaration(props: {
|
|
321
|
-
decl: DeclarationNode;
|
|
322
|
-
}): ReactNode;
|
|
323
|
-
Property(props: {
|
|
324
|
-
decl: DeclarationNode;
|
|
325
|
-
children: PropertyFn;
|
|
326
|
-
}): ReactNode;
|
|
327
|
-
TypeName(props: {
|
|
328
|
-
type: Type$9;
|
|
329
|
-
optional?: boolean;
|
|
330
|
-
}): ReactNode;
|
|
331
|
-
Type(props: {
|
|
332
|
-
type: Type$9;
|
|
333
|
-
optional?: boolean;
|
|
334
|
-
}): ReactNode;
|
|
335
|
-
MethodSignature(props: {
|
|
336
|
-
decl: DeclarationNode;
|
|
337
|
-
}): ReactNode;
|
|
338
|
-
MethodInfo?(props: {
|
|
339
|
-
decl: DeclarationNode;
|
|
340
|
-
children?: ReactNode;
|
|
341
|
-
}): ReactNode;
|
|
342
|
-
Resource?(props: {
|
|
343
|
-
resource: Resource$1;
|
|
344
|
-
}): ReactNode;
|
|
345
|
-
}
|
|
346
|
-
//#endregion
|
|
347
|
-
export { TypeName$4 as $, MethodSignatureProps$1 as A, DeclarationProps$8 as At, MethodSignatureProps$2 as B, PropertyProps$1 as C, MethodSignatureProps$6 as Ct, Declaration$2 as D, TypeName$7 as Dt, cli_d_exports as E, Type$7 as Et, csharp_d_exports as F, Type$8 as Ft, http_d_exports as G, PropertyProps$3 as H, Declaration$3 as I, TypeName$8 as It, MethodSignature$4 as J, Declaration$4 as K, DeclarationProps$3 as L, typescript_d_exports as Lt, PropertyProps$2 as M, MethodSignatureProps$7 as Mt, Type$2 as N, Property$8 as Nt, DeclarationProps$2 as O, java_d_exports as Ot, TypeName$2 as P, PropertyProps$8 as Pt, Type$4 as Q, MethodInfo as R, Property$1 as S, MethodSignature$7 as St, TypeName$1 as T, PropertyProps$7 as Tt, Type$3 as U, Property$3 as V, TypeName$3 as W, Property$4 as X, MethodSignatureProps$3 as Y, PropertyProps$4 as Z, terraform_d_exports as _, TypeName$6 as _t, node as a, Property$5 as at, MethodSignature$1 as b, Declaration$7 as bt, MethodSignature as c, TypeName$5 as ct, Resource as d, DeclarationProps$6 as dt, ruby_d_exports as et, ResourceProps as f, MethodSignature$6 as ft, TypeProps as g, Type$6 as gt, TypeName as h, PropertyProps$6 as ht, kotlin as i, MethodSignatureProps$4 as it, Property$2 as j, MethodSignature$8 as jt, MethodSignature$2 as k, Declaration$8 as kt, Property as l, python_d_exports as lt, Type as m, Property$6 as mt, PropertyFn as n, DeclarationProps$5 as nt, Declaration as o, PropertyProps$5 as ot, TerraformSource as p, MethodSignatureProps$5 as pt, DeclarationProps$4 as q, index_d_exports as r, MethodSignature$5 as rt, DeclarationProps as s, Type$5 as st, LanguageComponentDefinition as t, Declaration$5 as tt, PropertyProps as u, Declaration$6 as ut, Declaration$1 as v, TypeProps$6 as vt, Type$1 as w, Property$7 as wt, MethodSignatureProps as x, DeclarationProps$7 as xt, DeclarationProps$1 as y, go_d_exports as yt, MethodSignature$3 as z };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { o as typescript_exports } from "./typescript-n46M9OtL.js";
|
|
3
|
-
import { o as java_exports } from "./java-CxGSJVvv.js";
|
|
4
|
-
import { o as go_exports } from "./go-COaHV3Hc.js";
|
|
5
|
-
import { o as python_exports } from "./python-DsTuWCKE.js";
|
|
6
|
-
import { o as ruby_exports } from "./ruby-BncKp6hd.js";
|
|
7
|
-
import { s as http_exports } from "./http-DVyJ-D6t.js";
|
|
8
|
-
import { o as csharp_exports } from "./csharp-D6_jlynY.js";
|
|
9
|
-
import { o as cli_exports } from "./cli-DhMMZoiU.js";
|
|
10
|
-
import { c as terraform_exports } from "./terraform-B95X4rNK.js";
|
|
11
|
-
|
|
12
|
-
//#region src/languages/index.ts
|
|
13
|
-
var languages_exports = /* @__PURE__ */ __exportAll({
|
|
14
|
-
cli: () => cli_exports,
|
|
15
|
-
csharp: () => csharp_exports,
|
|
16
|
-
go: () => go_exports,
|
|
17
|
-
http: () => http_exports,
|
|
18
|
-
java: () => java_exports,
|
|
19
|
-
kotlin: () => kotlin,
|
|
20
|
-
node: () => node,
|
|
21
|
-
python: () => python_exports,
|
|
22
|
-
ruby: () => ruby_exports,
|
|
23
|
-
terraform: () => terraform_exports,
|
|
24
|
-
typescript: () => typescript_exports
|
|
25
|
-
});
|
|
26
|
-
const node = typescript_exports;
|
|
27
|
-
const kotlin = java_exports;
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { languages_exports as n, node as r, kotlin as t };
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { i as useDeclaration, s as useLanguage, u as useSnippet } from "./docs-BmOB2f-I.js";
|
|
2
|
-
import { r as useHighlight } from "./markdown-CTKHMLVr.js";
|
|
3
|
-
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
4
|
-
import { t as style_default } from "./style-HpXpcJ9v.js";
|
|
5
|
-
import * as React$1 from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import clsx from "clsx";
|
|
8
|
-
import { CheckIcon, CircleAlertIcon, CopyIcon } from "lucide-react";
|
|
9
|
-
import { Badge, Button, getHttpMethod } from "@stainless-api/ui-primitives";
|
|
10
|
-
|
|
11
|
-
//#region src/components/snippets.tsx
|
|
12
|
-
function SnippetCode({ content, language }) {
|
|
13
|
-
const lang = useLanguage();
|
|
14
|
-
const highlighted = useHighlight(content, language || lang);
|
|
15
|
-
return /* @__PURE__ */ jsx("div", {
|
|
16
|
-
className: style_default.SnippetCode,
|
|
17
|
-
"data-stldocs-copy-content": true,
|
|
18
|
-
dangerouslySetInnerHTML: { __html: highlighted }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function SnippetContainer({ children }) {
|
|
22
|
-
return /* @__PURE__ */ jsx("div", {
|
|
23
|
-
className: clsx(style_default.Snippet),
|
|
24
|
-
children
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function SnippetRequestContainer({ children }) {
|
|
28
|
-
return /* @__PURE__ */ jsx("div", { children });
|
|
29
|
-
}
|
|
30
|
-
function Snippet({ requestTitle, method, transformRequestSnippet }) {
|
|
31
|
-
const Docs = useComponents();
|
|
32
|
-
const language = useLanguage();
|
|
33
|
-
const originalSnippet = useSnippet(method.stainlessPath, void 0, language === "http" ? "curl" : "default");
|
|
34
|
-
const decl = useDeclaration(method.stainlessPath, false);
|
|
35
|
-
if (!originalSnippet) {
|
|
36
|
-
console.warn(`Snippet not found for method '${method.stainlessPath}'`);
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
const signature = decl && "qualified" in decl ? decl.qualified : void 0;
|
|
40
|
-
const responses = method.exampleResponses;
|
|
41
|
-
const snippet = transformRequestSnippet ? transformRequestSnippet({
|
|
42
|
-
snippet: originalSnippet,
|
|
43
|
-
language
|
|
44
|
-
}) : originalSnippet;
|
|
45
|
-
const httpMethod = getHttpMethod(method.httpMethod);
|
|
46
|
-
return /* @__PURE__ */ jsxs(Docs.SnippetContainer, {
|
|
47
|
-
signature,
|
|
48
|
-
method,
|
|
49
|
-
children: [snippet && /* @__PURE__ */ jsx(Docs.SnippetRequestContainer, {
|
|
50
|
-
signature,
|
|
51
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
52
|
-
className: style_default.SnippetRequest,
|
|
53
|
-
"data-stldocs-copy-parent": true,
|
|
54
|
-
children: [
|
|
55
|
-
/* @__PURE__ */ jsxs("div", {
|
|
56
|
-
className: style_default.SnippetRequestTitle,
|
|
57
|
-
children: [
|
|
58
|
-
/* @__PURE__ */ jsxs("div", {
|
|
59
|
-
className: style_default.SnippetRequestTitleMethod,
|
|
60
|
-
children: [httpMethod && /* @__PURE__ */ jsx(Badge.HTTP, {
|
|
61
|
-
method: httpMethod,
|
|
62
|
-
iconOnly: true
|
|
63
|
-
}), /* @__PURE__ */ jsx("h3", { children: method.summary || method.title })]
|
|
64
|
-
}),
|
|
65
|
-
/* @__PURE__ */ jsx("div", {
|
|
66
|
-
className: style_default.SnippetRequestTitleContent,
|
|
67
|
-
children: requestTitle
|
|
68
|
-
}),
|
|
69
|
-
/* @__PURE__ */ jsx(Docs.SnippetButtons, { content: snippet })
|
|
70
|
-
]
|
|
71
|
-
}),
|
|
72
|
-
/* @__PURE__ */ jsx(Docs.SnippetCode, {
|
|
73
|
-
content: snippet,
|
|
74
|
-
signature
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ jsx(Docs.SnippetFooter, {})
|
|
77
|
-
]
|
|
78
|
-
})
|
|
79
|
-
}), responses && /* @__PURE__ */ jsx(Docs.SnippetResponse, { responses })]
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
function SnippetButtons({ content }) {
|
|
83
|
-
const [CopyButtonIcon, setCopyIcon] = React$1.useState(CopyIcon);
|
|
84
|
-
async function handleCopy() {
|
|
85
|
-
try {
|
|
86
|
-
await navigator.clipboard.writeText(content);
|
|
87
|
-
setCopyIcon(CheckIcon);
|
|
88
|
-
} catch {
|
|
89
|
-
setCopyIcon(CircleAlertIcon);
|
|
90
|
-
}
|
|
91
|
-
setTimeout(() => setCopyIcon(CopyIcon), 1e3);
|
|
92
|
-
}
|
|
93
|
-
return /* @__PURE__ */ jsx(Button, {
|
|
94
|
-
variant: "outline",
|
|
95
|
-
"data-stldocs-snippet-copy": true,
|
|
96
|
-
children: /* @__PURE__ */ jsx(CopyButtonIcon, {
|
|
97
|
-
size: 16,
|
|
98
|
-
className: style_default.Icon,
|
|
99
|
-
onClick: handleCopy
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function SnippetFooter() {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
function SnippetResponse({ responses }) {
|
|
107
|
-
const { SnippetCode } = useComponents();
|
|
108
|
-
if (!responses) return null;
|
|
109
|
-
const mappedResponses = Object.keys(responses).map((key) => {
|
|
110
|
-
const responseContent = responses[key];
|
|
111
|
-
if (!responseContent) return null;
|
|
112
|
-
const responseType = Object.keys(responseContent)[0];
|
|
113
|
-
if (!responseType) return null;
|
|
114
|
-
const response = responseContent[responseType];
|
|
115
|
-
if (!response) return null;
|
|
116
|
-
const examples = response?.examples;
|
|
117
|
-
if (!examples) return null;
|
|
118
|
-
const exampleType = Object.keys(examples)[0];
|
|
119
|
-
if (!exampleType) return null;
|
|
120
|
-
let value = examples[exampleType]?.value;
|
|
121
|
-
if (!value) return null;
|
|
122
|
-
let language = "none";
|
|
123
|
-
if (responseType === "application/json" || typeof value === "object") {
|
|
124
|
-
language = "json";
|
|
125
|
-
value = JSON.stringify(value, null, 2);
|
|
126
|
-
}
|
|
127
|
-
return {
|
|
128
|
-
language,
|
|
129
|
-
responseCode: key,
|
|
130
|
-
content: value
|
|
131
|
-
};
|
|
132
|
-
}).filter(Boolean);
|
|
133
|
-
if (mappedResponses.length === 0) return null;
|
|
134
|
-
return /* @__PURE__ */ jsx("div", {
|
|
135
|
-
className: style_default.SnippetMultiResponse,
|
|
136
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
137
|
-
className: clsx(style_default.Snippet),
|
|
138
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
139
|
-
className: clsx(style_default.SnippetResponseTab, mappedResponses.length === 1 && style_default.SnippetResponseTabSingleReturn),
|
|
140
|
-
children: mappedResponses.map(({ responseCode }, index) => /* @__PURE__ */ jsx("div", {
|
|
141
|
-
"data-snippet-response-tab-id": `snippet-response-tab-${responseCode}-${index}`,
|
|
142
|
-
className: clsx(style_default.SnippetResponseTabItem, index === 0 && style_default.SnippetResponseTabItemActive),
|
|
143
|
-
children: /* @__PURE__ */ jsxs(Button, {
|
|
144
|
-
disabled: mappedResponses.length === 1,
|
|
145
|
-
variant: "ghost",
|
|
146
|
-
children: [responseCode, " example"]
|
|
147
|
-
})
|
|
148
|
-
}, `snippet-response-tab-item-${responseCode}-${index}`))
|
|
149
|
-
}), mappedResponses.map(({ responseCode, content, language }, index) => {
|
|
150
|
-
return /* @__PURE__ */ jsx("div", {
|
|
151
|
-
className: clsx(style_default.SnippetResponsePane, index === 0 && style_default.SnippetResponsePaneActive),
|
|
152
|
-
"data-snippet-response-pane-id": `snippet-response-tab-${responseCode}-${index}`,
|
|
153
|
-
children: /* @__PURE__ */ jsx(SnippetCode, {
|
|
154
|
-
content,
|
|
155
|
-
language
|
|
156
|
-
})
|
|
157
|
-
}, `snippet-response-${responseCode}-${index}`);
|
|
158
|
-
})]
|
|
159
|
-
})
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
//#endregion
|
|
164
|
-
export { SnippetFooter as a, SnippetContainer as i, SnippetButtons as n, SnippetRequestContainer as o, SnippetCode as r, SnippetResponse as s, Snippet as t };
|