@stainless-api/docs-ui 0.1.0-beta.85 → 0.1.0-beta.86

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 (110) hide show
  1. package/dist/breadcrumbs-DC2_z7nh.d.ts +25 -0
  2. package/dist/chunk-pbuEa-1d.js +13 -0
  3. package/dist/component-generics-DYxBWv1v.js +42 -0
  4. package/dist/component-generics-q-ujwX4P.d.ts +30 -0
  5. package/dist/components/MaskedInput.d.ts +1 -1
  6. package/dist/components/MaskedInput.js +1 -3
  7. package/dist/components/breadcrumbs.d.ts +1 -24
  8. package/dist/components/breadcrumbs.js +2 -4
  9. package/dist/components/icons.js +4 -6
  10. package/dist/components/index.d.ts +10 -16
  11. package/dist/components/index.js +3 -5
  12. package/dist/components/method.d.ts +1 -58
  13. package/dist/components/method.js +12 -14
  14. package/dist/components/overview.d.ts +1 -38
  15. package/dist/components/overview.js +6 -5
  16. package/dist/components/primitives.d.ts +1 -106
  17. package/dist/components/primitives.js +2 -4
  18. package/dist/components/properties.d.ts +1 -53
  19. package/dist/components/properties.js +17 -19
  20. package/dist/components/sdk-sidebar.d.ts +1 -14
  21. package/dist/components/sdk-sidebar.js +2 -4
  22. package/dist/components/sdk.d.ts +1 -127
  23. package/dist/components/sdk.js +3 -5
  24. package/dist/components/snippets.d.ts +1 -70
  25. package/dist/components/snippets.js +16 -16
  26. package/dist/components/stl-sidebar.d.ts +1 -57
  27. package/dist/components/stl-sidebar.js +2 -4
  28. package/dist/contexts/component-generics.d.ts +1 -29
  29. package/dist/contexts/component-generics.js +2 -33
  30. package/dist/contexts/component-types.d.ts +3 -5
  31. package/dist/contexts/component.d.ts +4 -5
  32. package/dist/contexts/component.js +2 -5
  33. package/dist/contexts/docs.d.ts +1 -61
  34. package/dist/contexts/docs.js +1 -3
  35. package/dist/contexts/index.d.ts +6 -13
  36. package/dist/contexts/index.js +3 -6
  37. package/dist/contexts/markdown.d.ts +1 -21
  38. package/dist/contexts/markdown.js +1 -3
  39. package/dist/contexts/navigation.d.ts +1 -28
  40. package/dist/contexts/navigation.js +1 -3
  41. package/dist/contexts/use-components.d.ts +1 -2
  42. package/dist/contexts/use-components.js +2 -5
  43. package/dist/docs-DSjdvCh5.d.ts +62 -0
  44. package/dist/index-HcWFtzlc.d.ts +464 -0
  45. package/dist/index.d.ts +2 -4
  46. package/dist/index.js +2 -3
  47. package/dist/languages/cli.d.ts +2 -38
  48. package/dist/languages/cli.js +3 -5
  49. package/dist/languages/csharp.d.ts +2 -42
  50. package/dist/languages/csharp.js +3 -5
  51. package/dist/languages/go.d.ts +2 -40
  52. package/dist/languages/go.js +3 -5
  53. package/dist/languages/http.d.ts +2 -46
  54. package/dist/languages/http.js +5 -7
  55. package/dist/languages/index.d.ts +2 -51
  56. package/dist/languages/index.js +3 -5
  57. package/dist/languages/java.d.ts +2 -43
  58. package/dist/languages/java.js +3 -5
  59. package/dist/languages/php.d.ts +2 -40
  60. package/dist/languages/php.js +3 -5
  61. package/dist/languages/python.d.ts +2 -40
  62. package/dist/languages/python.js +3 -5
  63. package/dist/languages/ruby.d.ts +2 -40
  64. package/dist/languages/ruby.js +3 -5
  65. package/dist/languages/terraform.d.ts +2 -48
  66. package/dist/languages/terraform.js +25 -10
  67. package/dist/languages/typescript.d.ts +2 -40
  68. package/dist/languages/typescript.js +5 -7
  69. package/dist/markdown/index.d.ts +1 -1
  70. package/dist/markdown/index.js +3 -6
  71. package/dist/markdown/md.js +1 -3
  72. package/dist/markdown/printer.d.ts +2 -2
  73. package/dist/markdown/printer.js +3 -5
  74. package/dist/markdown/utils.d.ts +3 -3
  75. package/dist/markdown/utils.js +2 -4
  76. package/dist/markdown-ClGRntP5.d.ts +22 -0
  77. package/dist/method-CNRMOUfn.d.ts +59 -0
  78. package/dist/navigation-C9ckAfpV.d.ts +29 -0
  79. package/dist/overview-CDvh184n.d.ts +39 -0
  80. package/dist/primitives-DFE_4MvV.d.ts +107 -0
  81. package/dist/properties-CVwrzWVa.d.ts +54 -0
  82. package/dist/routing-yTSG7nWM.d.ts +61 -0
  83. package/dist/routing.d.ts +2 -61
  84. package/dist/routing.js +2 -4
  85. package/dist/sdk-BkW3MDco.d.ts +128 -0
  86. package/dist/sdk-sidebar-BpDlOMat.d.ts +15 -0
  87. package/dist/spec.d.ts +4 -4
  88. package/dist/spec.js +1 -3
  89. package/dist/stl-sidebar-CKrR5ZGs.d.ts +58 -0
  90. package/dist/style.js +1 -2
  91. package/dist/styles/main.css +320 -349
  92. package/dist/styles/primitives.css +133 -185
  93. package/dist/styles/resets.css +7 -14
  94. package/dist/styles/search.css +91 -96
  95. package/dist/styles/sidebar.css +44 -71
  96. package/dist/styles/variables.css +0 -5
  97. package/dist/styles.css +995 -1261
  98. package/dist/utils.d.ts +1 -1
  99. package/dist/utils.js +2 -4
  100. package/package.json +6 -5
  101. package/dist/chunk-BYypO7fO.js +0 -18
  102. package/dist/styles/main.js +0 -0
  103. package/dist/styles/primitives.js +0 -0
  104. package/dist/styles/resets.js +0 -0
  105. package/dist/styles/search.js +0 -0
  106. package/dist/styles/sidebar.js +0 -0
  107. package/dist/styles/variables.js +0 -0
  108. package/dist/styles.mjs +0 -1
  109. package/dist/use-strict-context-Clb6Yjly.js +0 -16
  110. /package/dist/{index-pvh-w1xa.d.ts → index-DFr9Mesr.d.ts} +0 -0
@@ -1,11 +1,10 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
2
- import "../use-strict-context-Clb6Yjly.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
+ import "../component-generics-DYxBWv1v.js";
3
3
  import { useLanguageComponents } from "../contexts/index.js";
4
4
  import { useComponents } from "../contexts/use-components.js";
5
5
  import style_default from "../style.js";
6
6
  import * as React$1 from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
-
9
8
  //#region src/languages/go.tsx
10
9
  var go_exports = /* @__PURE__ */ __exportAll({
11
10
  Declaration: () => Declaration,
@@ -299,6 +298,5 @@ function Declaration({ decl }) {
299
298
  ] });
300
299
  }
301
300
  }
302
-
303
301
  //#endregion
304
- export { Declaration, MethodSignature, Property, Type, TypeName, go_exports as t };
302
+ export { Declaration, MethodSignature, Property, Type, TypeName, go_exports as t };
@@ -1,46 +1,2 @@
1
- import { s as HttpAST } from "../index-pvh-w1xa.js";
2
- import { PropertyFn } from "./index.js";
3
- import React from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region src/languages/http.d.ts
7
- declare namespace http_d_exports {
8
- export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
9
- }
10
- type TypeProps = {
11
- type: HttpAST.HttpType;
12
- };
13
- declare function TypeName({
14
- type
15
- }: TypeProps): string | react_jsx_runtime0.JSX.Element;
16
- declare function Type({
17
- type
18
- }: TypeProps): react_jsx_runtime0.JSX.Element;
19
- type MethodSignatureProps = {
20
- decl: HttpAST.HttpDeclFunction;
21
- };
22
- declare function MethodSignature({
23
- decl
24
- }: MethodSignatureProps): null;
25
- declare function MethodInfo({
26
- decl,
27
- children
28
- }: MethodSignatureProps & {
29
- children: React.ReactNode;
30
- }): react_jsx_runtime0.JSX.Element;
31
- type PropertyProps = {
32
- decl: HttpAST.HttpDeclaration;
33
- children: PropertyFn;
34
- };
35
- declare function Property({
36
- decl,
37
- children
38
- }: PropertyProps): React.ReactNode;
39
- type DeclarationProps = {
40
- decl: HttpAST.HttpDeclaration;
41
- };
42
- declare function Declaration({
43
- decl
44
- }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
45
- //#endregion
46
- export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, http_d_exports as t };
1
+ import { ct as Declaration, dt as MethodSignature, ft as MethodSignatureProps, gt as TypeName, ht as Type, lt as DeclarationProps, mt as PropertyProps, pt as Property, ut as MethodInfo } from "../index-HcWFtzlc.js";
2
+ export { Declaration, DeclarationProps, MethodInfo, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,6 +1,6 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
2
  import { useAvailableLanguages, useDeclaration, useLanguage, useSpec } from "../contexts/docs.js";
3
- import "../use-strict-context-Clb6Yjly.js";
3
+ import "../component-generics-DYxBWv1v.js";
4
4
  import { useNavigation } from "../contexts/navigation.js";
5
5
  import { useLanguageComponents } from "../contexts/index.js";
6
6
  import { useComponents } from "../contexts/use-components.js";
@@ -15,7 +15,6 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
15
15
  import clsx from "clsx";
16
16
  import { BracesIcon, FormIcon } from "lucide-react";
17
17
  import { Badge } from "@stainless-api/ui-primitives";
18
-
19
18
  //#region src/languages/http.tsx
20
19
  var http_exports = /* @__PURE__ */ __exportAll({
21
20
  Declaration: () => Declaration,
@@ -314,10 +313,10 @@ function MethodInfo({ decl, children }) {
314
313
  return /* @__PURE__ */ jsxs("div", {
315
314
  className: style_default.MethodInfo,
316
315
  children: [
317
- children && /* @__PURE__ */ jsx("div", {
316
+ children ? /* @__PURE__ */ jsx("div", {
318
317
  className: style_default.MethodContent,
319
318
  children
320
- }),
319
+ }) : null,
321
320
  params.length > 0 && params,
322
321
  responseChildren.length > 0 && /* @__PURE__ */ jsxs("div", {
323
322
  className: style_default.MethodInfoSection,
@@ -382,6 +381,5 @@ function Declaration({ decl }) {
382
381
  case "HttpDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
383
382
  }
384
383
  }
385
-
386
384
  //#endregion
387
- export { Declaration, MethodInfo, MethodSignature, Property, Type, TypeName, http_exports as t };
385
+ export { Declaration, MethodInfo, MethodSignature, Property, Type, TypeName, http_exports as t };
@@ -1,51 +1,2 @@
1
- import { S as Type, h as Resource, i as DeclarationNode } from "../index-pvh-w1xa.js";
2
- import { PropertyProps } from "../components/properties.js";
3
- import { t as typescript_d_exports } from "./typescript.js";
4
- import { t as java_d_exports } from "./java.js";
5
- import { t as go_d_exports } from "./go.js";
6
- import { t as python_d_exports } from "./python.js";
7
- import { t as ruby_d_exports } from "./ruby.js";
8
- import { t as http_d_exports } from "./http.js";
9
- import { t as csharp_d_exports } from "./csharp.js";
10
- import { t as php_d_exports } from "./php.js";
11
- import { t as cli_d_exports } from "./cli.js";
12
- import { t as terraform_d_exports } from "./terraform.js";
13
- import "../components/index.js";
14
- import { ReactNode } from "react";
15
-
16
- //#region src/languages/index.d.ts
17
- declare namespace index_d_exports {
18
- export { LanguageComponentDefinition, PropertyFn, cli_d_exports as cli, csharp_d_exports as csharp, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, php_d_exports as php, python_d_exports as python, ruby_d_exports as ruby, terraform_d_exports as terraform, typescript_d_exports as typescript };
19
- }
20
- declare const node: typeof typescript_d_exports;
21
- declare const kotlin: typeof java_d_exports;
22
- type PropertyFn = (params: PropertyProps) => ReactNode;
23
- interface LanguageComponentDefinition {
24
- Declaration(props: {
25
- decl: DeclarationNode;
26
- }): ReactNode;
27
- Property(props: {
28
- decl: DeclarationNode;
29
- children: PropertyFn;
30
- }): ReactNode;
31
- TypeName(props: {
32
- type: Type;
33
- optional?: boolean;
34
- }): ReactNode;
35
- Type(props: {
36
- type: Type;
37
- optional?: boolean;
38
- }): ReactNode;
39
- MethodSignature(props: {
40
- decl: DeclarationNode;
41
- }): ReactNode;
42
- MethodInfo?(props: {
43
- decl: DeclarationNode;
44
- children?: ReactNode;
45
- }): ReactNode;
46
- Resource?(props: {
47
- resource: Resource;
48
- }): ReactNode;
49
- }
50
- //#endregion
51
- export { LanguageComponentDefinition, PropertyFn, cli_d_exports as cli, csharp_d_exports as csharp, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, php_d_exports as php, python_d_exports as python, ruby_d_exports as ruby, index_d_exports as t, terraform_d_exports as terraform, typescript_d_exports as typescript };
1
+ import { Et as ruby_d_exports, Ft as python_d_exports, Gt as go_d_exports, P as terraform_d_exports, Q as php_d_exports, U as cli_d_exports, _ as LanguageComponentDefinition, _t as http_d_exports, b as kotlin, en as java_d_exports, ln as typescript_d_exports, st as csharp_d_exports, v as PropertyFn, x as node } from "../index-HcWFtzlc.js";
2
+ export { LanguageComponentDefinition, PropertyFn, cli_d_exports as cli, csharp_d_exports as csharp, go_d_exports as go, http_d_exports as http, java_d_exports as java, kotlin, node, php_d_exports as php, python_d_exports as python, ruby_d_exports as ruby, terraform_d_exports as terraform, typescript_d_exports as typescript };
@@ -1,5 +1,5 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
2
- import "../use-strict-context-Clb6Yjly.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
+ import "../component-generics-DYxBWv1v.js";
3
3
  import { t as typescript_exports } from "./typescript.js";
4
4
  import { t as java_exports } from "./java.js";
5
5
  import { t as go_exports } from "./go.js";
@@ -10,7 +10,6 @@ import { t as csharp_exports } from "./csharp.js";
10
10
  import { t as php_exports } from "./php.js";
11
11
  import { t as cli_exports } from "./cli.js";
12
12
  import { t as terraform_exports } from "./terraform.js";
13
-
14
13
  //#region src/languages/index.ts
15
14
  var languages_exports = /* @__PURE__ */ __exportAll({
16
15
  cli: () => cli_exports,
@@ -28,6 +27,5 @@ var languages_exports = /* @__PURE__ */ __exportAll({
28
27
  });
29
28
  const node = typescript_exports;
30
29
  const kotlin = java_exports;
31
-
32
30
  //#endregion
33
- export { cli_exports as cli, csharp_exports as csharp, go_exports as go, http_exports as http, java_exports as java, kotlin, node, php_exports as php, python_exports as python, ruby_exports as ruby, languages_exports as t, terraform_exports as terraform, typescript_exports as typescript };
31
+ export { cli_exports as cli, csharp_exports as csharp, go_exports as go, http_exports as http, java_exports as java, kotlin, node, php_exports as php, python_exports as python, ruby_exports as ruby, languages_exports as t, terraform_exports as terraform, typescript_exports as typescript };
@@ -1,43 +1,2 @@
1
- import { l as JavaAST } from "../index-pvh-w1xa.js";
2
- import { PropertyFn } from "./index.js";
3
- import * as React$1 from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region src/languages/java.d.ts
7
- declare namespace java_d_exports {
8
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
9
- }
10
- type TypeProps = {
11
- type: JavaAST.JavaType;
12
- optional?: boolean;
13
- };
14
- declare function TypeName({
15
- type,
16
- optional
17
- }: TypeProps): react_jsx_runtime0.JSX.Element | "List";
18
- declare function Type({
19
- type,
20
- optional
21
- }: TypeProps): react_jsx_runtime0.JSX.Element;
22
- type MethodSignatureProps = {
23
- decl: JavaAST.JavaDeclFunction;
24
- };
25
- declare function MethodSignature({
26
- decl
27
- }: MethodSignatureProps): react_jsx_runtime0.JSX.Element;
28
- type PropertyProps = {
29
- decl: JavaAST.JavaDeclaration;
30
- children: PropertyFn;
31
- };
32
- declare function Property({
33
- decl,
34
- children
35
- }: PropertyProps): React$1.ReactNode;
36
- type DeclarationProps = {
37
- decl: JavaAST.JavaDeclaration;
38
- };
39
- declare function Declaration({
40
- decl
41
- }: DeclarationProps): react_jsx_runtime0.JSX.Element | null | undefined;
42
- //#endregion
43
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, java_d_exports as t };
1
+ import { $t as TypeName, Jt as MethodSignature, Kt as Declaration, Qt as Type, Xt as Property, Yt as MethodSignatureProps, Zt as PropertyProps, qt as DeclarationProps } from "../index-HcWFtzlc.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,12 +1,11 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
2
  import { useLanguage } from "../contexts/docs.js";
3
- import "../use-strict-context-Clb6Yjly.js";
3
+ import "../component-generics-DYxBWv1v.js";
4
4
  import { useLanguageComponents } from "../contexts/index.js";
5
5
  import { useComponents } from "../contexts/use-components.js";
6
6
  import style_default from "../style.js";
7
7
  import * as React$1 from "react";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
-
10
9
  //#region src/languages/java.tsx
11
10
  var java_exports = /* @__PURE__ */ __exportAll({
12
11
  Declaration: () => Declaration,
@@ -399,6 +398,5 @@ function Declaration({ decl }) {
399
398
  case "JavaDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
400
399
  }
401
400
  }
402
-
403
401
  //#endregion
404
- export { Declaration, MethodSignature, Property, Type, TypeName, java_exports as t };
402
+ export { Declaration, MethodSignature, Property, Type, TypeName, java_exports as t };
@@ -1,40 +1,2 @@
1
- import { p as PhpAST } from "../index-pvh-w1xa.js";
2
- import { PropertyFn } from "./index.js";
3
- import * as React$1 from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region src/languages/php.d.ts
7
- declare namespace php_d_exports {
8
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
9
- }
10
- type TypeProps = {
11
- type: PhpAST.PhpType;
12
- };
13
- declare function TypeName({
14
- type
15
- }: TypeProps): string | react_jsx_runtime0.JSX.Element;
16
- declare function Type({
17
- type
18
- }: TypeProps): react_jsx_runtime0.JSX.Element;
19
- type MethodSignatureProps = {
20
- decl: PhpAST.PhpDeclMethod;
21
- };
22
- declare function MethodSignature({
23
- decl
24
- }: MethodSignatureProps): react_jsx_runtime0.JSX.Element;
25
- type PropertyProps = {
26
- decl: PhpAST.PhpDeclaration;
27
- children: PropertyFn;
28
- };
29
- declare function Property({
30
- decl,
31
- children
32
- }: PropertyProps): React$1.ReactNode;
33
- type DeclarationProps = {
34
- decl: PhpAST.PhpDeclaration;
35
- };
36
- declare function Declaration({
37
- decl
38
- }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
39
- //#endregion
40
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, php_d_exports as t };
1
+ import { G as DeclarationProps, J as Property, K as MethodSignature, W as Declaration, X as Type, Y as PropertyProps, Z as TypeName, q as MethodSignatureProps } from "../index-HcWFtzlc.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,11 +1,10 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
2
- import "../use-strict-context-Clb6Yjly.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
+ import "../component-generics-DYxBWv1v.js";
3
3
  import { useLanguageComponents } from "../contexts/index.js";
4
4
  import { useComponents } from "../contexts/use-components.js";
5
5
  import style_default from "../style.js";
6
6
  import * as React$1 from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
-
9
8
  //#region src/languages/php.tsx
10
9
  var php_exports = /* @__PURE__ */ __exportAll({
11
10
  Declaration: () => Declaration,
@@ -308,6 +307,5 @@ function Declaration({ decl }) {
308
307
  case "PhpDeclMethod": return /* @__PURE__ */ jsx(Lang.MethodSignature, { decl });
309
308
  }
310
309
  }
311
-
312
310
  //#endregion
313
- export { Declaration, MethodSignature, Property, Type, TypeName, php_exports as t };
311
+ export { Declaration, MethodSignature, Property, Type, TypeName, php_exports as t };
@@ -1,40 +1,2 @@
1
- import { m as PythonAST } from "../index-pvh-w1xa.js";
2
- import { PropertyFn } from "./index.js";
3
- import * as React$1 from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region src/languages/python.d.ts
7
- declare namespace python_d_exports {
8
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
9
- }
10
- type TypeProps = {
11
- type: PythonAST.PythonType;
12
- };
13
- declare function TypeName({
14
- type
15
- }: TypeProps): string | react_jsx_runtime0.JSX.Element;
16
- declare function Type({
17
- type
18
- }: TypeProps): react_jsx_runtime0.JSX.Element;
19
- type MethodSignatureProps = {
20
- decl: PythonAST.PythonDeclFunction;
21
- };
22
- declare function MethodSignature({
23
- decl
24
- }: MethodSignatureProps): react_jsx_runtime0.JSX.Element;
25
- type PropertyProps = {
26
- decl: PythonAST.PythonDeclaration;
27
- children: PropertyFn;
28
- };
29
- declare function Property({
30
- decl,
31
- children
32
- }: PropertyProps): React$1.ReactNode;
33
- type DeclarationProps = {
34
- decl: PythonAST.PythonDeclaration;
35
- };
36
- declare function Declaration({
37
- decl
38
- }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
39
- //#endregion
40
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, python_d_exports as t };
1
+ import { At as MethodSignatureProps, Dt as Declaration, Mt as PropertyProps, Nt as Type, Ot as DeclarationProps, Pt as TypeName, jt as Property, kt as MethodSignature } from "../index-HcWFtzlc.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,11 +1,10 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
2
- import "../use-strict-context-Clb6Yjly.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
+ import "../component-generics-DYxBWv1v.js";
3
3
  import { useLanguageComponents } from "../contexts/index.js";
4
4
  import { useComponents } from "../contexts/use-components.js";
5
5
  import style_default from "../style.js";
6
6
  import * as React$1 from "react";
7
7
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
8
-
9
8
  //#region src/languages/python.tsx
10
9
  var python_exports = /* @__PURE__ */ __exportAll({
11
10
  Declaration: () => Declaration,
@@ -265,6 +264,5 @@ function Declaration({ decl }) {
265
264
  case "PythonDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
266
265
  }
267
266
  }
268
-
269
267
  //#endregion
270
- export { Declaration, MethodSignature, Property, Type, TypeName, python_exports as t };
268
+ export { Declaration, MethodSignature, Property, Type, TypeName, python_exports as t };
@@ -1,40 +1,2 @@
1
- import { g as RubyAST } from "../index-pvh-w1xa.js";
2
- import { PropertyFn } from "./index.js";
3
- import * as React$1 from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region src/languages/ruby.d.ts
7
- declare namespace ruby_d_exports {
8
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
9
- }
10
- type TypeProps = {
11
- type: RubyAST.RubyType;
12
- };
13
- declare function TypeName({
14
- type
15
- }: TypeProps): string | react_jsx_runtime0.JSX.Element;
16
- declare function Type({
17
- type
18
- }: TypeProps): react_jsx_runtime0.JSX.Element;
19
- type MethodSignatureProps = {
20
- decl: RubyAST.RubyDeclFunction;
21
- };
22
- declare function MethodSignature({
23
- decl
24
- }: MethodSignatureProps): react_jsx_runtime0.JSX.Element;
25
- type PropertyProps = {
26
- decl: RubyAST.RubyDeclaration;
27
- children: PropertyFn;
28
- };
29
- declare function Property({
30
- decl,
31
- children
32
- }: PropertyProps): React$1.ReactNode;
33
- type DeclarationProps = {
34
- decl: RubyAST.RubyDeclaration;
35
- };
36
- declare function Declaration({
37
- decl
38
- }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
39
- //#endregion
40
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, ruby_d_exports as t };
1
+ import { Ct as PropertyProps, St as Property, Tt as TypeName, bt as MethodSignature, vt as Declaration, wt as Type, xt as MethodSignatureProps, yt as DeclarationProps } from "../index-HcWFtzlc.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,12 +1,11 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
2
  import { useDeclaration, useLanguage, useSpec } from "../contexts/docs.js";
3
- import "../use-strict-context-Clb6Yjly.js";
3
+ import "../component-generics-DYxBWv1v.js";
4
4
  import { useLanguageComponents } from "../contexts/index.js";
5
5
  import { useComponents } from "../contexts/use-components.js";
6
6
  import style_default from "../style.js";
7
7
  import * as React$1 from "react";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
-
10
9
  //#region src/languages/ruby.tsx
11
10
  var ruby_exports = /* @__PURE__ */ __exportAll({
12
11
  Declaration: () => Declaration,
@@ -383,6 +382,5 @@ function Declaration({ decl }) {
383
382
  case "RubyDeclReference": return /* @__PURE__ */ jsx(Lang.Type, { type: decl.type });
384
383
  }
385
384
  }
386
-
387
385
  //#endregion
388
- export { Declaration, MethodSignature, Property, Type, TypeName, ruby_exports as t };
386
+ export { Declaration, MethodSignature, Property, Type, TypeName, ruby_exports as t };
@@ -1,48 +1,2 @@
1
- import { h as Resource$1, x as TerraformAST } from "../index-pvh-w1xa.js";
2
- import { PropertyFn } from "./index.js";
3
- import * as React$1 from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region src/languages/terraform.d.ts
7
- declare namespace terraform_d_exports {
8
- export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps };
9
- }
10
- type TypeProps = {
11
- type: TerraformAST.AttributeType;
12
- };
13
- declare function TypeName({
14
- type
15
- }: TypeProps): react_jsx_runtime0.JSX.Element;
16
- declare function Type({
17
- type
18
- }: TypeProps): react_jsx_runtime0.JSX.Element | undefined;
19
- declare function MethodSignature(): null;
20
- type PropertyProps = {
21
- decl: TerraformAST.TerraformDeclaration;
22
- children: PropertyFn;
23
- };
24
- declare function Property({
25
- decl,
26
- children
27
- }: PropertyProps): React$1.ReactNode;
28
- declare function TerraformSource({
29
- path,
30
- group
31
- }: {
32
- path: string;
33
- group: string;
34
- }): react_jsx_runtime0.JSX.Element | undefined;
35
- type DeclarationProps = {
36
- decl: TerraformAST.TerraformDeclaration;
37
- };
38
- declare function Declaration({
39
- decl
40
- }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
41
- type ResourceProps = {
42
- resource: Resource$1;
43
- };
44
- declare function Resource({
45
- resource
46
- }: ResourceProps): react_jsx_runtime0.JSX.Element;
47
- //#endregion
48
- export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps, terraform_d_exports as t };
1
+ import { A as Type, C as DeclarationProps, D as Resource, E as PropertyProps, M as TypeProps, N as isResourceEntirelyUnsupported, O as ResourceProps, S as Declaration, T as Property, j as TypeName, k as TerraformSource, w as MethodSignature } from "../index-HcWFtzlc.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, Property, PropertyProps, Resource, ResourceProps, TerraformSource, Type, TypeName, TypeProps, isResourceEntirelyUnsupported };
@@ -1,6 +1,6 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
2
- import { useDeclaration } from "../contexts/docs.js";
3
- import "../use-strict-context-Clb6Yjly.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
+ import { useDeclaration, useSpec } from "../contexts/docs.js";
3
+ import "../component-generics-DYxBWv1v.js";
4
4
  import { useLanguageComponents } from "../contexts/index.js";
5
5
  import { useComponents } from "../contexts/use-components.js";
6
6
  import style_default from "../style.js";
@@ -8,7 +8,6 @@ import "react";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
9
  import clsx from "clsx";
10
10
  import { Badge, Callout } from "@stainless-api/ui-primitives";
11
-
12
11
  //#region src/languages/terraform.tsx
13
12
  var terraform_exports = /* @__PURE__ */ __exportAll({
14
13
  Declaration: () => Declaration,
@@ -17,7 +16,8 @@ var terraform_exports = /* @__PURE__ */ __exportAll({
17
16
  Resource: () => Resource,
18
17
  TerraformSource: () => TerraformSource,
19
18
  Type: () => Type,
20
- TypeName: () => TypeName
19
+ TypeName: () => TypeName,
20
+ isResourceEntirelyUnsupported: () => isResourceEntirelyUnsupported
21
21
  });
22
22
  function TypeName({ type }) {
23
23
  return /* @__PURE__ */ jsx(useLanguageComponents().Type, { type });
@@ -226,11 +226,27 @@ function Declaration({ decl }) {
226
226
  }
227
227
  }
228
228
  }
229
- function Resource({ resource }) {
229
+ function isResourceEntirelyUnsupported(resource, decls) {
230
+ if (decls?.[resource.stainlessPath]) return false;
231
+ return Object.values(resource.subresources ?? {}).every((child) => isResourceEntirelyUnsupported(child, decls));
232
+ }
233
+ function Resource({ resource, parents }) {
234
+ const Docs = useComponents();
230
235
  const Lang = useLanguageComponents();
231
236
  const decl = useDeclaration(resource.stainlessPath, false);
232
- if (decl) return /* @__PURE__ */ jsx(Lang.Declaration, { decl });
233
- return /* @__PURE__ */ jsxs(Callout, {
237
+ const spec = useSpec();
238
+ if (decl) return /* @__PURE__ */ jsx("div", {
239
+ className: style_default.Resource,
240
+ "data-stl-resource-language": "terraform",
241
+ children: /* @__PURE__ */ jsxs("div", {
242
+ className: style_default.ResourceContent,
243
+ children: [/* @__PURE__ */ jsx(Docs.SDKResourceHeader, {
244
+ resource,
245
+ parents
246
+ }), /* @__PURE__ */ jsx(Lang.Declaration, { decl })]
247
+ })
248
+ });
249
+ if (!parents && isResourceEntirelyUnsupported(resource, spec?.decls.terraform)) return /* @__PURE__ */ jsxs(Callout, {
234
250
  variant: "warning",
235
251
  children: [
236
252
  "The resource ",
@@ -239,6 +255,5 @@ function Resource({ resource }) {
239
255
  ]
240
256
  });
241
257
  }
242
-
243
258
  //#endregion
244
- export { Declaration, MethodSignature, Property, Resource, TerraformSource, Type, TypeName, terraform_exports as t };
259
+ export { Declaration, MethodSignature, Property, Resource, TerraformSource, Type, TypeName, isResourceEntirelyUnsupported, terraform_exports as t };
@@ -1,40 +1,2 @@
1
- import { b as TSAST } from "../index-pvh-w1xa.js";
2
- import { PropertyFn } from "./index.js";
3
- import * as React$1 from "react";
4
- import * as react_jsx_runtime0 from "react/jsx-runtime";
5
-
6
- //#region src/languages/typescript.d.ts
7
- declare namespace typescript_d_exports {
8
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
9
- }
10
- type TypeProps = {
11
- type: TSAST.TSType;
12
- };
13
- declare function TypeName({
14
- type
15
- }: TypeProps): string | react_jsx_runtime0.JSX.Element;
16
- declare function Type({
17
- type
18
- }: TypeProps): react_jsx_runtime0.JSX.Element;
19
- type MethodSignatureProps = {
20
- decl: TSAST.TSDeclFunction;
21
- };
22
- declare function MethodSignature({
23
- decl
24
- }: MethodSignatureProps): react_jsx_runtime0.JSX.Element;
25
- type PropertyProps = {
26
- decl: TSAST.TSDeclaration;
27
- children: PropertyFn;
28
- };
29
- declare function Property({
30
- decl,
31
- children
32
- }: PropertyProps): React$1.ReactNode;
33
- type DeclarationProps = {
34
- decl: TSAST.TSDeclaration;
35
- };
36
- declare function Declaration({
37
- decl
38
- }: DeclarationProps): react_jsx_runtime0.JSX.Element | undefined;
39
- //#endregion
40
- export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName, typescript_d_exports as t };
1
+ import { an as Property, cn as TypeName, in as MethodSignatureProps, nn as DeclarationProps, on as PropertyProps, rn as MethodSignature, sn as Type, tn as Declaration } from "../index-HcWFtzlc.js";
2
+ export { Declaration, DeclarationProps, MethodSignature, MethodSignatureProps, Property, PropertyProps, Type, TypeName };
@@ -1,12 +1,11 @@
1
- import { t as __exportAll } from "../chunk-BYypO7fO.js";
1
+ import { t as __exportAll } from "../chunk-pbuEa-1d.js";
2
2
  import { useDeclaration, useLanguage, useSpec } from "../contexts/docs.js";
3
- import "../use-strict-context-Clb6Yjly.js";
3
+ import "../component-generics-DYxBWv1v.js";
4
4
  import { useLanguageComponents } from "../contexts/index.js";
5
5
  import { useComponents } from "../contexts/use-components.js";
6
6
  import style_default from "../style.js";
7
7
  import * as React$1 from "react";
8
8
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
9
-
10
9
  //#region src/languages/typescript.tsx
11
10
  var typescript_exports = /* @__PURE__ */ __exportAll({
12
11
  Declaration: () => Declaration,
@@ -244,7 +243,7 @@ function Type({ type }) {
244
243
  ] }, key));
245
244
  return /* @__PURE__ */ jsxs("span", {
246
245
  className: style_default.Type,
247
- children: [extend?.length && /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
246
+ children: [extend?.length ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("span", {
248
247
  className: style_default.TypeKeyword,
249
248
  children: " extends "
250
249
  }), /* @__PURE__ */ jsx(Join, {
@@ -254,7 +253,7 @@ function Type({ type }) {
254
253
  className: style_default.TextOperator,
255
254
  children: ", "
256
255
  })
257
- })] }), /* @__PURE__ */ jsxs("span", {
256
+ })] }) : null, /* @__PURE__ */ jsxs("span", {
258
257
  className: style_default.TypePreview,
259
258
  "data-stldocs-type-preview": "properties",
260
259
  children: [
@@ -445,6 +444,5 @@ function Declaration({ decl }) {
445
444
  ] });
446
445
  }
447
446
  }
448
-
449
447
  //#endregion
450
- export { Declaration, MethodSignature, Property, Type, TypeName, typescript_exports as t };
448
+ export { Declaration, MethodSignature, Property, Type, TypeName, typescript_exports as t };