@stainless-api/docs-ui 0.1.0-beta.65 → 0.1.0-beta.67

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 (99) hide show
  1. package/dist/{breadcrumbs-C22Eos5U.js → breadcrumbs-qxCW6sK2.js} +1 -1
  2. package/dist/{cli-C9b02R53.js → cli-ByPDdxBS.js} +2 -2
  3. package/dist/{component-B5j-H4cO.js → component-CjdWk4ni.js} +2 -2
  4. package/dist/{component-generics-DBuEnCtJ.d.ts → component-generics-BBuevgK_.d.ts} +2 -2
  5. package/dist/components/MaskedInput.d.ts +1 -1
  6. package/dist/components/breadcrumbs.js +5 -5
  7. package/dist/components/icons.d.ts +12 -12
  8. package/dist/components/index.d.ts +9 -9
  9. package/dist/components/index.js +11 -11
  10. package/dist/components/method.d.ts +1 -1
  11. package/dist/components/method.js +5 -5
  12. package/dist/components/overview.d.ts +1 -1
  13. package/dist/components/overview.js +6 -6
  14. package/dist/components/primitives.d.ts +1 -1
  15. package/dist/components/primitives.js +4 -4
  16. package/dist/components/properties.d.ts +1 -1
  17. package/dist/components/properties.js +4 -4
  18. package/dist/components/sdk-sidebar.d.ts +1 -1
  19. package/dist/components/sdk-sidebar.js +3 -3
  20. package/dist/components/sdk.d.ts +1 -1
  21. package/dist/components/sdk.js +4 -4
  22. package/dist/components/snippets.d.ts +2 -2
  23. package/dist/components/snippets.js +4 -4
  24. package/dist/components/stl-sidebar.d.ts +1 -1
  25. package/dist/{components-C4bGzXqr.js → components-BPWzaaJS.js} +7 -7
  26. package/dist/contexts/component-generics.d.ts +1 -1
  27. package/dist/contexts/component-types.d.ts +10 -10
  28. package/dist/contexts/component.d.ts +13 -13
  29. package/dist/contexts/component.js +22 -22
  30. package/dist/contexts/docs.d.ts +2 -2
  31. package/dist/contexts/docs.js +2 -2
  32. package/dist/contexts/index.d.ts +16 -16
  33. package/dist/contexts/index.js +4 -4
  34. package/dist/contexts/markdown.d.ts +1 -1
  35. package/dist/contexts/markdown.js +2 -2
  36. package/dist/contexts/navigation.d.ts +1 -1
  37. package/dist/contexts/use-components.d.ts +9 -9
  38. package/dist/{contexts-DMjqoc7S.js → contexts-CVj20VV4.js} +3 -2
  39. package/dist/{csharp-Ckuihkec.js → csharp-D6_jlynY.js} +1 -1
  40. package/dist/{docs-CMkfabi3.d.ts → docs-BhIfadtZ.d.ts} +5 -4
  41. package/dist/{docs-6PYi1eEV.js → docs-BmOB2f-I.js} +4 -1
  42. package/dist/{go-DrZxKwGv.js → go-COaHV3Hc.js} +1 -1
  43. package/dist/{http-BoZv04yo.js → http-DwJsFd9q.js} +4 -4
  44. package/dist/{index-DCqDybi3.d.ts → index-BGZwPcKG.d.ts} +39 -39
  45. package/dist/{index-BYTDY59Z.d.ts → index-CU1fzYyr.d.ts} +8 -8
  46. package/dist/index.d.ts +14 -14
  47. package/dist/index.js +21 -21
  48. package/dist/{java-DB33acTL.js → java-CxGSJVvv.js} +2 -2
  49. package/dist/languages/cli.d.ts +10 -10
  50. package/dist/languages/cli.js +13 -13
  51. package/dist/languages/csharp.d.ts +10 -10
  52. package/dist/languages/csharp.js +4 -4
  53. package/dist/languages/go.d.ts +10 -10
  54. package/dist/languages/go.js +4 -4
  55. package/dist/languages/http.d.ts +10 -10
  56. package/dist/languages/http.js +12 -12
  57. package/dist/languages/index.d.ts +10 -10
  58. package/dist/languages/index.js +21 -21
  59. package/dist/languages/java.d.ts +10 -10
  60. package/dist/languages/java.js +4 -4
  61. package/dist/languages/python.d.ts +10 -10
  62. package/dist/languages/python.js +4 -4
  63. package/dist/languages/ruby.d.ts +10 -10
  64. package/dist/languages/ruby.js +4 -4
  65. package/dist/languages/terraform.d.ts +10 -10
  66. package/dist/languages/terraform.js +4 -4
  67. package/dist/languages/typescript.d.ts +10 -10
  68. package/dist/languages/typescript.js +4 -4
  69. package/dist/languages-Doc82_aw.js +30 -0
  70. package/dist/markdown/index.d.ts +1 -1
  71. package/dist/markdown/index.js +22 -22
  72. package/dist/markdown/printer.js +22 -22
  73. package/dist/markdown/utils.d.ts +2 -2
  74. package/dist/{markdown-DHjcD13O.js → markdown-CTKHMLVr.js} +1 -1
  75. package/dist/{markdown-9xLfF9XX.d.ts → markdown-D83YEroZ.d.ts} +2 -2
  76. package/dist/{method-DuiknwGt.js → method-BPDUyBlD.js} +1 -1
  77. package/dist/{method-BwXzL3P1.d.ts → method-BZzpQ6yS.d.ts} +6 -6
  78. package/dist/{navigation-C7KdkOOQ.d.ts → navigation-CMc4Aqw5.d.ts} +2 -2
  79. package/dist/{overview-Bgw9OG4s.d.ts → overview-CD8aZ-q6.d.ts} +6 -6
  80. package/dist/{overview-CcVRPEBm.js → overview-FVLGi7mE.js} +4 -4
  81. package/dist/{primitives-BFT7Ya7M.d.ts → primitives-DhGxFYx6.d.ts} +11 -11
  82. package/dist/{primitives-B6y6nqBK.js → primitives-WC1BbBHN.js} +2 -2
  83. package/dist/{properties-D2J5gvC-.js → properties-BnbBKd5a.js} +2 -1
  84. package/dist/{properties-Dw7HWUj0.d.ts → properties-Lb6C4q9N.d.ts} +5 -5
  85. package/dist/{python-CU3scKKD.js → python-DsTuWCKE.js} +1 -1
  86. package/dist/{ruby-DGRZDnHB.js → ruby-CHdEJiJl.js} +2 -2
  87. package/dist/{sdk-CR-rCp9e.js → sdk-CMMvOAdj.js} +7 -4
  88. package/dist/{sdk-AjblXmHS.d.ts → sdk-PiHLvMdV.d.ts} +14 -14
  89. package/dist/{sdk-sidebar-D0TtSeoG.d.ts → sdk-sidebar-Ck41RYV8.d.ts} +2 -2
  90. package/dist/{snippets-Us8YSl3A.js → snippets-BehbU3rt.js} +2 -2
  91. package/dist/{snippets-Cp1UqKR_.d.ts → snippets-DoY3fghd.d.ts} +8 -8
  92. package/dist/{stl-sidebar-GAhLy2ST.d.ts → stl-sidebar-CNGimF4q.d.ts} +2 -2
  93. package/dist/styles/main.css +1 -2
  94. package/dist/styles/primitives.css +1 -1
  95. package/dist/styles.css +2 -9
  96. package/dist/{terraform-BD7o7zbh.js → terraform-B95X4rNK.js} +2 -2
  97. package/dist/{typescript-CEVQ6kS_.js → typescript-n46M9OtL.js} +2 -2
  98. package/package.json +2 -2
  99. package/dist/languages-ZaloBYTK.js +0 -30
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime49 from "react/jsx-runtime";
3
+ import * as react_jsx_runtime77 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/method.d.ts
6
6
  type MethodHeaderProps = {
@@ -16,7 +16,7 @@ declare function MethodHeader({
16
16
  signature,
17
17
  children,
18
18
  level
19
- }: MethodHeaderProps): react_jsx_runtime49.JSX.Element;
19
+ }: MethodHeaderProps): react_jsx_runtime77.JSX.Element;
20
20
  type MethodRouteProps = {
21
21
  httpMethod?: string;
22
22
  endpoint?: string | ReactNode;
@@ -26,13 +26,13 @@ declare function MethodRoute({
26
26
  httpMethod,
27
27
  endpoint,
28
28
  iconOnly
29
- }: MethodRouteProps): react_jsx_runtime49.JSX.Element;
29
+ }: MethodRouteProps): react_jsx_runtime77.JSX.Element;
30
30
  type MethodDescriptionProps = {
31
31
  description?: string;
32
32
  };
33
33
  declare function MethodDescription({
34
34
  description
35
- }: MethodDescriptionProps): react_jsx_runtime49.JSX.Element | undefined;
35
+ }: MethodDescriptionProps): react_jsx_runtime77.JSX.Element | undefined;
36
36
  type MethodInfoProps = {
37
37
  children?: ReactNode;
38
38
  parameters?: ReactNode;
@@ -42,7 +42,7 @@ declare function MethodInfo({
42
42
  children,
43
43
  parameters,
44
44
  returns
45
- }: MethodInfoProps): react_jsx_runtime49.JSX.Element;
45
+ }: MethodInfoProps): react_jsx_runtime77.JSX.Element;
46
46
  type MethodProps = {
47
47
  id?: string;
48
48
  header?: ReactNode;
@@ -54,6 +54,6 @@ declare function Method({
54
54
  children,
55
55
  className,
56
56
  ...props
57
- }: MethodProps): react_jsx_runtime49.JSX.Element;
57
+ }: MethodProps): react_jsx_runtime77.JSX.Element;
58
58
  //#endregion
59
59
  export { MethodHeaderProps as a, MethodProps as c, MethodHeader as i, MethodRoute as l, MethodDescription as n, MethodInfo as o, MethodDescriptionProps as r, MethodInfoProps as s, Method as t, MethodRouteProps as u };
@@ -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_runtime82 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_runtime82.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_runtime54 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime12 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_runtime54.JSX.Element | null;
12
+ }: SDKResourceProps): react_jsx_runtime12.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_runtime54.JSX.Element;
18
+ }: SDKMethodSummaryProps): react_jsx_runtime12.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_runtime54.JSX.Element;
25
+ }): react_jsx_runtime12.JSX.Element;
26
26
  type SDKOverviewProps = {
27
27
  resource: Resource;
28
28
  };
29
29
  declare function SDKOverview({
30
30
  resource
31
- }: SDKOverviewProps): react_jsx_runtime54.JSX.Element;
31
+ }: SDKOverviewProps): react_jsx_runtime12.JSX.Element;
32
32
  type SDKRootProps = {
33
33
  stainlessPath: string;
34
34
  };
35
35
  declare function SDKRoot({
36
36
  stainlessPath
37
- }: SDKRootProps): react_jsx_runtime54.JSX.Element | null;
37
+ }: SDKRootProps): react_jsx_runtime12.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,10 +1,10 @@
1
- import { i as useDeclaration, o as useLanguage, u as useSpec } from "./docs-6PYi1eEV.js";
2
- import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
1
+ import { d as useSpec, i as useDeclaration, s as useLanguage } from "./docs-BmOB2f-I.js";
2
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
3
3
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
4
4
  import { t as style_default } from "./style-HpXpcJ9v.js";
5
- import { i as PropertyToggle } from "./properties-D2J5gvC-.js";
5
+ import { i as PropertyToggle } from "./properties-BnbBKd5a.js";
6
6
  import { p as parseStainlessPath } from "./routing-B7QoUwlD.js";
7
- import { s as Markdown } from "./primitives-B6y6nqBK.js";
7
+ import { s as Markdown } from "./primitives-WC1BbBHN.js";
8
8
  import { n as getResourceFromSpec, t as flatResources } from "./utils-KWHcUI-r.js";
9
9
  import * as React$1 from "react";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,6 +1,6 @@
1
1
  import * as react0 from "react";
2
2
  import { ReactNode } from "react";
3
- import * as react_jsx_runtime59 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_runtime59.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_runtime59.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_runtime59.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_runtime59.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_runtime59.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_runtime59.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_runtime59.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_runtime59.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_runtime59.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_runtime59.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 };
@@ -1,6 +1,6 @@
1
- import { c as useSettings, o as useLanguage } from "./docs-6PYi1eEV.js";
1
+ import { l as useSettings, s as useLanguage } from "./docs-BmOB2f-I.js";
2
2
  import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
3
- import { a as useRenderMarkdown } from "./markdown-DHjcD13O.js";
3
+ import { a as useRenderMarkdown } from "./markdown-CTKHMLVr.js";
4
4
  import { t as style_default } from "./style-HpXpcJ9v.js";
5
5
  import { s as generateRoute } from "./routing-B7QoUwlD.js";
6
6
  import { Fragment, createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
@@ -1,4 +1,4 @@
1
- import { c as useSettings, o as useLanguage } from "./docs-6PYi1eEV.js";
1
+ import { l as useSettings, o as useIgnoredResources, s as useLanguage } from "./docs-BmOB2f-I.js";
2
2
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
3
3
  import { t as style_default } from "./style-HpXpcJ9v.js";
4
4
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -43,6 +43,7 @@ function Property({ id, name, typeName, badges, type, declaration, description,
43
43
  const Docs = useComponents();
44
44
  const language = useLanguage();
45
45
  const properties = useSettings()?.properties;
46
+ if (useIgnoredResources().includes(id || "")) return null;
46
47
  const { collapseDescription, showTitle } = properties ?? {};
47
48
  const types = properties?.types;
48
49
  const textContent = /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import * as react_jsx_runtime70 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime27 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_runtime70.JSX.Element;
10
+ }: PropertyToggleProps): react_jsx_runtime27.JSX.Element;
11
11
  type PropertyDescriptionProps = {
12
12
  description?: string;
13
13
  };
14
14
  declare function PropertyDescription({
15
15
  description
16
- }: PropertyDescriptionProps): react_jsx_runtime70.JSX.Element | undefined;
16
+ }: PropertyDescriptionProps): react_jsx_runtime27.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_runtime70.JSX.Element | undefined;
22
+ }: PropertyTitleProps): react_jsx_runtime27.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_runtime70.JSX.Element;
52
+ }: PropertyProps): react_jsx_runtime27.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 };
@@ -1,5 +1,5 @@
1
1
  import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
2
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
3
3
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
4
4
  import { t as style_default } from "./style-HpXpcJ9v.js";
5
5
  import * as React$1 from "react";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { i as useDeclaration, o as useLanguage, u as useSpec } from "./docs-6PYi1eEV.js";
3
- import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
2
+ import { d as useSpec, i as useDeclaration, s as useLanguage } from "./docs-BmOB2f-I.js";
3
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
4
4
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
5
  import { t as style_default } from "./style-HpXpcJ9v.js";
6
6
  import * as React$1 from "react";
@@ -1,9 +1,9 @@
1
- import { c as useSettings, i as useDeclaration, n as useAvailableLanguages, o as useLanguage, r as useContentPanelLayout, u as useSpec } from "./docs-6PYi1eEV.js";
1
+ import { d as useSpec, i as useDeclaration, l as useSettings, n as useAvailableLanguages, r as useContentPanelLayout, s as useLanguage } from "./docs-BmOB2f-I.js";
2
2
  import { n as useNavigation } from "./navigation-aoYZ_tl4.js";
3
- import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
3
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
4
4
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
5
  import { t as style_default } from "./style-HpXpcJ9v.js";
6
- import { l as getLanguageSnippet, s as generateRoute, t as LanguageNames } from "./routing-B7QoUwlD.js";
6
+ import { l as getLanguageSnippet, p as parseStainlessPath, s as generateRoute, t as LanguageNames } from "./routing-B7QoUwlD.js";
7
7
  import { a as JavaIcon, c as PythonIcon, d as TypescriptIcon, i as GoIcon, l as RubyIcon, n as CSharpIcon, o as KotlinIcon, r as CurlIcon, s as PowershellIcon, t as CLIIcon, u as TerraformIcon } from "./icons-BYKn5X8E.js";
8
8
  import * as React$1 from "react";
9
9
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -65,10 +65,13 @@ function SDKDeclaration({ path, expand, depth = 0 }) {
65
65
  })
66
66
  });
67
67
  }
68
+ const parsedPath = selectedPath ? parseStainlessPath(selectedPath) : null;
69
+ const modelPropSetting = settings?.properties?.includeModelProperties;
70
+ const inlineModelProps = modelPropSetting === "method-page" ? Boolean(parsedPath?.method) : modelPropSetting !== false;
68
71
  const isUnion = "childrenParentSchema" in decl && decl.childrenParentSchema && ["enum", "union"].includes(decl.childrenParentSchema);
69
72
  const id = model?.propertyPath ? `${model.propertyPath} + ${path}` : path;
70
73
  const shouldExpand = selectedPath?.startsWith(path) && nesting.length < 1 || settings?.properties?.expandDepth && depth <= settings?.properties?.expandDepth && !isUnion || expand;
71
- const hasChildren = "children" in decl && (decl.children?.length ?? 0) > 0 && !decl.children?.includes(path) && !(isUnion && decl.childrenParentSchema === "enum" && decl.children?.length === 1) && (settings?.properties?.includeModelProperties !== false || !("modelPath" in decl));
74
+ const hasChildren = "children" in decl && (decl.children?.length ?? 0) > 0 && !decl.children?.includes(path) && !(isUnion && decl.childrenParentSchema === "enum" && decl.children?.length === 1) && (inlineModelProps || !("modelPath" in decl));
72
75
  const content = /* @__PURE__ */ jsx(Lang.Property, {
73
76
  decl,
74
77
  children: ({ ...props }) => /* @__PURE__ */ jsx(Docs.Property, {
@@ -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
2
  import { t as DocsLanguage } from "./routing-Cm_9XJiQ.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime75 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime32 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_runtime75.JSX.Element;
36
+ }: SDKChildrenProps): react_jsx_runtime32.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_runtime75.JSX.Element;
46
+ }: SDKDeclarationProps): react_jsx_runtime32.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_runtime75.JSX.Element | undefined;
52
+ }: SDKConstraintsProps): react_jsx_runtime32.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_runtime75.JSX.Element | null;
59
+ }: SDKIconProps): react_jsx_runtime32.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_runtime75.JSX.Element;
65
+ }: SDKRequestTitleProps): react_jsx_runtime32.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_runtime75.JSX.Element;
73
+ }: SDKExampleProps): react_jsx_runtime32.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_runtime75.JSX.Element;
80
+ }: SDKMethodProps): react_jsx_runtime32.JSX.Element;
81
81
  declare function useStreamingResponse(method: BaseDeclaration): ID | undefined;
82
82
  declare function SDKMethodInfo({
83
83
  method
84
- }: SDKMethodProps): react_jsx_runtime75.JSX.Element;
84
+ }: SDKMethodProps): react_jsx_runtime32.JSX.Element;
85
85
  declare function SDKMethodNotImplemented({
86
86
  method
87
- }: SDKMethodProps): react_jsx_runtime75.JSX.Element;
87
+ }: SDKMethodProps): react_jsx_runtime32.JSX.Element;
88
88
  declare function SDKMethod({
89
89
  method,
90
90
  transformRequestSnippet
91
- }: SDKMethodProps): react_jsx_runtime75.JSX.Element;
91
+ }: SDKMethodProps): react_jsx_runtime32.JSX.Element;
92
92
  type SDKModelProps = {
93
93
  model: Model;
94
94
  };
95
95
  declare function SDKModel({
96
96
  model
97
- }: SDKModelProps): react_jsx_runtime75.JSX.Element | null;
97
+ }: SDKModelProps): react_jsx_runtime32.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_runtime75.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_runtime32.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_runtime75.JSX.Element;
120
+ }: SDKLanguageBlockProps): react_jsx_runtime32.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 { m as Resource } from "./index-CwjGm9zX.js";
2
- import * as react_jsx_runtime74 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime31 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): react_jsx_runtime74.JSX.Element;
13
+ }: SDKSidebarProps): react_jsx_runtime31.JSX.Element;
14
14
  //#endregion
15
15
  export { SDKSidebarProps as n, SDKSidebar as t };
@@ -1,5 +1,5 @@
1
- import { i as useDeclaration, l as useSnippet, o as useLanguage } from "./docs-6PYi1eEV.js";
2
- import { r as useHighlight } from "./markdown-DHjcD13O.js";
1
+ import { i as useDeclaration, s as useLanguage, u as useSnippet } from "./docs-BmOB2f-I.js";
2
+ import { r as useHighlight } from "./markdown-CTKHMLVr.js";
3
3
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
4
4
  import { t as style_default } from "./style-HpXpcJ9v.js";
5
5
  import * as React$1 from "react";
@@ -1,7 +1,7 @@
1
1
  import { d as Method, o as HasStainlessPath } from "./index-CwjGm9zX.js";
2
- import { w as TransformRequestSnippetFn } from "./sdk-AjblXmHS.js";
2
+ import { w as TransformRequestSnippetFn } from "./sdk-PiHLvMdV.js";
3
3
  import * as React$1 from "react";
4
- import * as react_jsx_runtime89 from "react/jsx-runtime";
4
+ import * as react_jsx_runtime45 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): react_jsx_runtime89.JSX.Element;
15
+ }: SnippetCodeProps): react_jsx_runtime45.JSX.Element;
16
16
  type SnippetProps = {
17
17
  method: Partial<Method> & HasStainlessPath;
18
18
  requestTitle?: React$1.ReactNode;
@@ -25,29 +25,29 @@ type SnippetContainerProps = {
25
25
  };
26
26
  declare function SnippetContainer({
27
27
  children
28
- }: SnippetContainerProps): react_jsx_runtime89.JSX.Element;
28
+ }: SnippetContainerProps): react_jsx_runtime45.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): react_jsx_runtime89.JSX.Element;
35
+ }: SnippetRequestContainerProps): react_jsx_runtime45.JSX.Element;
36
36
  declare function Snippet({
37
37
  requestTitle,
38
38
  method,
39
39
  transformRequestSnippet
40
- }: SnippetProps): react_jsx_runtime89.JSX.Element | null;
40
+ }: SnippetProps): react_jsx_runtime45.JSX.Element | null;
41
41
  declare function SnippetButtons({
42
42
  content
43
43
  }: {
44
44
  content: string;
45
- }): react_jsx_runtime89.JSX.Element;
45
+ }): react_jsx_runtime45.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
- }): react_jsx_runtime89.JSX.Element | null;
51
+ }): react_jsx_runtime45.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,5 +1,5 @@
1
1
  import { ReactNode } from "react";
2
- import * as react_jsx_runtime95 from "react/jsx-runtime";
2
+ import * as react_jsx_runtime52 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/stl-sidebar.d.ts
5
5
  declare module 'react' {
@@ -53,6 +53,6 @@ type StlSidebarProps = {
53
53
  declare function StlSidebar({
54
54
  entries,
55
55
  withStarlightRestoration
56
- }: StlSidebarProps): react_jsx_runtime95.JSX.Element;
56
+ }: StlSidebarProps): react_jsx_runtime52.JSX.Element;
57
57
  //#endregion
58
58
  export { StlSidebarProps as a, StlSidebarLink as i, StlSidebarEntry as n, StlSidebarTarget as o, StlSidebarGroup as r, StlSidebar as t };
@@ -410,8 +410,7 @@
410
410
  }
411
411
  }
412
412
 
413
- .stldocs-root .stldocs-method,
414
- .stldocs-root .stldocs-resource-content {
413
+ .stldocs-root .stldocs-method {
415
414
  .stldocs-method-content-column {
416
415
  display: contents;
417
416
  }
@@ -171,7 +171,7 @@
171
171
  &[open],
172
172
  &[data-open='true'] {
173
173
  & > .stldocs-expander-summary {
174
- .stldocs-type-preview-content {
174
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] .stldocs-type-preview-content {
175
175
  display: none;
176
176
  }
177
177
 
package/dist/styles.css CHANGED
@@ -41,12 +41,6 @@
41
41
  /* Prose exists in its own sub-layer for easy reverting */
42
42
  body {
43
43
  font-family: var(--stl-typography-font);
44
- font-feature-settings:
45
- 'ss01' on,
46
- 'ss03' on,
47
- 'ss04' on,
48
- 'ss06' on,
49
- 'ss08' on;
50
44
  }
51
45
 
52
46
  .stl-ui-prose {
@@ -1566,7 +1560,7 @@ a.stl-ui-button {
1566
1560
  &[open],
1567
1561
  &[data-open='true'] {
1568
1562
  & > .stldocs-expander-summary {
1569
- .stldocs-type-preview-content {
1563
+ .stldocs-type-preview[data-stldocs-type-preview='properties'] .stldocs-type-preview-content {
1570
1564
  display: none;
1571
1565
  }
1572
1566
 
@@ -2246,8 +2240,7 @@ a.stl-ui-button {
2246
2240
  }
2247
2241
  }
2248
2242
 
2249
- .stldocs-root .stldocs-method,
2250
- .stldocs-root .stldocs-resource-content {
2243
+ .stldocs-root .stldocs-method {
2251
2244
  .stldocs-method-content-column {
2252
2245
  display: contents;
2253
2246
  }
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { i as useDeclaration } from "./docs-6PYi1eEV.js";
3
- import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
2
+ import { i as useDeclaration } from "./docs-BmOB2f-I.js";
3
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
4
4
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
5
  import { t as style_default } from "./style-HpXpcJ9v.js";
6
6
  import "react";
@@ -1,6 +1,6 @@
1
1
  import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { i as useDeclaration, o as useLanguage, u as useSpec } from "./docs-6PYi1eEV.js";
3
- import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
2
+ import { d as useSpec, i as useDeclaration, s as useLanguage } from "./docs-BmOB2f-I.js";
3
+ import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
4
4
  import { t as useComponents } from "./use-components-BUz3GbO4.js";
5
5
  import { t as style_default } from "./style-HpXpcJ9v.js";
6
6
  import * as React$1 from "react";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stainless-api/docs-ui",
3
3
  "private": false,
4
- "version": "0.1.0-beta.65",
4
+ "version": "0.1.0-beta.67",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -18,7 +18,7 @@
18
18
  "clsx": "^2.1.1",
19
19
  "htmlparser2": "^10.0.0",
20
20
  "lucide-react": "^0.562.0",
21
- "@stainless-api/ui-primitives": "0.1.0-beta.46"
21
+ "@stainless-api/ui-primitives": "0.1.0-beta.47"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "24.10.9",
@@ -1,30 +0,0 @@
1
- import { t as __exportAll } from "./chunk-BN_g-Awi.js";
2
- import { o as typescript_exports } from "./typescript-CEVQ6kS_.js";
3
- import { o as java_exports } from "./java-DB33acTL.js";
4
- import { o as go_exports } from "./go-DrZxKwGv.js";
5
- import { o as python_exports } from "./python-CU3scKKD.js";
6
- import { o as ruby_exports } from "./ruby-DGRZDnHB.js";
7
- import { s as http_exports } from "./http-BoZv04yo.js";
8
- import { o as csharp_exports } from "./csharp-Ckuihkec.js";
9
- import { o as cli_exports } from "./cli-C9b02R53.js";
10
- import { c as terraform_exports } from "./terraform-BD7o7zbh.js";
11
-
12
- //#region src/languages/index.ts
13
- var languages_exports = /* @__PURE__ */ __exportAll({
14
- cli: () => cli_exports,
15
- csharp: () => csharp_exports,
16
- go: () => go_exports,
17
- http: () => http_exports,
18
- java: () => java_exports,
19
- kotlin: () => kotlin,
20
- node: () => node,
21
- python: () => python_exports,
22
- ruby: () => ruby_exports,
23
- terraform: () => terraform_exports,
24
- typescript: () => typescript_exports
25
- });
26
- const node = typescript_exports;
27
- const kotlin = java_exports;
28
-
29
- //#endregion
30
- export { languages_exports as n, node as r, kotlin as t };