@stainless-api/docs-ui 0.1.0-beta.69 → 0.1.0-beta.70

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.
Files changed (79) hide show
  1. package/dist/breadcrumbs-BhYwbXkc.d.ts +25 -0
  2. package/dist/{cli-MlcHZWvQ.js → cli-F3kMmeoJ.js} +1 -1
  3. package/dist/{component-C7n1bZ-Z.js → component-P9sn5yyG.js} +2 -2
  4. package/dist/component-generics-ByGsYTc8.d.ts +30 -0
  5. package/dist/components/MaskedInput.d.ts +3 -3
  6. package/dist/components/breadcrumbs.d.ts +1 -1
  7. package/dist/components/icons.d.ts +12 -12
  8. package/dist/components/index.d.ts +10 -10
  9. package/dist/components/index.js +2 -2
  10. package/dist/components/method.d.ts +1 -1
  11. package/dist/components/overview.d.ts +1 -1
  12. package/dist/components/primitives.d.ts +1 -1
  13. package/dist/components/properties.d.ts +1 -1
  14. package/dist/components/sdk-sidebar.d.ts +1 -1
  15. package/dist/components/sdk.d.ts +1 -1
  16. package/dist/components/sdk.js +1 -1
  17. package/dist/components/snippets.d.ts +2 -2
  18. package/dist/components/stl-sidebar.d.ts +1 -1
  19. package/dist/{components-Bu-V0Ani.js → components-w1JmIrB0.js} +1 -1
  20. package/dist/contexts/component-generics.d.ts +1 -1
  21. package/dist/contexts/component-types.d.ts +11 -11
  22. package/dist/contexts/component.d.ts +14 -14
  23. package/dist/contexts/component.js +6 -6
  24. package/dist/contexts/docs.d.ts +1 -1
  25. package/dist/contexts/index.d.ts +15 -15
  26. package/dist/contexts/markdown.d.ts +1 -1
  27. package/dist/contexts/navigation.d.ts +1 -1
  28. package/dist/contexts/use-components.d.ts +10 -10
  29. package/dist/docs-g4IPmtZr.d.ts +48 -0
  30. package/dist/{docs-C1hj7a7l.d.ts → docs-z3fl2eW-.d.ts} +2 -2
  31. package/dist/{http-Bg6D0bNX.js → http-fOPCX17A.js} +1 -1
  32. package/dist/{index-CCxFSaje.d.ts → index-B8Zys1C2.d.ts} +39 -39
  33. package/dist/{index-CaB6Jh8S.d.ts → index-C5Zmb2CI.d.ts} +8 -8
  34. package/dist/index-D7PkxNgB.d.ts +16 -0
  35. package/dist/index-DIaM6Ync.d.ts +347 -0
  36. package/dist/index.d.ts +15 -15
  37. package/dist/index.js +5 -5
  38. package/dist/languages/cli.d.ts +11 -11
  39. package/dist/languages/cli.js +4 -4
  40. package/dist/languages/csharp.d.ts +11 -11
  41. package/dist/languages/go.d.ts +11 -11
  42. package/dist/languages/http.d.ts +11 -11
  43. package/dist/languages/http.js +3 -3
  44. package/dist/languages/index.d.ts +11 -11
  45. package/dist/languages/index.js +5 -5
  46. package/dist/languages/java.d.ts +11 -11
  47. package/dist/languages/python.d.ts +11 -11
  48. package/dist/languages/ruby.d.ts +11 -11
  49. package/dist/languages/terraform.d.ts +11 -11
  50. package/dist/languages/typescript.d.ts +11 -11
  51. package/dist/{languages-kmF_JEqJ.js → languages-B6eap2M6.js} +2 -2
  52. package/dist/markdown/index.d.ts +1 -1
  53. package/dist/markdown/index.js +6 -6
  54. package/dist/markdown/printer.js +6 -6
  55. package/dist/markdown/utils.d.ts +1 -1
  56. package/dist/{markdown-Dvsw4Rrr.d.ts → markdown-Cdh0TSHp.d.ts} +2 -2
  57. package/dist/markdown-Cibv9fDR.d.ts +22 -0
  58. package/dist/{method-DPnfsySL.d.ts → method-630cPKDl.d.ts} +6 -6
  59. package/dist/method-BzkPRXGL.d.ts +59 -0
  60. package/dist/navigation-BW-SBvb4.d.ts +29 -0
  61. package/dist/{navigation-C7KdkOOQ.d.ts → navigation-DWYqC_HX.d.ts} +2 -2
  62. package/dist/{overview-CXNo7yhX.d.ts → overview-Cui1XtuC.d.ts} +6 -6
  63. package/dist/overview-RXc9iPzz.d.ts +39 -0
  64. package/dist/{primitives-Dt0u9KhI.d.ts → primitives-DhGxFYx6.d.ts} +11 -11
  65. package/dist/primitives-MsH-h0bU.d.ts +105 -0
  66. package/dist/{properties-BYmc18KM.d.ts → properties-Bynmj9_H.d.ts} +5 -5
  67. package/dist/properties-C9W4QJ_F.d.ts +54 -0
  68. package/dist/routing-utiR5mY3.d.ts +61 -0
  69. package/dist/{sdk-7I25t5FC.d.ts → sdk-BvZeXpsj.d.ts} +15 -15
  70. package/dist/{sdk-B69ZT1zY.js → sdk-Bw99eXxA.js} +0 -4
  71. package/dist/sdk-GMOw94wL.d.ts +122 -0
  72. package/dist/{sdk-sidebar-JyrSuu5b.d.ts → sdk-sidebar-NCBSWuUW.d.ts} +2 -2
  73. package/dist/sdk-sidebar-VNY2-O1Y.d.ts +15 -0
  74. package/dist/{snippets-DZM_ogqa.d.ts → snippets-Bj7Ey56K.d.ts} +8 -8
  75. package/dist/snippets-CQQSDvg2.d.ts +53 -0
  76. package/dist/spec.d.ts +2 -2
  77. package/dist/{stl-sidebar-BR04ktwN.d.ts → stl-sidebar-CXzs_shz.d.ts} +2 -2
  78. package/dist/stl-sidebar-DSkUHwcU.d.ts +58 -0
  79. package/package.json +1 -1
@@ -0,0 +1,29 @@
1
+ import { t as DocsLanguage } from "./routing-utiR5mY3.js";
2
+ import * as React$1 from "react";
3
+ import * as react_jsx_runtime86 from "react/jsx-runtime";
4
+
5
+ //#region src/contexts/navigation.d.ts
6
+ type NavigationHandler = (ev: React$1.MouseEvent | null, opts: {
7
+ href: string;
8
+ language: DocsLanguage;
9
+ stainlessPath: string;
10
+ scroll: boolean;
11
+ }) => void;
12
+ type NavigationContextType = {
13
+ basePath?: string;
14
+ selectedPath?: string;
15
+ navigationPath?: string[];
16
+ onNavigate?: NavigationHandler;
17
+ };
18
+ declare function useNavigation(): NavigationContextType;
19
+ type NavigationProviderProps = NavigationContextType & {
20
+ children: React$1.ReactNode;
21
+ };
22
+ declare function NavigationProvider({
23
+ basePath,
24
+ selectedPath,
25
+ onNavigate,
26
+ children
27
+ }: NavigationProviderProps): react_jsx_runtime86.JSX.Element;
28
+ //#endregion
29
+ export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -1,6 +1,6 @@
1
1
  import { t as DocsLanguage } from "./routing-Cm_9XJiQ.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime98 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime48 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/contexts/navigation.d.ts
6
6
  type NavigationHandler = (ev: React$1.MouseEvent | null, opts: {
@@ -24,6 +24,6 @@ declare function NavigationProvider({
24
24
  selectedPath,
25
25
  onNavigate,
26
26
  children
27
- }: NavigationProviderProps): react_jsx_runtime98.JSX.Element;
27
+ }: NavigationProviderProps): react_jsx_runtime48.JSX.Element;
28
28
  //#endregion
29
29
  export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -1,5 +1,5 @@
1
1
  import { d as Method, m as Resource } from "./index-CwjGm9zX.js";
2
- import * as react_jsx_runtime22 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime10 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/overview.d.ts
5
5
  type SDKResourceProps = {
@@ -9,31 +9,31 @@ type SDKResourceProps = {
9
9
  declare function SDKResourceHeader({
10
10
  resource,
11
11
  parents
12
- }: SDKResourceProps): react_jsx_runtime22.JSX.Element | null;
12
+ }: SDKResourceProps): react_jsx_runtime10.JSX.Element | null;
13
13
  type SDKMethodSummaryProps = {
14
14
  method: Method;
15
15
  };
16
16
  declare function SDKMethodSummary({
17
17
  method
18
- }: SDKMethodSummaryProps): react_jsx_runtime22.JSX.Element;
18
+ }: SDKMethodSummaryProps): react_jsx_runtime10.JSX.Element;
19
19
  declare function SDKResource({
20
20
  resource,
21
21
  parents,
22
22
  showModels
23
23
  }: SDKResourceProps & {
24
24
  showModels?: boolean;
25
- }): react_jsx_runtime22.JSX.Element;
25
+ }): react_jsx_runtime10.JSX.Element;
26
26
  type SDKOverviewProps = {
27
27
  resource: Resource;
28
28
  };
29
29
  declare function SDKOverview({
30
30
  resource
31
- }: SDKOverviewProps): react_jsx_runtime22.JSX.Element;
31
+ }: SDKOverviewProps): react_jsx_runtime10.JSX.Element;
32
32
  type SDKRootProps = {
33
33
  stainlessPath: string;
34
34
  };
35
35
  declare function SDKRoot({
36
36
  stainlessPath
37
- }: SDKRootProps): react_jsx_runtime22.JSX.Element | null;
37
+ }: SDKRootProps): react_jsx_runtime10.JSX.Element | null;
38
38
  //#endregion
39
39
  export { SDKResource as a, SDKRoot as c, SDKOverviewProps as i, SDKRootProps as l, SDKMethodSummaryProps as n, SDKResourceHeader as o, SDKOverview as r, SDKResourceProps as s, SDKMethodSummary as t };
@@ -0,0 +1,39 @@
1
+ import { d as Method, m as Resource } from "./index-CwjGm9zX.js";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
+
4
+ //#region src/components/overview.d.ts
5
+ type SDKResourceProps = {
6
+ resource: Resource;
7
+ parents?: Resource[];
8
+ };
9
+ declare function SDKResourceHeader({
10
+ resource,
11
+ parents
12
+ }: SDKResourceProps): react_jsx_runtime1.JSX.Element | null;
13
+ type SDKMethodSummaryProps = {
14
+ method: Method;
15
+ };
16
+ declare function SDKMethodSummary({
17
+ method
18
+ }: SDKMethodSummaryProps): react_jsx_runtime1.JSX.Element;
19
+ declare function SDKResource({
20
+ resource,
21
+ parents,
22
+ showModels
23
+ }: SDKResourceProps & {
24
+ showModels?: boolean;
25
+ }): react_jsx_runtime1.JSX.Element;
26
+ type SDKOverviewProps = {
27
+ resource: Resource;
28
+ };
29
+ declare function SDKOverview({
30
+ resource
31
+ }: SDKOverviewProps): react_jsx_runtime1.JSX.Element;
32
+ type SDKRootProps = {
33
+ stainlessPath: string;
34
+ };
35
+ declare function SDKRoot({
36
+ stainlessPath
37
+ }: SDKRootProps): react_jsx_runtime1.JSX.Element | null;
38
+ //#endregion
39
+ export { SDKResource as a, SDKRoot as c, SDKOverviewProps as i, SDKRootProps as l, SDKMethodSummaryProps as n, SDKResourceHeader as o, SDKOverview as r, SDKResourceProps as s, SDKMethodSummary as t };
@@ -1,6 +1,6 @@
1
1
  import * as react0 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime27 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime17 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/primitives.d.ts
6
6
  type JoinProps = {
@@ -12,7 +12,7 @@ declare function Join({
12
12
  items,
13
13
  limit,
14
14
  children
15
- }: JoinProps): react_jsx_runtime27.JSX.Element[];
15
+ }: JoinProps): react_jsx_runtime17.JSX.Element[];
16
16
  type ExpanderProps = {
17
17
  id?: string;
18
18
  open?: boolean;
@@ -28,19 +28,19 @@ declare function Expander({
28
28
  virtual,
29
29
  muted,
30
30
  children
31
- }: ExpanderProps): react_jsx_runtime27.JSX.Element;
31
+ }: ExpanderProps): react_jsx_runtime17.JSX.Element;
32
32
  declare function VirtualExpander({
33
33
  id,
34
34
  open: isOpen,
35
35
  muted,
36
36
  summary,
37
37
  children
38
- }: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime27.JSX.Element;
38
+ }: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime17.JSX.Element;
39
39
  declare function Markdown({
40
40
  content
41
41
  }: {
42
42
  content: string;
43
- }): "" | react_jsx_runtime27.JSX.Element | undefined;
43
+ }): "" | react_jsx_runtime17.JSX.Element | undefined;
44
44
  type BadgeProps = {
45
45
  id: string;
46
46
  children?: ReactNode;
@@ -48,7 +48,7 @@ type BadgeProps = {
48
48
  declare function Badge({
49
49
  id,
50
50
  children
51
- }: BadgeProps): react_jsx_runtime27.JSX.Element;
51
+ }: BadgeProps): react_jsx_runtime17.JSX.Element;
52
52
  type TooltipProps = {
53
53
  content: ReactNode;
54
54
  children: ReactNode;
@@ -56,7 +56,7 @@ type TooltipProps = {
56
56
  declare function Tooltip({
57
57
  content,
58
58
  children
59
- }: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime27.JSX.Element | null | undefined;
59
+ }: TooltipProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime17.JSX.Element | null | undefined;
60
60
  type LinkProps = {
61
61
  stainlessPath?: string;
62
62
  scroll?: boolean;
@@ -67,7 +67,7 @@ declare function Link({
67
67
  scroll,
68
68
  children,
69
69
  ...props
70
- }: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime27.JSX.Element | null | undefined;
70
+ }: LinkProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime17.JSX.Element | null | undefined;
71
71
  type InputProps = {
72
72
  left?: ReactNode;
73
73
  right?: ReactNode;
@@ -79,7 +79,7 @@ declare function Input({
79
79
  ref,
80
80
  className,
81
81
  ...props
82
- }: InputProps): react_jsx_runtime27.JSX.Element;
82
+ }: InputProps): react_jsx_runtime17.JSX.Element;
83
83
  type ToggleButtonProps = {
84
84
  children?: ReactNode;
85
85
  selected?: boolean;
@@ -89,7 +89,7 @@ declare function ToggleButton({
89
89
  selected,
90
90
  ref,
91
91
  ...props
92
- }: ToggleButtonProps): react_jsx_runtime27.JSX.Element;
92
+ }: ToggleButtonProps): react_jsx_runtime17.JSX.Element;
93
93
  type ListViewProps<TItem> = {
94
94
  items: Array<TItem>;
95
95
  itemDelegate: (item: TItem, selected: boolean) => React.ReactNode;
@@ -100,6 +100,6 @@ declare function ListView<TItem>({
100
100
  itemDelegate,
101
101
  onSelectListItem,
102
102
  ...rest
103
- }: ListViewProps<TItem>): react_jsx_runtime27.JSX.Element;
103
+ }: ListViewProps<TItem>): react_jsx_runtime17.JSX.Element;
104
104
  //#endregion
105
105
  export { Join as a, ListViewProps as c, ToggleButtonProps as d, Tooltip as f, InputProps as i, Markdown as l, Expander as n, Link as o, VirtualExpander as p, Input as r, ListView as s, Badge as t, ToggleButton as u };
@@ -0,0 +1,105 @@
1
+ import * as react0 from "react";
2
+ import { ReactNode } from "react";
3
+ import * as react_jsx_runtime15 from "react/jsx-runtime";
4
+
5
+ //#region src/components/primitives.d.ts
6
+ type JoinProps = {
7
+ items: ReactNode[];
8
+ limit?: number;
9
+ children: ReactNode;
10
+ };
11
+ declare function Join({
12
+ items,
13
+ limit,
14
+ children
15
+ }: JoinProps): react_jsx_runtime15.JSX.Element[];
16
+ type ExpanderProps = {
17
+ id?: string;
18
+ open?: boolean;
19
+ summary: ReactNode;
20
+ virtual?: boolean;
21
+ muted?: boolean;
22
+ children?: ReactNode;
23
+ };
24
+ declare function Expander({
25
+ id,
26
+ open,
27
+ summary,
28
+ virtual,
29
+ muted,
30
+ children
31
+ }: ExpanderProps): react_jsx_runtime15.JSX.Element;
32
+ declare function VirtualExpander({
33
+ id,
34
+ open: isOpen,
35
+ muted,
36
+ summary,
37
+ children
38
+ }: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime15.JSX.Element;
39
+ declare function Markdown({
40
+ content
41
+ }: {
42
+ content: string;
43
+ }): "" | react_jsx_runtime15.JSX.Element | undefined;
44
+ type BadgeProps = {
45
+ id: string;
46
+ children?: ReactNode;
47
+ };
48
+ declare function Badge({
49
+ id,
50
+ children
51
+ }: BadgeProps): react_jsx_runtime15.JSX.Element;
52
+ type TooltipProps = {
53
+ content: ReactNode;
54
+ children: ReactNode;
55
+ };
56
+ declare function Tooltip({
57
+ content,
58
+ children
59
+ }: TooltipProps): string | number | bigint | boolean | react_jsx_runtime15.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
60
+ type LinkProps = {
61
+ stainlessPath?: string;
62
+ scroll?: boolean;
63
+ children?: ReactNode;
64
+ } & React.HTMLProps<HTMLAnchorElement>;
65
+ declare function Link({
66
+ stainlessPath,
67
+ scroll,
68
+ children,
69
+ ...props
70
+ }: LinkProps): string | number | bigint | boolean | react_jsx_runtime15.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | react0.ReactPortal | react0.ReactElement<unknown, string | react0.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | null | undefined;
71
+ type InputProps = {
72
+ left?: ReactNode;
73
+ right?: ReactNode;
74
+ ref?: React.Ref<HTMLInputElement>;
75
+ } & React.InputHTMLAttributes<HTMLInputElement>;
76
+ declare function Input({
77
+ left,
78
+ right,
79
+ ref,
80
+ className,
81
+ ...props
82
+ }: InputProps): react_jsx_runtime15.JSX.Element;
83
+ type ToggleButtonProps = {
84
+ children?: ReactNode;
85
+ selected?: boolean;
86
+ } & React.ComponentProps<'button'>;
87
+ declare function ToggleButton({
88
+ children,
89
+ selected,
90
+ ref,
91
+ ...props
92
+ }: ToggleButtonProps): react_jsx_runtime15.JSX.Element;
93
+ type ListViewProps<TItem> = {
94
+ items: Array<TItem>;
95
+ itemDelegate: (item: TItem, selected: boolean) => React.ReactNode;
96
+ onSelectListItem?: (item: TItem) => void;
97
+ } & React.HTMLAttributes<HTMLDivElement>;
98
+ declare function ListView<TItem>({
99
+ items,
100
+ itemDelegate,
101
+ onSelectListItem,
102
+ ...rest
103
+ }: ListViewProps<TItem>): react_jsx_runtime15.JSX.Element;
104
+ //#endregion
105
+ export { Join as a, ListViewProps as c, ToggleButtonProps as d, Tooltip as f, InputProps as i, Markdown as l, Expander as n, Link as o, VirtualExpander as p, Input as r, ListView as s, Badge as t, ToggleButton as u };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import * as react_jsx_runtime37 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime25 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/properties.d.ts
5
5
  type PropertyToggleProps = {
@@ -7,19 +7,19 @@ type PropertyToggleProps = {
7
7
  };
8
8
  declare function PropertyToggle({
9
9
  target
10
- }: PropertyToggleProps): react_jsx_runtime37.JSX.Element;
10
+ }: PropertyToggleProps): react_jsx_runtime25.JSX.Element;
11
11
  type PropertyDescriptionProps = {
12
12
  description?: string;
13
13
  };
14
14
  declare function PropertyDescription({
15
15
  description
16
- }: PropertyDescriptionProps): react_jsx_runtime37.JSX.Element | undefined;
16
+ }: PropertyDescriptionProps): react_jsx_runtime25.JSX.Element | undefined;
17
17
  type PropertyTitleProps = {
18
18
  title?: string;
19
19
  };
20
20
  declare function PropertyTitle({
21
21
  title
22
- }: PropertyTitleProps): react_jsx_runtime37.JSX.Element | undefined;
22
+ }: PropertyTitleProps): react_jsx_runtime25.JSX.Element | undefined;
23
23
  type PropertyProps = {
24
24
  id?: string;
25
25
  name?: ReactNode;
@@ -49,6 +49,6 @@ declare function Property({
49
49
  additional,
50
50
  constraints,
51
51
  children
52
- }: PropertyProps): react_jsx_runtime37.JSX.Element | null;
52
+ }: PropertyProps): react_jsx_runtime25.JSX.Element | null;
53
53
  //#endregion
54
54
  export { PropertyTitle as a, PropertyToggleProps as c, PropertyProps as i, PropertyDescription as n, PropertyTitleProps as o, PropertyDescriptionProps as r, PropertyToggle as s, Property as t };
@@ -0,0 +1,54 @@
1
+ import { ReactNode } from "react";
2
+ import * as react_jsx_runtime32 from "react/jsx-runtime";
3
+
4
+ //#region src/components/properties.d.ts
5
+ type PropertyToggleProps = {
6
+ target: string;
7
+ };
8
+ declare function PropertyToggle({
9
+ target
10
+ }: PropertyToggleProps): react_jsx_runtime32.JSX.Element;
11
+ type PropertyDescriptionProps = {
12
+ description?: string;
13
+ };
14
+ declare function PropertyDescription({
15
+ description
16
+ }: PropertyDescriptionProps): react_jsx_runtime32.JSX.Element | undefined;
17
+ type PropertyTitleProps = {
18
+ title?: string;
19
+ };
20
+ declare function PropertyTitle({
21
+ title
22
+ }: PropertyTitleProps): react_jsx_runtime32.JSX.Element | undefined;
23
+ type PropertyProps = {
24
+ id?: string;
25
+ name?: ReactNode;
26
+ typeName?: ReactNode;
27
+ badges?: ReactNode;
28
+ type?: ReactNode;
29
+ description?: string;
30
+ title?: string;
31
+ expand?: boolean;
32
+ deprecated?: boolean | string;
33
+ additional?: ReactNode;
34
+ declaration?: ReactNode;
35
+ constraints?: ReactNode;
36
+ children?: ReactNode;
37
+ };
38
+ declare function Property({
39
+ id,
40
+ name,
41
+ typeName,
42
+ badges,
43
+ type,
44
+ declaration,
45
+ description,
46
+ title,
47
+ deprecated,
48
+ expand,
49
+ additional,
50
+ constraints,
51
+ children
52
+ }: PropertyProps): react_jsx_runtime32.JSX.Element | null;
53
+ //#endregion
54
+ export { PropertyTitle as a, PropertyToggleProps as c, PropertyProps as i, PropertyDescription as n, PropertyTitleProps as o, PropertyDescriptionProps as r, PropertyToggle as s, Property as t };
@@ -0,0 +1,61 @@
1
+ import { _ as Spec, d as Method, f as Model, m as Resource } from "./index-CwjGm9zX.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
+ }): string[];
55
+ type ResourceOrMethod = Resource | Method;
56
+ declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
57
+ declare function expandToElement(el: HTMLElement | null): void;
58
+ declare function scrollToPath(stainlessPath: string): void;
59
+ declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
60
+ //#endregion
61
+ 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 };
@@ -1,7 +1,7 @@
1
1
  import { c as ID, d as Method, f as Model, g as SnippetLanguage, o as HasStainlessPath, t as BaseDeclaration } from "./index-CwjGm9zX.js";
2
- import { t as DocsLanguage } from "./routing-Cm_9XJiQ.js";
2
+ import { t as DocsLanguage } from "./routing-utiR5mY3.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime42 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime37 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): react_jsx_runtime42.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime37.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): react_jsx_runtime42.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime37.JSX.Element;
47
47
  type SDKConstraintsProps = {
48
48
  constraints?: Record<string, any>;
49
49
  };
50
50
  declare function SDKConstraints({
51
51
  constraints
52
- }: SDKConstraintsProps): react_jsx_runtime42.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime37.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): react_jsx_runtime42.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime37.JSX.Element | null;
60
60
  type SDKRequestTitleProps = {
61
61
  snippetLanguage: SnippetLanguage;
62
62
  };
63
63
  declare function SDKRequestTitle({
64
64
  snippetLanguage
65
- }: SDKRequestTitleProps): react_jsx_runtime42.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime37.JSX.Element;
66
66
  type SDKExampleProps = {
67
67
  method: Partial<Method> & HasStainlessPath;
68
68
  transformRequestSnippet?: TransformRequestSnippetFn;
@@ -70,31 +70,31 @@ type SDKExampleProps = {
70
70
  declare function SDKExample({
71
71
  method,
72
72
  transformRequestSnippet
73
- }: SDKExampleProps): react_jsx_runtime42.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime37.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): react_jsx_runtime42.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime37.JSX.Element;
81
81
  declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
82
82
  declare function SDKMethodInfo({
83
83
  method
84
- }: SDKMethodProps): react_jsx_runtime42.JSX.Element;
84
+ }: SDKMethodProps): react_jsx_runtime37.JSX.Element;
85
85
  declare function SDKMethodNotImplemented({
86
86
  method
87
- }: SDKMethodProps): react_jsx_runtime42.JSX.Element;
87
+ }: SDKMethodProps): react_jsx_runtime37.JSX.Element;
88
88
  declare function SDKMethod({
89
89
  method,
90
90
  transformRequestSnippet
91
- }: SDKMethodProps): react_jsx_runtime42.JSX.Element;
91
+ }: SDKMethodProps): react_jsx_runtime37.JSX.Element;
92
92
  type SDKModelProps = {
93
93
  model: Model;
94
94
  };
95
95
  declare function SDKModel({
96
96
  model
97
- }: SDKModelProps): react_jsx_runtime42.JSX.Element | null;
97
+ }: SDKModelProps): react_jsx_runtime37.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 | 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_runtime42.JSX.Element | null | undefined;
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_runtime37.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): react_jsx_runtime42.JSX.Element;
120
+ }: SDKLanguageBlockProps): react_jsx_runtime37.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 };
@@ -47,10 +47,6 @@ function SDKChildren({ paths, expand, depth }) {
47
47
  });
48
48
  }
49
49
  function normalizeDeclaration(raw, http) {
50
- console.log({
51
- raw,
52
- http
53
- });
54
50
  if (raw.kind === "JavaDeclProperty" && raw.type.kind === "JavaTypeString" && raw.constraints?.format === "binary") return {
55
51
  ...raw,
56
52
  type: {