@stainless-api/docs-ui 0.1.0-beta.47 → 0.1.0-beta.49
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-nSFZO5Gf.js +63 -0
- package/dist/component-DRO8kQSp.js +23 -0
- package/dist/{component-generics-F0_Dx7UT.js → component-generics-B6Fn47Mz.js} +1 -1
- package/dist/{component-generics-DrrwsjTH.d.ts → component-generics-COP53CRn.d.ts} +2 -2
- package/dist/component-generics-fyFHB6qA.d.ts +30 -0
- 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 +7 -13
- package/dist/components/icons.js +1 -1
- package/dist/components/index.d.ts +9 -10
- package/dist/components/index.js +16 -13
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +8 -13
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +9 -13
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +6 -13
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +7 -13
- package/dist/components/sdk.d.ts +1 -2
- package/dist/components/sdk.js +8 -13
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +9 -13
- package/dist/components/snippets.d.ts +2 -3
- package/dist/components/snippets.js +7 -13
- package/dist/components-D7M-BwNI.js +71 -0
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-generics.js +1 -1
- package/dist/contexts/component-types.d.ts +10 -11
- package/dist/contexts/component.d.ts +13 -14
- package/dist/contexts/component.js +25 -13
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/docs.js +1 -1
- package/dist/contexts/index.d.ts +16 -19
- package/dist/contexts/index.js +6 -14
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -2
- package/dist/contexts/navigation.js +1 -1
- package/dist/contexts/use-components.d.ts +9 -10
- package/dist/contexts/use-components.js +2 -2
- package/dist/contexts-p3rRZDlM.js +39 -0
- package/dist/csharp-CDSxfCZE.js +283 -0
- package/dist/docs-yYrp-uzs.d.ts +47 -0
- package/dist/go-1c3S5ETL.js +303 -0
- package/dist/http-2QNWXH9t.js +330 -0
- package/dist/{index-CeFeLPGr.d.ts → index-BQpRynot.d.ts} +8 -8
- package/dist/index-CnilsjrJ.d.ts +274 -0
- package/dist/{index-CTSOZqei.d.ts → index-Ct0NcQUK.d.ts} +1 -1
- package/dist/{index-Bt01VI67.d.ts → index-D6NhcxHd.d.ts} +6 -7
- package/dist/index-LboM0f0c.d.ts +15 -0
- package/dist/index-avtZIGmX.d.ts +13 -0
- package/dist/index.d.ts +18 -20
- package/dist/index.js +27 -13
- package/dist/java-BbjF_oUI.js +403 -0
- package/dist/languages/csharp.d.ts +10 -11
- package/dist/languages/csharp.js +7 -13
- package/dist/languages/go.d.ts +10 -11
- package/dist/languages/go.js +7 -13
- package/dist/languages/http.d.ts +10 -11
- package/dist/languages/http.js +17 -13
- package/dist/languages/index.d.ts +10 -11
- package/dist/languages/index.js +24 -13
- package/dist/languages/java.d.ts +10 -11
- package/dist/languages/java.js +7 -13
- package/dist/languages/python.d.ts +10 -11
- package/dist/languages/python.js +7 -13
- package/dist/languages/ruby.d.ts +10 -11
- package/dist/languages/ruby.js +7 -13
- package/dist/languages/typescript.d.ts +10 -11
- package/dist/languages/typescript.js +7 -13
- package/dist/languages-BCYZjzuS.js +26 -0
- package/dist/markdown/index.d.ts +4 -4
- package/dist/markdown/index.js +103 -14
- package/dist/markdown/md.js +1 -1
- package/dist/markdown/printer.d.ts +2 -0
- package/dist/markdown/printer.js +28 -0
- package/dist/markdown/utils.d.ts +2 -3
- package/dist/markdown/utils.js +1 -1
- package/dist/{markdown-Bx-mQFEj.js → markdown-CxdeWgjV.js} +1 -1
- package/dist/markdown-DA2cRtlr.d.ts +22 -0
- package/dist/method-CE08mUME.js +115 -0
- package/dist/{navigation-Cg69h_9U.d.ts → navigation-BfAVGPgw.d.ts} +3 -3
- package/dist/navigation-CjBnMcop.d.ts +29 -0
- package/dist/overview-DeZSiqFa.d.ts +39 -0
- package/dist/overview-S2hUqPXA.js +139 -0
- package/dist/primitives-BIWfwN5L.js +258 -0
- package/dist/primitives-CbqXZ-5f.d.ts +97 -0
- package/dist/printer-DBw4S_Jn.d.ts +13 -0
- package/dist/printer-DVZVkqAr.d.ts +13 -0
- package/dist/printer-bNxiG6UB.js +74 -0
- package/dist/properties-jlGW3USi.js +131 -0
- package/dist/python-USOwFDv_.js +279 -0
- package/dist/routing-CMqh1cTZ.d.ts +54 -0
- package/dist/{routing-BGBmkDBL.js → routing-Wbb7YECB.js} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/ruby-CSvGbSLe.js +387 -0
- package/dist/{sdk-Ck0IERc7.d.ts → sdk-BOwYR0k6.d.ts} +1 -1
- package/dist/sdk-CSCbbn3O.js +336 -0
- package/dist/sdk-CdhDsvo3.d.ts +118 -0
- package/dist/sidebar-CWyvCrJ0.js +81 -0
- package/dist/snippets-BQLXEIf6.js +161 -0
- package/dist/snippets-CbVFNmfq.d.ts +51 -0
- package/dist/{snippets-XTXit9Ya.d.ts → snippets-Wjo2dJNw.d.ts} +1 -1
- package/dist/spec.d.ts +3 -3
- package/dist/spec.js +2 -2
- package/dist/style.d.ts +1 -1
- package/dist/style.js +1 -1
- package/dist/styles/resets.css +2 -1
- package/dist/styles.css +1099 -1
- package/dist/typescript-DXG9psK3.js +449 -0
- package/dist/{use-components-BAHidYIO.js → use-components-RWQbviGq.js} +1 -1
- package/dist/{utils-CJElSUwc.d.ts → utils-CTGH5e8c.d.ts} +2 -2
- package/dist/utils-DNKOwa7D.d.ts +21 -0
- package/dist/{utils-0z34vxY4.js → utils-D_1AWSRX.js} +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -2
- package/package.json +6 -20
- package/dist/contexts/search.d.ts +0 -4
- package/dist/contexts/search.js +0 -15
- package/dist/contexts-D3ClFTt3.js +0 -4117
- package/dist/pagefind-BHm6c3fb.js +0 -15
- package/dist/search/index.d.ts +0 -26
- package/dist/search/index.js +0 -334
- package/dist/search/mcp.d.ts +0 -13
- package/dist/search/mcp.js +0 -45
- package/dist/search/providers/algolia.d.ts +0 -25
- package/dist/search/providers/algolia.js +0 -15
- package/dist/search/providers/fuse.d.ts +0 -18
- package/dist/search/providers/fuse.js +0 -30
- package/dist/search/providers/pagefind.d.ts +0 -7
- package/dist/search/providers/pagefind.js +0 -3
- package/dist/search/providers/walker.d.ts +0 -9
- package/dist/search/providers/walker.js +0 -34
- package/dist/search/types.d.ts +0 -3
- package/dist/search/types.js +0 -3
- package/dist/search-B9SJyFXg.d.ts +0 -21
- package/dist/types-D7Ipu1J2.d.ts +0 -91
- package/dist/types-mRzd9aqe.js +0 -35
- /package/dist/{breadcrumbs-Bg3nNgu9.d.ts → breadcrumbs-DEyC9k79.d.ts} +0 -0
- /package/dist/{chunk-BWfJHHBp.js → chunk-DRcLgZ1e.js} +0 -0
- /package/dist/{docs-DGpIHBGY.d.ts → docs-B8-nCRaa.d.ts} +0 -0
- /package/dist/{docs-CNvEp0VL.js → docs-CXqi26jB.js} +0 -0
- /package/dist/{icons-DzBceOQw.js → icons-Ckod9aod.js} +0 -0
- /package/dist/{markdown-COcowhve.d.ts → markdown-C8o8WrwG.d.ts} +0 -0
- /package/dist/{md-D5AxFoS4.js → md-oM2tUaCA.js} +0 -0
- /package/dist/{method-DI8ARQ3m.d.ts → method-B6eAtYl2.d.ts} +0 -0
- /package/dist/{navigation-bydkHNUW.js → navigation-C5TN0SgC.js} +0 -0
- /package/dist/{overview-Bv43Hf_w.d.ts → overview-CswoJHww.d.ts} +0 -0
- /package/dist/{primitives-Br-H_CYo.d.ts → primitives-Caj5rKBc.d.ts} +0 -0
- /package/dist/{properties-RPXKwEeY.d.ts → properties-BkUlpvU4.d.ts} +0 -0
- /package/dist/{routing-nN1nc0jx.d.ts → routing-Dhmv52Fd.d.ts} +0 -0
- /package/dist/{sidebar-b3y7VIbU.d.ts → sidebar-BXz93vSy.d.ts} +0 -0
- /package/dist/{style-D8hwSwrv.d.ts → style-D7RO5ymE.d.ts} +0 -0
- /package/dist/{style-0miv2y38.js → style-gnVEeXFj.js} +0 -0
- /package/dist/{utils-CiZXDoFR.js → utils-CqnL9Fc3.js} +0 -0
- /package/dist/{utils-BcWczffA.d.ts → utils-d8paVwKN.d.ts} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-CdhDsvo3.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
4
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
5
|
+
|
|
6
|
+
//#region src/components/snippets.d.ts
|
|
7
|
+
type SnippetCodeProps = {
|
|
8
|
+
content: string;
|
|
9
|
+
signature?: string;
|
|
10
|
+
language?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function SnippetCode({
|
|
13
|
+
content,
|
|
14
|
+
language
|
|
15
|
+
}: SnippetCodeProps): react_jsx_runtime52.JSX.Element;
|
|
16
|
+
type SnippetProps = {
|
|
17
|
+
method: SDKJSON.Method;
|
|
18
|
+
requestTitle?: React$1.ReactNode;
|
|
19
|
+
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
20
|
+
};
|
|
21
|
+
type SnippetContainerProps = {
|
|
22
|
+
children: React$1.ReactNode;
|
|
23
|
+
signature?: string;
|
|
24
|
+
};
|
|
25
|
+
declare function SnippetContainer({
|
|
26
|
+
children
|
|
27
|
+
}: SnippetContainerProps): react_jsx_runtime52.JSX.Element;
|
|
28
|
+
type SnippetRequestContainerProps = {
|
|
29
|
+
children?: React$1.ReactNode;
|
|
30
|
+
signature?: string;
|
|
31
|
+
};
|
|
32
|
+
declare function SnippetRequestContainer({
|
|
33
|
+
children
|
|
34
|
+
}: SnippetRequestContainerProps): react_jsx_runtime52.JSX.Element;
|
|
35
|
+
declare function Snippet({
|
|
36
|
+
requestTitle,
|
|
37
|
+
method,
|
|
38
|
+
transformRequestSnippet
|
|
39
|
+
}: SnippetProps): react_jsx_runtime52.JSX.Element | null;
|
|
40
|
+
declare function SnippetButtons({
|
|
41
|
+
content
|
|
42
|
+
}: {
|
|
43
|
+
content: string;
|
|
44
|
+
}): react_jsx_runtime52.JSX.Element;
|
|
45
|
+
declare function SnippetResponse({
|
|
46
|
+
responses
|
|
47
|
+
}: {
|
|
48
|
+
responses: SDKJSON.Method['exampleResponses'];
|
|
49
|
+
}): react_jsx_runtime52.JSX.Element | null;
|
|
50
|
+
//#endregion
|
|
51
|
+
export { SnippetContainer as a, SnippetRequestContainer as c, SnippetCodeProps as i, SnippetRequestContainerProps as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetProps as s, Snippet as t, SnippetResponse as u };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as TransformRequestSnippetFn } from "./sdk-
|
|
1
|
+
import { C as TransformRequestSnippetFn } from "./sdk-BOwYR0k6.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as react_jsx_runtime51 from "react/jsx-runtime";
|
|
4
4
|
import * as SDKJSON from "@stainless/sdk-json";
|
package/dist/spec.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DocsLanguage } from "./routing-
|
|
1
|
+
import { t as DocsLanguage } from "./routing-CMqh1cTZ.js";
|
|
2
2
|
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.d.ts
|
|
@@ -36,13 +36,13 @@ declare function generateNavigation(resource: Partial<SDKJSON.Resource>): {
|
|
|
36
36
|
declare function generateSpecForResource(spec: SDKJSON.Spec, name: string, lang: DocsLanguage, transforms: SpecTransforms): Partial<SDKJSON.Spec>;
|
|
37
37
|
declare function transform(spec: SDKJSON.Spec, transforms: SpecTransforms): {
|
|
38
38
|
name: string;
|
|
39
|
-
lang: "
|
|
39
|
+
lang: "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
|
|
40
40
|
spec: Partial<SDKJSON.Spec>;
|
|
41
41
|
}[];
|
|
42
42
|
declare function split(spec: SDKJSON.Spec, transforms?: SpecTransforms): {
|
|
43
43
|
resources: ReturnType<typeof transform>;
|
|
44
44
|
navigation: {
|
|
45
|
-
languages: ("
|
|
45
|
+
languages: ("http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin")[] | undefined;
|
|
46
46
|
resources: {
|
|
47
47
|
[k: string]: {
|
|
48
48
|
title: string | undefined;
|
package/dist/spec.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as Languages } from "./routing-
|
|
2
|
-
import { r as isResourceEmpty } from "./utils-
|
|
1
|
+
import { n as Languages } from "./routing-Wbb7YECB.js";
|
|
2
|
+
import { r as isResourceEmpty } from "./utils-D_1AWSRX.js";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.ts
|
|
5
5
|
const defaultTransforms = {
|
package/dist/style.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./style-
|
|
1
|
+
import { t as _default } from "./style-D7RO5ymE.js";
|
|
2
2
|
export { _default as default };
|
package/dist/style.js
CHANGED
package/dist/styles/resets.css
CHANGED
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
display: block;
|
|
21
21
|
color: var(--stl-color-foreground);
|
|
22
22
|
font-weight: 500;
|
|
23
|
-
line-height: var(--stl-typography-line-height-
|
|
23
|
+
line-height: var(--stl-typography-line-height-heading);
|
|
24
|
+
font-family: var(--stl-typography-font-heading);
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
display: block;
|