@stainless-api/docs-ui 0.1.0-beta.62 → 0.1.0-beta.63
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-IxKxOsE0.d.ts → breadcrumbs-CpdCGzeH.d.ts} +2 -2
- package/dist/{breadcrumbs-C14t6IEW.d.ts → breadcrumbs-DwldC63b.d.ts} +2 -2
- package/dist/{breadcrumbs-Q76uwfdC.js → breadcrumbs-hzZqGExJ.js} +2 -2
- package/dist/{cli-lM9nDBQl.js → cli-BAhN1pvm.js} +1 -1
- package/dist/{component-D93BctHn.js → component-Bf-__z99.js} +2 -2
- package/dist/{component-generics-BmJeLTNJ.d.ts → component-generics-Bs9VsgxB.d.ts} +2 -2
- package/dist/{component-generics-Bd4PJtTE.d.ts → component-generics-uYXTXWFi.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +6 -6
- package/dist/components/method.d.ts +1 -1
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +2 -2
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +1 -1
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk-sidebar.js +1 -1
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +1 -1
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/stl-sidebar.d.ts +1 -1
- package/dist/{components-DmiarGZ9.js → components-CwIKWfid.js} +5 -5
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +11 -11
- package/dist/contexts/component.d.ts +14 -14
- package/dist/contexts/component.js +10 -10
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +15 -15
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +10 -10
- package/dist/{docs-Dzjz2m8E.d.ts → docs-Chc8A7zc.d.ts} +2 -2
- package/dist/{docs-cYeV7nR2.d.ts → docs-FJV1-6V2.d.ts} +2 -2
- package/dist/{http-CXjSoAxs.js → http-BKoVLcpv.js} +1 -1
- package/dist/{index-6vTGbgXx.d.ts → index-C9bUFWfw.d.ts} +1 -1
- package/dist/{index-C619u0I1.d.ts → index-Dz6SFEud.d.ts} +9 -9
- package/dist/{index-wOU588Um.d.ts → index-WHKRwqwo.d.ts} +1 -1
- package/dist/{index-CiZUWHkc.d.ts → index-_wZU78e1.d.ts} +9 -9
- package/dist/index.d.ts +16 -16
- package/dist/index.js +11 -11
- package/dist/languages/cli.d.ts +11 -11
- package/dist/languages/cli.js +8 -8
- package/dist/languages/csharp.d.ts +11 -11
- package/dist/languages/go.d.ts +11 -11
- package/dist/languages/http.d.ts +11 -11
- package/dist/languages/http.js +7 -7
- package/dist/languages/index.d.ts +11 -11
- package/dist/languages/index.js +9 -9
- package/dist/languages/java.d.ts +11 -11
- package/dist/languages/python.d.ts +11 -11
- package/dist/languages/ruby.d.ts +11 -11
- package/dist/languages/typescript.d.ts +11 -11
- package/dist/{languages-C6gLi0rP.js → languages-BPVYg1lj.js} +2 -2
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.js +10 -10
- package/dist/markdown/printer.d.ts +1 -1
- package/dist/markdown/printer.js +10 -10
- package/dist/markdown/utils.d.ts +2 -2
- package/dist/{markdown-DkGIT8Kx.d.ts → markdown-CoIy7fea.d.ts} +2 -2
- package/dist/{markdown-DmrCjnT8.d.ts → markdown-IA9nH38V.d.ts} +2 -2
- package/dist/{method-BlxcOrX4.d.ts → method-Bt3V4B4q.d.ts} +6 -6
- package/dist/{method-DzUn_qWF.d.ts → method-CZDrcjKP.d.ts} +6 -6
- package/dist/{navigation-CRKiHkwL.d.ts → navigation-CHVw_t5x.d.ts} +3 -3
- package/dist/{navigation-865UcdP7.d.ts → navigation-CIQImbWI.d.ts} +1 -1
- package/dist/{overview-CAxvIfWH.d.ts → overview-9J_EJ4Uv.d.ts} +6 -6
- package/dist/{overview-J95gyke9.d.ts → overview-DVklHrbY.d.ts} +6 -6
- package/dist/{overview-CDIg0UWY.js → overview-dG8i3EyZ.js} +3 -3
- package/dist/{primitives-CRiUE1em.js → primitives-B6nufz49.js} +1 -1
- package/dist/{primitives-KIlfflF9.d.ts → primitives-BkenBSev.d.ts} +11 -11
- package/dist/{primitives-8XXs7qDy.d.ts → primitives-Bmr19wBU.d.ts} +11 -11
- package/dist/{properties-0U_JmHNb.d.ts → properties-Dx6tQNus.d.ts} +5 -5
- package/dist/{properties-hAqMR9G-.d.ts → properties-NrkX1jGk.d.ts} +5 -5
- package/dist/{routing-D6595ovf.js → routing-CLgL--x1.js} +1 -4
- package/dist/{routing-DmNHIb6b.d.ts → routing-CqnhQY4G.d.ts} +1 -4
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{sdk-CoiDgyHc.d.ts → sdk-BDzHdl2y.d.ts} +15 -15
- package/dist/{sdk-DXS8pW0X.js → sdk-afI6c7Wd.js} +1 -1
- package/dist/{sdk-swLaCpqB.d.ts → sdk-hDAzjotL.d.ts} +15 -15
- package/dist/{sdk-sidebar-CYjEwB-m.d.ts → sdk-sidebar-ByMsvpUm.d.ts} +2 -2
- package/dist/{sdk-sidebar-BoRTRjDJ.d.ts → sdk-sidebar-CoVgP38f.d.ts} +2 -2
- package/dist/{sdk-sidebar-CF3tb0Yl.js → sdk-sidebar-ZaXTw63C.js} +1 -1
- package/dist/{snippets-BPK_oVIf.d.ts → snippets-BqKFOZfY.d.ts} +8 -8
- package/dist/{snippets-CaCkByky.d.ts → snippets-Dfd3zU_j.d.ts} +8 -8
- package/dist/spec.d.ts +1 -1
- package/dist/spec.js +2 -2
- package/dist/{stl-sidebar-BQvhLYPO.d.ts → stl-sidebar-D6OGr1Gl.d.ts} +2 -2
- package/dist/{stl-sidebar-BSx0HI2z.d.ts → stl-sidebar-nQWQbRVM.d.ts} +2 -2
- package/dist/{utils-BpKHeVMe.js → utils-36jzmKxv.js} +1 -1
- package/dist/utils.js +1 -1
- package/package.json +1 -1
- package/dist/routing-Wb-T6WOm.d.ts +0 -64
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as Model, h as SnippetLanguage, s as ID, t as BaseDeclaration, u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
import { t as DocsLanguage } from "./routing-
|
|
2
|
+
import { t as DocsLanguage } from "./routing-CqnhQY4G.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/sdk.d.ts
|
|
7
7
|
type PropertyModelContextType = {
|
|
@@ -33,7 +33,7 @@ declare function SDKChildren({
|
|
|
33
33
|
paths,
|
|
34
34
|
expand,
|
|
35
35
|
depth
|
|
36
|
-
}: SDKChildrenProps):
|
|
36
|
+
}: SDKChildrenProps): react_jsx_runtime61.JSX.Element;
|
|
37
37
|
type SDKDeclarationProps = {
|
|
38
38
|
path: string;
|
|
39
39
|
expand?: boolean;
|
|
@@ -43,26 +43,26 @@ declare function SDKDeclaration({
|
|
|
43
43
|
path,
|
|
44
44
|
expand,
|
|
45
45
|
depth
|
|
46
|
-
}: SDKDeclarationProps):
|
|
46
|
+
}: SDKDeclarationProps): react_jsx_runtime61.JSX.Element;
|
|
47
47
|
type SDKConstraintsProps = {
|
|
48
48
|
constraints?: Record<string, any>;
|
|
49
49
|
};
|
|
50
50
|
declare function SDKConstraints({
|
|
51
51
|
constraints
|
|
52
|
-
}: SDKConstraintsProps):
|
|
52
|
+
}: SDKConstraintsProps): react_jsx_runtime61.JSX.Element | undefined;
|
|
53
53
|
type SDKIconProps = {
|
|
54
54
|
language: SnippetLanguage;
|
|
55
55
|
size?: number;
|
|
56
56
|
};
|
|
57
57
|
declare function SDKIcon({
|
|
58
58
|
language
|
|
59
|
-
}: SDKIconProps):
|
|
59
|
+
}: SDKIconProps): react_jsx_runtime61.JSX.Element | null;
|
|
60
60
|
type SDKRequestTitleProps = {
|
|
61
61
|
snippetLanguage: SnippetLanguage;
|
|
62
62
|
};
|
|
63
63
|
declare function SDKRequestTitle({
|
|
64
64
|
snippetLanguage
|
|
65
|
-
}: SDKRequestTitleProps):
|
|
65
|
+
}: SDKRequestTitleProps): react_jsx_runtime61.JSX.Element;
|
|
66
66
|
type SDKExampleProps = {
|
|
67
67
|
method: Method;
|
|
68
68
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
@@ -70,31 +70,31 @@ type SDKExampleProps = {
|
|
|
70
70
|
declare function SDKExample({
|
|
71
71
|
method,
|
|
72
72
|
transformRequestSnippet
|
|
73
|
-
}: SDKExampleProps):
|
|
73
|
+
}: SDKExampleProps): react_jsx_runtime61.JSX.Element;
|
|
74
74
|
type SDKMethodProps = {
|
|
75
75
|
method: Method;
|
|
76
76
|
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
77
77
|
};
|
|
78
78
|
declare function SDKMethodHeader({
|
|
79
79
|
method
|
|
80
|
-
}: SDKMethodProps):
|
|
80
|
+
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
81
81
|
declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
|
|
82
82
|
declare function SDKMethodInfo({
|
|
83
83
|
method
|
|
84
|
-
}: SDKMethodProps):
|
|
84
|
+
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
85
85
|
declare function SDKMethodNotImplemented({
|
|
86
86
|
method
|
|
87
|
-
}: SDKMethodProps):
|
|
87
|
+
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
88
88
|
declare function SDKMethod({
|
|
89
89
|
method,
|
|
90
90
|
transformRequestSnippet
|
|
91
|
-
}: SDKMethodProps):
|
|
91
|
+
}: SDKMethodProps): react_jsx_runtime61.JSX.Element;
|
|
92
92
|
type SDKModelProps = {
|
|
93
93
|
model: Model;
|
|
94
94
|
};
|
|
95
95
|
declare function SDKModel({
|
|
96
96
|
model
|
|
97
|
-
}: SDKModelProps):
|
|
97
|
+
}: SDKModelProps): react_jsx_runtime61.JSX.Element | null;
|
|
98
98
|
type SDKReferenceProps = {
|
|
99
99
|
stainlessPath: string;
|
|
100
100
|
children?: React$1.ReactNode;
|
|
@@ -102,7 +102,7 @@ type SDKReferenceProps = {
|
|
|
102
102
|
declare function SDKReference({
|
|
103
103
|
stainlessPath,
|
|
104
104
|
children
|
|
105
|
-
}: SDKReferenceProps): string | number | bigint | boolean |
|
|
105
|
+
}: SDKReferenceProps): string | number | bigint | boolean | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | react_jsx_runtime61.JSX.Element | null | undefined;
|
|
106
106
|
type SDKLanguageBlockProps = {
|
|
107
107
|
language: DocsLanguage;
|
|
108
108
|
version: string;
|
|
@@ -117,6 +117,6 @@ declare function SDKLanguageBlock({
|
|
|
117
117
|
version,
|
|
118
118
|
install,
|
|
119
119
|
links
|
|
120
|
-
}: SDKLanguageBlockProps):
|
|
120
|
+
}: SDKLanguageBlockProps): react_jsx_runtime61.JSX.Element;
|
|
121
121
|
//#endregion
|
|
122
122
|
export { SDKSnippetLanguagesType as C, useStreamingResponse as D, useReferenceNesting as E, SDKSnippetLanguages as S, usePropertyModel as T, SDKModel as _, SDKChildren as a, SDKRequestTitle as b, SDKDeclaration as c, SDKLanguageBlock as d, SDKMethod as f, SDKMethodProps as g, SDKMethodNotImplemented as h, ReferenceNestingContextType as i, SDKExample as l, SDKMethodInfo as m, PropertyModelContextType as n, SDKConstraints as o, SDKMethodHeader as p, ReferenceNestingContext as r, SDKConstraintsProps as s, PropertyModelContext as t, SDKIcon as u, SDKModelProps as v, TransformRequestSnippetFn as w, SDKRequestTitleProps as x, SDKReference as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as Resource } from "./index-DuHyTVVD.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sdk-sidebar.d.ts
|
|
5
5
|
type SDKSidebarProps = {
|
|
@@ -10,6 +10,6 @@ type SDKSidebarProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare function SDKSidebar({
|
|
12
12
|
resources
|
|
13
|
-
}: SDKSidebarProps):
|
|
13
|
+
}: SDKSidebarProps): react_jsx_runtime60.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SDKSidebarProps as n, SDKSidebar as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as Resource } from "./index-DuHyTVVD.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime74 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/sdk-sidebar.d.ts
|
|
5
5
|
type SDKSidebarProps = {
|
|
@@ -10,6 +10,6 @@ type SDKSidebarProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare function SDKSidebar({
|
|
12
12
|
resources
|
|
13
|
-
}: SDKSidebarProps):
|
|
13
|
+
}: SDKSidebarProps): react_jsx_runtime74.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { SDKSidebarProps as n, SDKSidebar as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
|
|
2
|
-
import { r as isResourceEmpty } from "./utils-
|
|
2
|
+
import { r as isResourceEmpty } from "./utils-36jzmKxv.js";
|
|
3
3
|
import { t as StlSidebar } from "./stl-sidebar-DdxZx2KK.js";
|
|
4
4
|
import * as React$1 from "react";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
import { w as TransformRequestSnippetFn } from "./sdk-
|
|
2
|
+
import { w as TransformRequestSnippetFn } from "./sdk-hDAzjotL.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/snippets.d.ts
|
|
7
7
|
type SnippetCodeProps = {
|
|
@@ -12,7 +12,7 @@ type SnippetCodeProps = {
|
|
|
12
12
|
declare function SnippetCode({
|
|
13
13
|
content,
|
|
14
14
|
language
|
|
15
|
-
}: SnippetCodeProps):
|
|
15
|
+
}: SnippetCodeProps): react_jsx_runtime75.JSX.Element;
|
|
16
16
|
type SnippetProps = {
|
|
17
17
|
method: Method;
|
|
18
18
|
requestTitle?: React$1.ReactNode;
|
|
@@ -25,29 +25,29 @@ type SnippetContainerProps = {
|
|
|
25
25
|
};
|
|
26
26
|
declare function SnippetContainer({
|
|
27
27
|
children
|
|
28
|
-
}: SnippetContainerProps):
|
|
28
|
+
}: SnippetContainerProps): react_jsx_runtime75.JSX.Element;
|
|
29
29
|
type SnippetRequestContainerProps = {
|
|
30
30
|
children?: React$1.ReactNode;
|
|
31
31
|
signature?: string;
|
|
32
32
|
};
|
|
33
33
|
declare function SnippetRequestContainer({
|
|
34
34
|
children
|
|
35
|
-
}: SnippetRequestContainerProps):
|
|
35
|
+
}: SnippetRequestContainerProps): react_jsx_runtime75.JSX.Element;
|
|
36
36
|
declare function Snippet({
|
|
37
37
|
requestTitle,
|
|
38
38
|
method,
|
|
39
39
|
transformRequestSnippet
|
|
40
|
-
}: SnippetProps):
|
|
40
|
+
}: SnippetProps): react_jsx_runtime75.JSX.Element | null;
|
|
41
41
|
declare function SnippetButtons({
|
|
42
42
|
content
|
|
43
43
|
}: {
|
|
44
44
|
content: string;
|
|
45
|
-
}):
|
|
45
|
+
}): react_jsx_runtime75.JSX.Element;
|
|
46
46
|
declare function SnippetFooter(): React$1.ReactNode;
|
|
47
47
|
declare function SnippetResponse({
|
|
48
48
|
responses
|
|
49
49
|
}: {
|
|
50
50
|
responses: Method['exampleResponses'];
|
|
51
|
-
}):
|
|
51
|
+
}): react_jsx_runtime75.JSX.Element | null;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { SnippetContainer as a, SnippetProps as c, SnippetResponse as d, SnippetCodeProps as i, SnippetRequestContainer as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetFooter as s, Snippet as t, SnippetRequestContainerProps as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
import { w as TransformRequestSnippetFn } from "./sdk-
|
|
2
|
+
import { w as TransformRequestSnippetFn } from "./sdk-BDzHdl2y.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime88 from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/snippets.d.ts
|
|
7
7
|
type SnippetCodeProps = {
|
|
@@ -12,7 +12,7 @@ type SnippetCodeProps = {
|
|
|
12
12
|
declare function SnippetCode({
|
|
13
13
|
content,
|
|
14
14
|
language
|
|
15
|
-
}: SnippetCodeProps):
|
|
15
|
+
}: SnippetCodeProps): react_jsx_runtime88.JSX.Element;
|
|
16
16
|
type SnippetProps = {
|
|
17
17
|
method: Method;
|
|
18
18
|
requestTitle?: React$1.ReactNode;
|
|
@@ -25,29 +25,29 @@ type SnippetContainerProps = {
|
|
|
25
25
|
};
|
|
26
26
|
declare function SnippetContainer({
|
|
27
27
|
children
|
|
28
|
-
}: SnippetContainerProps):
|
|
28
|
+
}: SnippetContainerProps): react_jsx_runtime88.JSX.Element;
|
|
29
29
|
type SnippetRequestContainerProps = {
|
|
30
30
|
children?: React$1.ReactNode;
|
|
31
31
|
signature?: string;
|
|
32
32
|
};
|
|
33
33
|
declare function SnippetRequestContainer({
|
|
34
34
|
children
|
|
35
|
-
}: SnippetRequestContainerProps):
|
|
35
|
+
}: SnippetRequestContainerProps): react_jsx_runtime88.JSX.Element;
|
|
36
36
|
declare function Snippet({
|
|
37
37
|
requestTitle,
|
|
38
38
|
method,
|
|
39
39
|
transformRequestSnippet
|
|
40
|
-
}: SnippetProps):
|
|
40
|
+
}: SnippetProps): react_jsx_runtime88.JSX.Element | null;
|
|
41
41
|
declare function SnippetButtons({
|
|
42
42
|
content
|
|
43
43
|
}: {
|
|
44
44
|
content: string;
|
|
45
|
-
}):
|
|
45
|
+
}): react_jsx_runtime88.JSX.Element;
|
|
46
46
|
declare function SnippetFooter(): React$1.ReactNode;
|
|
47
47
|
declare function SnippetResponse({
|
|
48
48
|
responses
|
|
49
49
|
}: {
|
|
50
50
|
responses: Method['exampleResponses'];
|
|
51
|
-
}):
|
|
51
|
+
}): react_jsx_runtime88.JSX.Element | null;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { SnippetContainer as a, SnippetProps as c, SnippetResponse as d, SnippetCodeProps as i, SnippetRequestContainer as l, SnippetButtons as n, SnippetContainerProps as o, SnippetCode as r, SnippetFooter as s, Snippet as t, SnippetRequestContainerProps as u };
|
package/dist/spec.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ as SpecLanguage, d as Model, g as Spec, i as DeclarationNode, p as Resource, u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
import { t as DocsLanguage } from "./routing-
|
|
2
|
+
import { t as DocsLanguage } from "./routing-CqnhQY4G.js";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.d.ts
|
|
5
5
|
type SecurityScheme = Spec['security_schemes'][number];
|
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-CLgL--x1.js";
|
|
2
|
+
import { r as isResourceEmpty } from "./utils-36jzmKxv.js";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.ts
|
|
5
5
|
const defaultTransforms = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime74 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/stl-sidebar.d.ts
|
|
4
4
|
declare module 'react' {
|
|
@@ -40,6 +40,6 @@ type StlSidebarProps = {
|
|
|
40
40
|
declare function StlSidebar({
|
|
41
41
|
entries,
|
|
42
42
|
withStarlightRestoration
|
|
43
|
-
}: StlSidebarProps):
|
|
43
|
+
}: StlSidebarProps): react_jsx_runtime74.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { StlSidebarProps as a, StlSidebarLink as i, StlSidebarEntry as n, StlSidebarGroup as r, StlSidebar as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime34 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/stl-sidebar.d.ts
|
|
4
4
|
declare module 'react' {
|
|
@@ -40,6 +40,6 @@ type StlSidebarProps = {
|
|
|
40
40
|
declare function StlSidebar({
|
|
41
41
|
entries,
|
|
42
42
|
withStarlightRestoration
|
|
43
|
-
}: StlSidebarProps):
|
|
43
|
+
}: StlSidebarProps): react_jsx_runtime34.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { StlSidebarProps as a, StlSidebarLink as i, StlSidebarEntry as n, StlSidebarGroup as r, StlSidebar as t };
|
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-
|
|
1
|
+
import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-36jzmKxv.js";
|
|
2
2
|
|
|
3
3
|
export { flatResources, getResourceFromSpec, isResourceEmpty };
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { d as Model, g as Spec, p as Resource, u as Method } from "./index-DuHyTVVD.js";
|
|
2
|
-
|
|
3
|
-
//#region src/routing.d.ts
|
|
4
|
-
declare namespace routing_d_exports {
|
|
5
|
-
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
|
|
6
|
-
}
|
|
7
|
-
declare const Languages: readonly ["http", "node", "python", "go", "typescript", "terraform", "ruby", "java", "kotlin", "csharp", "php", "cli"];
|
|
8
|
-
declare const SupportedLanguageSyntaxes: string[];
|
|
9
|
-
type DocsLanguage = (typeof Languages)[number];
|
|
10
|
-
declare const LanguageNames: Record<DocsLanguage, string>;
|
|
11
|
-
declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "cli.default" | "csharp.default" | "go.default" | "java.default" | "kotlin.default" | "node.default" | "php.default" | "python.default" | "ruby.default" | "terraform.default" | "typescript.default";
|
|
12
|
-
declare function isSupportedLanguage(language: string): language is DocsLanguage;
|
|
13
|
-
type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
|
|
14
|
-
declare function parseStainlessPath(stainlessPath: string): {
|
|
15
|
-
resource: string[] | null;
|
|
16
|
-
method: string | null;
|
|
17
|
-
model: string | null;
|
|
18
|
-
routable: string | undefined;
|
|
19
|
-
} | null;
|
|
20
|
-
declare function trimStainlessPath(stainlessPath: string): string;
|
|
21
|
-
declare function getResource(stainlessPath: string): string | undefined;
|
|
22
|
-
declare function parseRoute(basePath: string, route: string): {
|
|
23
|
-
stainlessPath: string;
|
|
24
|
-
language: DocsLanguage;
|
|
25
|
-
};
|
|
26
|
-
declare function generateRoute(basePath: string, language: string, stainlessPath: string): string | null;
|
|
27
|
-
type SpecTreeEntry = {
|
|
28
|
-
data: Method | Resource | Model;
|
|
29
|
-
path: string[];
|
|
30
|
-
};
|
|
31
|
-
declare function walkTree(spec: Spec, includeModels?: boolean): Generator<SpecTreeEntry, void, any>;
|
|
32
|
-
type RouteEntry = {
|
|
33
|
-
title: string;
|
|
34
|
-
kind: SpecTreeEntry['data']['kind'];
|
|
35
|
-
language: DocsLanguage;
|
|
36
|
-
stainlessPath: string;
|
|
37
|
-
slug: string;
|
|
38
|
-
};
|
|
39
|
-
declare function generateRouteList({
|
|
40
|
-
spec,
|
|
41
|
-
languages,
|
|
42
|
-
excludeLanguages
|
|
43
|
-
}: {
|
|
44
|
-
spec: Spec;
|
|
45
|
-
languages?: DocsLanguage[];
|
|
46
|
-
excludeLanguages?: DocsLanguage[];
|
|
47
|
-
}): RouteEntry[];
|
|
48
|
-
declare function generateMissingRouteList({
|
|
49
|
-
spec,
|
|
50
|
-
basePath
|
|
51
|
-
}: {
|
|
52
|
-
spec: Spec;
|
|
53
|
-
basePath: string;
|
|
54
|
-
}): {
|
|
55
|
-
stainlessPath: string;
|
|
56
|
-
slug: string;
|
|
57
|
-
}[];
|
|
58
|
-
type ResourceOrMethod = Resource | Method;
|
|
59
|
-
declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
|
|
60
|
-
declare function expandToElement(el: HTMLElement | null): void;
|
|
61
|
-
declare function scrollToPath(stainlessPath: string): void;
|
|
62
|
-
declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
|
|
63
|
-
//#endregion
|
|
64
|
-
export { walkTree as S, parseStainlessPath as _, RouteEntry as a, trimStainlessPath as b, expandToElement as c, generateRoute as d, generateRouteList as f, parseRoute as g, isSupportedLanguage as h, ParsedStainlessPath as i, findNavigationPath as l, getResource as m, LanguageNames as n, SpecTreeEntry as o, getLanguageSnippet as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateMissingRouteList as u, routing_d_exports as v, updateHistory as x, scrollToPath as y };
|