@stainless-api/docs-ui 0.1.0-beta.36 → 0.1.0-beta.38

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 (106) hide show
  1. package/dist/{breadcrumbs-dtzB0F5w.d.ts → breadcrumbs-CZg0Fk4V.d.ts} +2 -2
  2. package/dist/chunk-Bf_Gc_jT.js +18 -0
  3. package/dist/{component-generics-BDiaS39j.d.ts → component-generics-DUS50XL9.d.ts} +2 -2
  4. package/dist/components/breadcrumbs.d.ts +1 -1
  5. package/dist/components/breadcrumbs.js +5 -5
  6. package/dist/components/icons.d.ts +10 -10
  7. package/dist/components/index.d.ts +10 -10
  8. package/dist/components/index.js +5 -5
  9. package/dist/components/method.d.ts +1 -1
  10. package/dist/components/method.js +5 -5
  11. package/dist/components/overview.d.ts +1 -1
  12. package/dist/components/overview.js +5 -5
  13. package/dist/components/primitives.d.ts +1 -1
  14. package/dist/components/primitives.js +5 -5
  15. package/dist/components/properties.d.ts +1 -1
  16. package/dist/components/properties.js +5 -5
  17. package/dist/components/sdk.d.ts +2 -2
  18. package/dist/components/sdk.js +5 -5
  19. package/dist/components/sidebar.d.ts +1 -1
  20. package/dist/components/sidebar.js +5 -5
  21. package/dist/components/snippets.d.ts +3 -3
  22. package/dist/components/snippets.js +5 -5
  23. package/dist/contexts/component-generics.d.ts +1 -1
  24. package/dist/contexts/component-types.d.ts +11 -11
  25. package/dist/contexts/component.d.ts +14 -14
  26. package/dist/contexts/component.js +5 -5
  27. package/dist/contexts/docs.d.ts +1 -1
  28. package/dist/contexts/index.d.ts +18 -18
  29. package/dist/contexts/index.js +5 -5
  30. package/dist/contexts/markdown.d.ts +1 -1
  31. package/dist/contexts/markdown.js +1 -1
  32. package/dist/contexts/navigation.d.ts +2 -2
  33. package/dist/contexts/search.d.ts +3 -3
  34. package/dist/contexts/search.js +5 -5
  35. package/dist/contexts/use-components.d.ts +10 -10
  36. package/dist/{contexts-BsscycD4.js → contexts-B-OYzYpz.js} +6 -6
  37. package/dist/{docs-M2vPMlOU.d.ts → docs-B9fkO7Mn.d.ts} +3 -3
  38. package/dist/{index-yemeeTKf.d.ts → index-B_jjXoVQ.d.ts} +6 -6
  39. package/dist/{index-QAn9oMm0.d.ts → index-CGDCia6s.d.ts} +26 -26
  40. package/dist/{index-rJGGwEE1.d.ts → index-DpCTx708.d.ts} +8 -8
  41. package/dist/index.d.ts +19 -19
  42. package/dist/index.js +5 -5
  43. package/dist/languages/go.d.ts +11 -11
  44. package/dist/languages/go.js +5 -5
  45. package/dist/languages/http.d.ts +11 -11
  46. package/dist/languages/http.js +5 -5
  47. package/dist/languages/index.d.ts +11 -11
  48. package/dist/languages/index.js +5 -5
  49. package/dist/languages/java.d.ts +11 -11
  50. package/dist/languages/java.js +5 -5
  51. package/dist/languages/python.d.ts +11 -11
  52. package/dist/languages/python.js +5 -5
  53. package/dist/languages/ruby.d.ts +11 -11
  54. package/dist/languages/ruby.js +5 -5
  55. package/dist/languages/typescript.d.ts +11 -11
  56. package/dist/languages/typescript.js +5 -5
  57. package/dist/markdown/index.d.ts +3 -3
  58. package/dist/markdown/index.js +5 -5
  59. package/dist/markdown/utils.d.ts +3 -3
  60. package/dist/{markdown-DqmOO2yJ.d.ts → markdown-Dg4RmrDu.d.ts} +3 -3
  61. package/dist/{markdown-CI4kbU64.js → markdown-Diyg-eof.js} +5 -1
  62. package/dist/{method-CZzWOx_C.d.ts → method-DLeTa-A9.d.ts} +7 -7
  63. package/dist/{navigation-Cup7hBYA.d.ts → navigation-BY52fAW7.d.ts} +3 -3
  64. package/dist/{overview-DQbnFeID.d.ts → overview-h2O6tWc_.d.ts} +6 -6
  65. package/dist/{primitives-CLZY-K6r.d.ts → primitives-CpRm6eGm.d.ts} +9 -9
  66. package/dist/{properties-BbVUdVi5.d.ts → properties-CNjEj_vU.d.ts} +4 -4
  67. package/dist/{routing-DNN8R6bZ.d.ts → routing-CHvzedJA.d.ts} +1 -1
  68. package/dist/{routing-8itEXLx6.js → routing-qs2YNG9o.js} +1 -1
  69. package/dist/routing.d.ts +1 -1
  70. package/dist/routing.js +1 -1
  71. package/dist/{sdk-CrXkrSx-.d.ts → sdk-E3vq42RG.d.ts} +1 -1
  72. package/dist/search/index.d.ts +2 -2
  73. package/dist/search/index.js +5 -5
  74. package/dist/search/providers/algolia.d.ts +2 -2
  75. package/dist/search/providers/algolia.js +5 -5
  76. package/dist/search/providers/fuse.d.ts +2 -2
  77. package/dist/search/providers/fuse.js +5 -5
  78. package/dist/search/providers/pagefind.d.ts +2 -2
  79. package/dist/search/providers/walker.d.ts +2 -2
  80. package/dist/search/providers/walker.js +5 -5
  81. package/dist/search/types.d.ts +2 -2
  82. package/dist/{search-CuNBTBix.d.ts → search-CsvAdkNI.d.ts} +3 -3
  83. package/dist/{sidebar-eox2y7Tm.d.ts → sidebar-BQzTXTuq.d.ts} +5 -5
  84. package/dist/{snippets-De1PSCNy.d.ts → snippets-sEbo8iV-.d.ts} +7 -7
  85. package/dist/spec.d.ts +3 -3
  86. package/dist/spec.js +2 -2
  87. package/dist/{style-CuGfVeTo.js → style-BhhgPVF6.js} +0 -2
  88. package/dist/{style-Dku3IzwI.d.ts → style-p4qTfnmO.d.ts} +0 -2
  89. package/dist/style.d.ts +1 -1
  90. package/dist/style.js +1 -1
  91. package/dist/styles/main.css +158 -221
  92. package/dist/styles/primitives.css +36 -36
  93. package/dist/styles/resets.css +2 -2
  94. package/dist/styles/search.css +24 -24
  95. package/dist/styles/sidebar.css +6 -6
  96. package/dist/styles/variables.css +15 -76
  97. package/dist/styles.css +1753 -0
  98. package/dist/styles.mjs +1 -0
  99. package/dist/{types-DNSz4kuM.d.ts → types-fEIVKcbt.d.ts} +1 -1
  100. package/dist/{utils-2FmcHPHp.js → utils-FnJ4tyuN.js} +2 -2
  101. package/dist/{utils-BwsGzMOo.d.ts → utils-kJZFreWP.d.ts} +2 -2
  102. package/dist/utils.js +2 -2
  103. package/package.json +8 -5
  104. package/dist/chunk-DsStOjWQ.js +0 -13
  105. package/dist/styles/snippets.css +0 -131
  106. package/dist/styles/snippets.js +0 -0
@@ -1,13 +1,13 @@
1
1
  import "../docs-CopwX9a7.js";
2
2
  import "../component-generics-D3ybuN5r.js";
3
3
  import "../navigation-CGr5_w6z.js";
4
- import "../markdown-CI4kbU64.js";
5
- import "../routing-8itEXLx6.js";
6
- import "../style-CuGfVeTo.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
7
  import "../use-components-BHEwm0mE.js";
8
- import { D as Property, E as MethodSignature, O as Type, T as Declaration, k as TypeName } from "../contexts-BsscycD4.js";
8
+ import { D as Property, E as MethodSignature, O as Type, T as Declaration, k as TypeName } from "../contexts-B-OYzYpz.js";
9
9
  import "../icons-yb-Jhkmg.js";
10
- import "../utils-2FmcHPHp.js";
10
+ import "../utils-FnJ4tyuN.js";
11
11
  import "../md-DxiV1_vy.js";
12
12
  import "../utils-Jo_o4DX9.js";
13
13
  import "../types-__XoFvJ_.js";
@@ -1,12 +1,12 @@
1
- import "../breadcrumbs-dtzB0F5w.js";
2
- import "../method-CZzWOx_C.js";
3
- import "../primitives-CLZY-K6r.js";
4
- import "../properties-BbVUdVi5.js";
5
- import "../routing-DNN8R6bZ.js";
6
- import "../sdk-CrXkrSx-.js";
7
- import "../snippets-De1PSCNy.js";
8
- import "../overview-DQbnFeID.js";
9
- import "../sidebar-eox2y7Tm.js";
10
- import "../index-rJGGwEE1.js";
11
- import { $ as Declaration, at as Type, et as DeclarationProps, it as PropertyProps, nt as MethodSignatureProps, ot as TypeName, rt as Property, tt as MethodSignature } from "../index-QAn9oMm0.js";
1
+ import "../breadcrumbs-CZg0Fk4V.js";
2
+ import "../method-DLeTa-A9.js";
3
+ import "../primitives-CpRm6eGm.js";
4
+ import "../properties-CNjEj_vU.js";
5
+ import "../routing-CHvzedJA.js";
6
+ import "../sdk-E3vq42RG.js";
7
+ import "../snippets-sEbo8iV-.js";
8
+ import "../overview-h2O6tWc_.js";
9
+ import "../sidebar-BQzTXTuq.js";
10
+ import "../index-DpCTx708.js";
11
+ import { $ as Declaration, at as Type, et as DeclarationProps, it as PropertyProps, nt as MethodSignatureProps, ot as TypeName, rt as Property, tt as MethodSignature } from "../index-CGDCia6s.js";
12
12
  export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,13 +1,13 @@
1
1
  import "../docs-CopwX9a7.js";
2
2
  import "../component-generics-D3ybuN5r.js";
3
3
  import "../navigation-CGr5_w6z.js";
4
- import "../markdown-CI4kbU64.js";
5
- import "../routing-8itEXLx6.js";
6
- import "../style-CuGfVeTo.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
7
  import "../use-components-BHEwm0mE.js";
8
- import { $ as TypeName, Q as Type, X as MethodSignature, Y as Declaration, Z as Property } from "../contexts-BsscycD4.js";
8
+ import { $ as TypeName, Q as Type, X as MethodSignature, Y as Declaration, Z as Property } from "../contexts-B-OYzYpz.js";
9
9
  import "../icons-yb-Jhkmg.js";
10
- import "../utils-2FmcHPHp.js";
10
+ import "../utils-FnJ4tyuN.js";
11
11
  import "../md-DxiV1_vy.js";
12
12
  import "../utils-Jo_o4DX9.js";
13
13
  import "../types-__XoFvJ_.js";
@@ -1,6 +1,6 @@
1
- import "../routing-DNN8R6bZ.js";
2
- import "../sdk-CrXkrSx-.js";
3
- import { t as EnvironmentType } from "../utils-BwsGzMOo.js";
1
+ import "../routing-CHvzedJA.js";
2
+ import "../sdk-E3vq42RG.js";
3
+ import { t as EnvironmentType } from "../utils-kJZFreWP.js";
4
4
  import { Node } from "@markdoc/markdoc";
5
5
  import * as SDKJSON from "@stainless/sdk-json";
6
6
 
@@ -1,13 +1,13 @@
1
1
  import "../docs-CopwX9a7.js";
2
2
  import "../component-generics-D3ybuN5r.js";
3
3
  import "../navigation-CGr5_w6z.js";
4
- import "../markdown-CI4kbU64.js";
5
- import "../routing-8itEXLx6.js";
6
- import "../style-CuGfVeTo.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import "../style-BhhgPVF6.js";
7
7
  import "../use-components-BHEwm0mE.js";
8
- import { d as render, f as renderMarkdown, u as declaration } from "../contexts-BsscycD4.js";
8
+ import { d as render, f as renderMarkdown, u as declaration } from "../contexts-B-OYzYpz.js";
9
9
  import "../icons-yb-Jhkmg.js";
10
- import "../utils-2FmcHPHp.js";
10
+ import "../utils-FnJ4tyuN.js";
11
11
  import "../md-DxiV1_vy.js";
12
12
  import "../utils-Jo_o4DX9.js";
13
13
  import "../types-__XoFvJ_.js";
@@ -1,4 +1,4 @@
1
- import "../routing-DNN8R6bZ.js";
2
- import "../sdk-CrXkrSx-.js";
3
- import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-BwsGzMOo.js";
1
+ import "../routing-CHvzedJA.js";
2
+ import "../sdk-E3vq42RG.js";
3
+ import { i as stripMarkup, n as getDecl, r as getSnippet, t as EnvironmentType } from "../utils-kJZFreWP.js";
4
4
  export { EnvironmentType, getDecl, getSnippet, stripMarkup };
@@ -1,10 +1,10 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime36 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime52 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/contexts/markdown.d.ts
5
5
  type MarkdownContext = {
6
6
  highlight: (content: string, language: string) => string | Promise<string>;
7
- render: (content: string) => string;
7
+ render: (content: string) => string | Promise<string>;
8
8
  };
9
9
  declare const MarkdownContext: React$1.Context<MarkdownContext>;
10
10
  declare const useMarkdownContext: () => MarkdownContext;
@@ -17,6 +17,6 @@ declare function MarkdownProvider({
17
17
  render,
18
18
  highlight,
19
19
  children
20
- }: MarkdownProviderProps): react_jsx_runtime36.JSX.Element;
20
+ }: MarkdownProviderProps): react_jsx_runtime52.JSX.Element;
21
21
  //#endregion
22
22
  export { useMarkdownContext as a, useHighlight as i, MarkdownProvider as n, useRenderMarkdown as o, MarkdownProviderProps as r, MarkdownContext as t };
@@ -14,7 +14,11 @@ const MarkdownContext = React$1.createContext({
14
14
  const useMarkdownContext = () => React$1.useContext(MarkdownContext);
15
15
  function useRenderMarkdown(content) {
16
16
  const { render } = React$1.useContext(MarkdownContext);
17
- return React$1.useMemo(() => content ? render(content) : void 0, [content, render]);
17
+ return React$1.useMemo(() => {
18
+ if (!content) return void 0;
19
+ const rendered = render(content);
20
+ return typeof rendered === "string" ? rendered : React$1.use(rendered);
21
+ }, [content, render]);
18
22
  }
19
23
  function useHighlight(content, language) {
20
24
  const { highlight } = React$1.useContext(MarkdownContext);
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime50 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime4 from "react/jsx-runtime";
4
4
  import { LucideIcon } from "lucide-react";
5
5
 
6
6
  //#region src/components/method.d.ts
@@ -14,7 +14,7 @@ type MethodIconProps = {
14
14
  declare function MethodIconBadge({
15
15
  httpMethod,
16
16
  showName
17
- }: MethodIconProps): react_jsx_runtime50.JSX.Element | null;
17
+ }: MethodIconProps): react_jsx_runtime4.JSX.Element | null;
18
18
  type MethodHeaderProps = {
19
19
  title: ReactNode;
20
20
  level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
@@ -28,7 +28,7 @@ declare function MethodHeader({
28
28
  signature,
29
29
  children,
30
30
  level
31
- }: MethodHeaderProps): react_jsx_runtime50.JSX.Element;
31
+ }: MethodHeaderProps): react_jsx_runtime4.JSX.Element;
32
32
  type MethodRouteProps = {
33
33
  httpMethod?: string;
34
34
  endpoint?: string | ReactNode;
@@ -38,13 +38,13 @@ declare function MethodRoute({
38
38
  httpMethod,
39
39
  endpoint,
40
40
  iconOnly
41
- }: MethodRouteProps): react_jsx_runtime50.JSX.Element;
41
+ }: MethodRouteProps): react_jsx_runtime4.JSX.Element;
42
42
  type MethodDescriptionProps = {
43
43
  description?: string;
44
44
  };
45
45
  declare function MethodDescription({
46
46
  description
47
- }: MethodDescriptionProps): react_jsx_runtime50.JSX.Element | undefined;
47
+ }: MethodDescriptionProps): react_jsx_runtime4.JSX.Element | undefined;
48
48
  type MethodInfoProps = {
49
49
  children?: ReactNode;
50
50
  parameters?: ReactNode;
@@ -54,7 +54,7 @@ declare function MethodInfo({
54
54
  children,
55
55
  parameters,
56
56
  returns
57
- }: MethodInfoProps): react_jsx_runtime50.JSX.Element;
57
+ }: MethodInfoProps): react_jsx_runtime4.JSX.Element;
58
58
  type MethodProps = {
59
59
  id?: string;
60
60
  header?: ReactNode;
@@ -66,6 +66,6 @@ declare function Method({
66
66
  children,
67
67
  className,
68
68
  ...props
69
- }: MethodProps): react_jsx_runtime50.JSX.Element;
69
+ }: MethodProps): react_jsx_runtime4.JSX.Element;
70
70
  //#endregion
71
71
  export { MethodDescription as a, MethodHeaderProps as c, MethodInfo as d, MethodInfoProps as f, MethodRouteProps as h, Method as i, MethodIconBadge as l, MethodRoute as m, HttpMethodIcons as n, MethodDescriptionProps as o, MethodProps as p, HttpMethods as r, MethodHeader as s, HTTPMethod as t, MethodIconProps as u };
@@ -1,6 +1,6 @@
1
- import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
1
+ import { t as DocsLanguage } from "./routing-CHvzedJA.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime56 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime23 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_runtime56.JSX.Element;
27
+ }: NavigationProviderProps): react_jsx_runtime23.JSX.Element;
28
28
  //#endregion
29
29
  export { useNavigation as a, NavigationProviderProps as i, NavigationHandler as n, NavigationProvider as r, NavigationContextType as t };
@@ -1,4 +1,4 @@
1
- import * as react_jsx_runtime23 from "react/jsx-runtime";
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
2
  import * as SDKJSON from "@stainless/sdk-json";
3
3
 
4
4
  //#region src/components/overview.d.ts
@@ -9,31 +9,31 @@ type SDKResourceProps = {
9
9
  declare function SDKResourceHeader({
10
10
  resource,
11
11
  parents
12
- }: SDKResourceProps): react_jsx_runtime23.JSX.Element | null;
12
+ }: SDKResourceProps): react_jsx_runtime0.JSX.Element | null;
13
13
  type SDKMethodSummaryProps = {
14
14
  method: SDKJSON.Method;
15
15
  };
16
16
  declare function SDKMethodSummary({
17
17
  method
18
- }: SDKMethodSummaryProps): react_jsx_runtime23.JSX.Element;
18
+ }: SDKMethodSummaryProps): react_jsx_runtime0.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_runtime23.JSX.Element;
25
+ }): react_jsx_runtime0.JSX.Element;
26
26
  type SDKOverviewProps = {
27
27
  resource: SDKJSON.Resource;
28
28
  };
29
29
  declare function SDKOverview({
30
30
  resource
31
- }: SDKOverviewProps): react_jsx_runtime23.JSX.Element;
31
+ }: SDKOverviewProps): react_jsx_runtime0.JSX.Element;
32
32
  type SDKRootProps = {
33
33
  stainlessPath: string;
34
34
  };
35
35
  declare function SDKRoot({
36
36
  stainlessPath
37
- }: SDKRootProps): react_jsx_runtime23.JSX.Element | null;
37
+ }: SDKRootProps): react_jsx_runtime0.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 };
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime41 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime39 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_runtime41.JSX.Element[];
15
+ }: JoinProps): react_jsx_runtime39.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_runtime41.JSX.Element;
31
+ }: ExpanderProps): react_jsx_runtime39.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_runtime41.JSX.Element;
38
+ }: Omit<ExpanderProps, 'virtual'>): react_jsx_runtime39.JSX.Element;
39
39
  declare function Markdown({
40
40
  content
41
41
  }: {
42
42
  content: string;
43
- }): "" | react_jsx_runtime41.JSX.Element | undefined;
43
+ }): "" | react_jsx_runtime39.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_runtime41.JSX.Element;
51
+ }: BadgeProps): react_jsx_runtime39.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 | react_jsx_runtime41.JSX.Element | 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> | null | undefined;
59
+ }: TooltipProps): string | number | bigint | boolean | react_jsx_runtime39.JSX.Element | 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> | 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 | react_jsx_runtime41.JSX.Element | 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> | null | undefined;
70
+ }: LinkProps): string | number | bigint | boolean | react_jsx_runtime39.JSX.Element | 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> | null | undefined;
71
71
  type InputProps = {
72
72
  left?: ReactNode;
73
73
  right?: ReactNode;
@@ -94,6 +94,6 @@ declare function ListView<TItem>({
94
94
  itemDelegate,
95
95
  onSelectListItem,
96
96
  ...rest
97
- }: ListViewProps<TItem>): react_jsx_runtime41.JSX.Element;
97
+ }: ListViewProps<TItem>): react_jsx_runtime39.JSX.Element;
98
98
  //#endregion
99
99
  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_runtime33 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,13 +7,13 @@ type PropertyToggleProps = {
7
7
  };
8
8
  declare function PropertyToggle({
9
9
  target
10
- }: PropertyToggleProps): react_jsx_runtime33.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_runtime33.JSX.Element | undefined;
16
+ }: PropertyDescriptionProps): react_jsx_runtime25.JSX.Element | undefined;
17
17
  type PropertyProps = {
18
18
  id?: string;
19
19
  name?: ReactNode;
@@ -41,6 +41,6 @@ declare function Property({
41
41
  additional,
42
42
  constraints,
43
43
  children
44
- }: PropertyProps): react_jsx_runtime33.JSX.Element;
44
+ }: PropertyProps): react_jsx_runtime25.JSX.Element;
45
45
  //#endregion
46
46
  export { PropertyToggle as a, PropertyProps as i, PropertyDescription as n, PropertyToggleProps as o, PropertyDescriptionProps as r, Property as t };
@@ -8,7 +8,7 @@ declare const Languages: readonly ["http", "node", "python", "go", "typescript",
8
8
  declare const SupportedLanguageSyntaxes: string[];
9
9
  type DocsLanguage = (typeof Languages)[number];
10
10
  declare const LanguageNames: Record<DocsLanguage, string>;
11
- declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "node.default" | "go.default" | "python.default" | "terraform.default" | "typescript.default" | "ruby.default" | "java.default" | "kotlin.default";
11
+ declare function getLanguageSnippet(language: DocsLanguage): "http.curl" | "node.default" | "python.default" | "go.default" | "typescript.default" | "terraform.default" | "ruby.default" | "java.default" | "kotlin.default";
12
12
  declare function isSupportedLanguage(language: string): language is DocsLanguage;
13
13
  type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
14
14
  declare function parseStainlessPath(stainlessPath: string): {
@@ -1,4 +1,4 @@
1
- import { t as __export } from "./chunk-DsStOjWQ.js";
1
+ import { t as __export } from "./chunk-Bf_Gc_jT.js";
2
2
 
3
3
  //#region src/routing.ts
4
4
  var routing_exports = /* @__PURE__ */ __export({
package/dist/routing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as RouteEntry, b as updateHistory, c as expandToElement, d as generateRouteList, f as getLanguageSnippet, g as parseStainlessPath, h as parseRoute, i as ParsedStainlessPath, l as findNavigationPath, m as isSupportedLanguage, n as LanguageNames, o as SpecTreeEntry, p as getResource, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateRoute, v as scrollToPath, x as walkTree, y as trimStainlessPath } from "./routing-DNN8R6bZ.js";
1
+ import { a as RouteEntry, b as updateHistory, c as expandToElement, d as generateRouteList, f as getLanguageSnippet, g as parseStainlessPath, h as parseRoute, i as ParsedStainlessPath, l as findNavigationPath, m as isSupportedLanguage, n as LanguageNames, o as SpecTreeEntry, p as getResource, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateRoute, v as scrollToPath, x as walkTree, y as trimStainlessPath } from "./routing-CHvzedJA.js";
2
2
  export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
package/dist/routing.js CHANGED
@@ -1,3 +1,3 @@
1
- import { _ as walkTree, a as findNavigationPath, c as getLanguageSnippet, d as parseRoute, f as parseStainlessPath, g as updateHistory, h as trimStainlessPath, i as expandToElement, l as getResource, m as scrollToPath, n as Languages, o as generateRoute, r as SupportedLanguageSyntaxes, s as generateRouteList, t as LanguageNames, u as isSupportedLanguage } from "./routing-8itEXLx6.js";
1
+ import { _ as walkTree, a as findNavigationPath, c as getLanguageSnippet, d as parseRoute, f as parseStainlessPath, g as updateHistory, h as trimStainlessPath, i as expandToElement, l as getResource, m as scrollToPath, n as Languages, o as generateRoute, r as SupportedLanguageSyntaxes, s as generateRouteList, t as LanguageNames, u as isSupportedLanguage } from "./routing-qs2YNG9o.js";
2
2
 
3
3
  export { LanguageNames, Languages, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
@@ -1,4 +1,4 @@
1
- import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
1
+ import { t as DocsLanguage } from "./routing-CHvzedJA.js";
2
2
  import * as React$1 from "react";
3
3
  import * as react_jsx_runtime57 from "react/jsx-runtime";
4
4
  import * as SDKJSON from "@stainless/sdk-json";
@@ -1,5 +1,5 @@
1
- import "../routing-DNN8R6bZ.js";
2
- import { c as QueryKindsType, l as ResultData } from "../types-DNSz4kuM.js";
1
+ import "../routing-CHvzedJA.js";
2
+ import { c as QueryKindsType, l as ResultData } from "../types-fEIVKcbt.js";
3
3
  import * as react_jsx_runtime82 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/search/form.d.ts
@@ -1,13 +1,13 @@
1
1
  import { a as useLanguage } from "../docs-CopwX9a7.js";
2
2
  import "../component-generics-D3ybuN5r.js";
3
3
  import "../navigation-CGr5_w6z.js";
4
- import "../markdown-CI4kbU64.js";
5
- import "../routing-8itEXLx6.js";
6
- import { t as style_default } from "../style-CuGfVeTo.js";
4
+ import "../markdown-Diyg-eof.js";
5
+ import "../routing-qs2YNG9o.js";
6
+ import { t as style_default } from "../style-BhhgPVF6.js";
7
7
  import { t as useComponents } from "../use-components-BHEwm0mE.js";
8
- import { a as useSearchContext, i as useSearch } from "../contexts-BsscycD4.js";
8
+ import { a as useSearchContext, i as useSearch } from "../contexts-B-OYzYpz.js";
9
9
  import "../icons-yb-Jhkmg.js";
10
- import "../utils-2FmcHPHp.js";
10
+ import "../utils-FnJ4tyuN.js";
11
11
  import "../md-DxiV1_vy.js";
12
12
  import "../utils-Jo_o4DX9.js";
13
13
  import { t as QueryKinds } from "../types-__XoFvJ_.js";
@@ -1,5 +1,5 @@
1
- import "../../routing-DNN8R6bZ.js";
2
- import { d as ResultType, h as SearchSettings, m as SearchParams } from "../../types-DNSz4kuM.js";
1
+ import "../../routing-CHvzedJA.js";
2
+ import { d as ResultType, h as SearchSettings, m as SearchParams } from "../../types-fEIVKcbt.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/search/providers/algolia.d.ts
@@ -1,13 +1,13 @@
1
1
  import "../../docs-CopwX9a7.js";
2
2
  import "../../component-generics-D3ybuN5r.js";
3
3
  import "../../navigation-CGr5_w6z.js";
4
- import "../../markdown-CI4kbU64.js";
5
- import "../../routing-8itEXLx6.js";
6
- import "../../style-CuGfVeTo.js";
4
+ import "../../markdown-Diyg-eof.js";
5
+ import "../../routing-qs2YNG9o.js";
6
+ import "../../style-BhhgPVF6.js";
7
7
  import "../../use-components-BHEwm0mE.js";
8
- import { c as search, o as buildChatIndex, s as buildIndex } from "../../contexts-BsscycD4.js";
8
+ import { c as search, o as buildChatIndex, s as buildIndex } from "../../contexts-B-OYzYpz.js";
9
9
  import "../../icons-yb-Jhkmg.js";
10
- import "../../utils-2FmcHPHp.js";
10
+ import "../../utils-FnJ4tyuN.js";
11
11
  import "../../md-DxiV1_vy.js";
12
12
  import "../../utils-Jo_o4DX9.js";
13
13
  import "../../types-__XoFvJ_.js";
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "../../routing-DNN8R6bZ.js";
2
- import { n as IndexEntry } from "../../types-DNSz4kuM.js";
1
+ import { t as DocsLanguage } from "../../routing-CHvzedJA.js";
2
+ import { n as IndexEntry } from "../../types-fEIVKcbt.js";
3
3
  import * as fuse_js0 from "fuse.js";
4
4
  import { FuseIndex } from "fuse.js";
5
5
  import * as SDKJSON from "@stainless/sdk-json";
@@ -1,13 +1,13 @@
1
1
  import "../../docs-CopwX9a7.js";
2
2
  import "../../component-generics-D3ybuN5r.js";
3
3
  import "../../navigation-CGr5_w6z.js";
4
- import "../../markdown-CI4kbU64.js";
5
- import "../../routing-8itEXLx6.js";
6
- import "../../style-CuGfVeTo.js";
4
+ import "../../markdown-Diyg-eof.js";
5
+ import "../../routing-qs2YNG9o.js";
6
+ import "../../style-BhhgPVF6.js";
7
7
  import "../../use-components-BHEwm0mE.js";
8
- import { l as generateIndex } from "../../contexts-BsscycD4.js";
8
+ import { l as generateIndex } from "../../contexts-B-OYzYpz.js";
9
9
  import "../../icons-yb-Jhkmg.js";
10
- import "../../utils-2FmcHPHp.js";
10
+ import "../../utils-FnJ4tyuN.js";
11
11
  import "../../md-DxiV1_vy.js";
12
12
  import "../../utils-Jo_o4DX9.js";
13
13
  import { n as SearchableAttributes } from "../../types-__XoFvJ_.js";
@@ -1,5 +1,5 @@
1
- import "../../routing-DNN8R6bZ.js";
2
- import { t as GuideResultType } from "../../types-DNSz4kuM.js";
1
+ import "../../routing-CHvzedJA.js";
2
+ import { t as GuideResultType } from "../../types-fEIVKcbt.js";
3
3
 
4
4
  //#region src/search/providers/pagefind.d.ts
5
5
  declare function guideSearch(loadPath: string, query: string, limit?: number): Promise<GuideResultType[]>;
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "../../routing-DNN8R6bZ.js";
2
- import { n as IndexEntry } from "../../types-DNSz4kuM.js";
1
+ import { t as DocsLanguage } from "../../routing-CHvzedJA.js";
2
+ import { n as IndexEntry } from "../../types-fEIVKcbt.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/search/providers/walker.d.ts
@@ -1,13 +1,13 @@
1
1
  import "../../docs-CopwX9a7.js";
2
2
  import "../../component-generics-D3ybuN5r.js";
3
3
  import "../../navigation-CGr5_w6z.js";
4
- import "../../markdown-CI4kbU64.js";
5
- import "../../routing-8itEXLx6.js";
6
- import "../../style-CuGfVeTo.js";
4
+ import "../../markdown-Diyg-eof.js";
5
+ import "../../routing-qs2YNG9o.js";
6
+ import "../../style-BhhgPVF6.js";
7
7
  import "../../use-components-BHEwm0mE.js";
8
- import { l as generateIndex } from "../../contexts-BsscycD4.js";
8
+ import { l as generateIndex } from "../../contexts-B-OYzYpz.js";
9
9
  import "../../icons-yb-Jhkmg.js";
10
- import "../../utils-2FmcHPHp.js";
10
+ import "../../utils-FnJ4tyuN.js";
11
11
  import "../../md-DxiV1_vy.js";
12
12
  import "../../utils-Jo_o4DX9.js";
13
13
  import { n as SearchableAttributes } from "../../types-__XoFvJ_.js";
@@ -1,3 +1,3 @@
1
- import "../routing-DNN8R6bZ.js";
2
- import { _ as SearchableAttributesChat, a as IndexProperty, c as QueryKindsType, d as ResultType, f as RoutableJsonNode, g as SearchableAttributes, h as SearchSettings, i as IndexModel, l as ResultData, m as SearchParams, n as IndexEntry, o as IndexResource, p as SearchAttributeNames, r as IndexMethod, s as QueryKinds, t as GuideResultType, u as ResultRecordType } from "../types-DNSz4kuM.js";
1
+ import "../routing-CHvzedJA.js";
2
+ import { _ as SearchableAttributesChat, a as IndexProperty, c as QueryKindsType, d as ResultType, f as RoutableJsonNode, g as SearchableAttributes, h as SearchSettings, i as IndexModel, l as ResultData, m as SearchParams, n as IndexEntry, o as IndexResource, p as SearchAttributeNames, r as IndexMethod, s as QueryKinds, t as GuideResultType, u as ResultRecordType } from "../types-fEIVKcbt.js";
3
3
  export { GuideResultType, IndexEntry, IndexMethod, IndexModel, IndexProperty, IndexResource, QueryKinds, QueryKindsType, ResultData, ResultRecordType, ResultType, RoutableJsonNode, SearchAttributeNames, SearchParams, SearchSettings, SearchableAttributes, SearchableAttributesChat };
@@ -1,6 +1,6 @@
1
- import { d as ResultType, h as SearchSettings, m as SearchParams } from "./types-DNSz4kuM.js";
1
+ import { d as ResultType, h as SearchSettings, m as SearchParams } from "./types-fEIVKcbt.js";
2
2
  import * as React$1 from "react";
3
- import * as react_jsx_runtime3 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime24 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/contexts/search.d.ts
6
6
  type SearchContextType = {
@@ -16,6 +16,6 @@ type SearchProviderProps = SearchContextType & {
16
16
  declare function SearchProvider({
17
17
  children,
18
18
  ...props
19
- }: SearchProviderProps): react_jsx_runtime3.JSX.Element;
19
+ }: SearchProviderProps): react_jsx_runtime24.JSX.Element;
20
20
  //#endregion
21
21
  export { useSearchContext as a, useSearch as i, SearchProvider as n, SearchProviderProps as r, SearchContextType as t };
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime19 from "react/jsx-runtime";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/components/sidebar.d.ts
@@ -12,25 +12,25 @@ declare function SidebarExpander({
12
12
  open,
13
13
  summary,
14
14
  children
15
- }: SidebarExpanderProps): react_jsx_runtime0.JSX.Element;
15
+ }: SidebarExpanderProps): react_jsx_runtime19.JSX.Element;
16
16
  type SidebarMethodProps = {
17
17
  method: SDKJSON.Method;
18
18
  };
19
19
  declare function SidebarMethod({
20
20
  method
21
- }: SidebarMethodProps): react_jsx_runtime0.JSX.Element;
21
+ }: SidebarMethodProps): react_jsx_runtime19.JSX.Element;
22
22
  type SidebarResourceProps = {
23
23
  resource: SDKJSON.Resource;
24
24
  };
25
25
  declare function SidebarResource({
26
26
  resource
27
- }: SidebarResourceProps): react_jsx_runtime0.JSX.Element;
27
+ }: SidebarResourceProps): react_jsx_runtime19.JSX.Element;
28
28
  type SidebarProps = {
29
29
  resources: SDKJSON.Resource[];
30
30
  selectedPath?: string;
31
31
  };
32
32
  declare function Sidebar({
33
33
  resources
34
- }: SidebarProps): react_jsx_runtime0.JSX.Element;
34
+ }: SidebarProps): react_jsx_runtime19.JSX.Element;
35
35
  //#endregion
36
36
  export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };