@stainless-api/docs-ui 0.1.0-beta.77 → 0.1.0-beta.79
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +1 -1
- package/dist/components/snippets.d.ts +1 -1
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/docs.js +2 -2
- package/dist/{index-Cl6Gny0o.d.ts → index-BQHpxMul.d.ts} +10 -6
- package/dist/languages/cli.d.ts +1 -1
- package/dist/languages/csharp.d.ts +1 -1
- package/dist/languages/go.d.ts +1 -1
- package/dist/languages/http.d.ts +1 -1
- package/dist/languages/index.d.ts +1 -1
- package/dist/languages/java.d.ts +1 -1
- package/dist/languages/php.d.ts +1 -1
- package/dist/languages/python.d.ts +1 -1
- package/dist/languages/ruby.d.ts +1 -1
- package/dist/languages/terraform.d.ts +1 -1
- package/dist/languages/typescript.d.ts +1 -1
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/printer.d.ts +1 -1
- package/dist/markdown/utils.d.ts +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/spec.d.ts +1 -1
- package/dist/styles/main.css +10 -9
- package/dist/styles/primitives.css +0 -1
- package/dist/styles/sidebar.css +6 -3
- package/dist/styles/variables.css +2 -0
- package/dist/styles.css +22 -16
- package/dist/utils.d.ts +1 -1
- package/package.json +7 -7
package/dist/components/sdk.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "../index-
|
|
1
|
+
import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "../index-BQHpxMul.js";
|
|
2
2
|
import { DocsLanguage } from "../routing.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
package/dist/components/sdk.js
CHANGED
|
@@ -181,7 +181,7 @@ function SDKDeclaration({ path, expand, depth = 0 }) {
|
|
|
181
181
|
...props,
|
|
182
182
|
children: hasChildren && /* @__PURE__ */ jsxs(Fragment$1, { children: [isUnion && /* @__PURE__ */ jsx("div", {
|
|
183
183
|
className: style_default.PropertyAnnotation,
|
|
184
|
-
children: "
|
|
184
|
+
children: "One of the following:"
|
|
185
185
|
}), /* @__PURE__ */ jsx(Docs.SDKChildren, {
|
|
186
186
|
paths: decl.children ?? [],
|
|
187
187
|
depth: depth + 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Method, o as HasStainlessPath } from "../index-
|
|
1
|
+
import { d as Method, o as HasStainlessPath } from "../index-BQHpxMul.js";
|
|
2
2
|
import { TransformRequestSnippetFn } from "./sdk.js";
|
|
3
3
|
import { useSnippet } from "../contexts/docs.js";
|
|
4
4
|
import "../contexts/index.js";
|
package/dist/contexts/docs.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-
|
|
1
|
+
import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-BQHpxMul.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
package/dist/contexts/docs.js
CHANGED
|
@@ -44,7 +44,7 @@ function useSnippet(stainlessPath, language, snippetId) {
|
|
|
44
44
|
return snippets?.[snippetId]?.content;
|
|
45
45
|
}
|
|
46
46
|
function useSnippetResponse(stainlessPath, snippetId) {
|
|
47
|
-
const responses = useSpec()?.snippetResponses
|
|
47
|
+
const responses = useSpec()?.snippetResponses?.http?.[stainlessPath];
|
|
48
48
|
if (!responses) return void 0;
|
|
49
49
|
if (!snippetId) return getDefaultSnippet(responses);
|
|
50
50
|
return responses[snippetId];
|
|
@@ -57,7 +57,7 @@ function useDeclaration(stainlessPath, required, language) {
|
|
|
57
57
|
}
|
|
58
58
|
function useAvailableLanguages(stainlessPath) {
|
|
59
59
|
const spec = useSpec();
|
|
60
|
-
return Object.keys(spec?.decls ?? {}).filter((lang) => spec?.decls?.[lang]?.[stainlessPath] !== void 0);
|
|
60
|
+
return Object.keys(spec?.decls ?? {}).filter((lang) => spec?.decls?.[lang]?.[stainlessPath] !== void 0).filter((e) => spec?.docs?.languages?.includes(e));
|
|
61
61
|
}
|
|
62
62
|
function useIgnoredResources() {
|
|
63
63
|
return ["(resource) webhooks > (model) unwrap_webhook_event > (schema)"];
|
|
@@ -167,13 +167,14 @@ interface Config {
|
|
|
167
167
|
}[] | undefined;
|
|
168
168
|
} | undefined;
|
|
169
169
|
}
|
|
170
|
-
type
|
|
170
|
+
type InternalDiagnosticLevel = 'fatal' | 'internal_error' | 'error' | 'warning' | 'note';
|
|
171
|
+
type DiagnosticLevel = Exclude<InternalDiagnosticLevel, 'internal_error'>;
|
|
171
172
|
type AutoFixOp = SimplifyDeep<{
|
|
172
173
|
file: 'config';
|
|
173
174
|
} & Operation>;
|
|
174
|
-
type
|
|
175
|
+
type DiagnosticInfo = {
|
|
175
176
|
code: string;
|
|
176
|
-
level:
|
|
177
|
+
level: InternalDiagnosticLevel;
|
|
177
178
|
ignored: boolean;
|
|
178
179
|
message: string;
|
|
179
180
|
messageHtml: string;
|
|
@@ -191,6 +192,12 @@ type DiagnosticExport = {
|
|
|
191
192
|
autoFixPlan: AutoFixOp[] | null;
|
|
192
193
|
trace?: string;
|
|
193
194
|
};
|
|
195
|
+
type DiagnosticExport = DiagnosticInfo & {
|
|
196
|
+
level: DiagnosticLevel;
|
|
197
|
+
};
|
|
198
|
+
type SDKSchemaReference = never;
|
|
199
|
+
type SDKSchemaType = string;
|
|
200
|
+
type SDKPropertySchemaReference<T = never> = never;
|
|
194
201
|
type HttpDeclaration = HttpDeclFunction | HttpDeclProperty | HttpDeclTypeAlias | HttpDeclReference | ErrorDecl;
|
|
195
202
|
type HttpDeclFunction = BaseDeclaration & {
|
|
196
203
|
kind: 'HttpDeclFunction';
|
|
@@ -467,9 +474,6 @@ type RubyAST_RubyTypeUnknown = RubyTypeUnknown;
|
|
|
467
474
|
declare namespace RubyAST {
|
|
468
475
|
export type { RubyAST_RubyDeclClass as RubyDeclClass, RubyAST_RubyDeclFunction as RubyDeclFunction, RubyAST_RubyDeclProperty as RubyDeclProperty, RubyAST_RubyDeclReference as RubyDeclReference, RubyAST_RubyDeclTypeAlias as RubyDeclTypeAlias, RubyAST_RubyDeclaration as RubyDeclaration, RubyAST_RubyFunctionArgument as RubyFunctionArgument, RubyAST_RubyIdentifier as RubyIdentifier, RubyAST_RubyType as RubyType, RubyAST_RubyTypeArray as RubyTypeArray, RubyAST_RubyTypeBinary as RubyTypeBinary, RubyAST_RubyTypeBoolean as RubyTypeBoolean, RubyAST_RubyTypeBuiltinClass as RubyTypeBuiltinClass, RubyAST_RubyTypeFloat as RubyTypeFloat, RubyAST_RubyTypeInteger as RubyTypeInteger, RubyAST_RubyTypeIntersection as RubyTypeIntersection, RubyAST_RubyTypeLiteral as RubyTypeLiteral, RubyAST_RubyTypeMap as RubyTypeMap, RubyAST_RubyTypeNull as RubyTypeNull, RubyAST_RubyTypeObject as RubyTypeObject, RubyAST_RubyTypeParameter as RubyTypeParameter, RubyAST_RubyTypeReference as RubyTypeReference, RubyAST_RubyTypeString as RubyTypeString, RubyAST_RubyTypeUnion as RubyTypeUnion, RubyAST_RubyTypeUnknown as RubyTypeUnknown };
|
|
469
476
|
}
|
|
470
|
-
type SDKSchemaReference = never;
|
|
471
|
-
type SDKSchemaType = string;
|
|
472
|
-
type SDKPropertySchemaReference<T = never> = never;
|
|
473
477
|
/**
|
|
474
478
|
* Base declaration types for CLI command AST
|
|
475
479
|
*/
|
package/dist/languages/cli.d.ts
CHANGED
package/dist/languages/go.d.ts
CHANGED
package/dist/languages/http.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as Type, h as Resource, i as DeclarationNode } from "../index-
|
|
1
|
+
import { S as Type, h as Resource, i as DeclarationNode } from "../index-BQHpxMul.js";
|
|
2
2
|
import { PropertyProps } from "../components/properties.js";
|
|
3
3
|
import { t as typescript_d_exports } from "./typescript.js";
|
|
4
4
|
import { t as java_d_exports } from "./java.js";
|
package/dist/languages/java.d.ts
CHANGED
package/dist/languages/php.d.ts
CHANGED
package/dist/languages/ruby.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as Resource$1, x as TerraformAST } from "../index-
|
|
1
|
+
import { h as Resource$1, x as TerraformAST } from "../index-BQHpxMul.js";
|
|
2
2
|
import { PropertyFn } from "./index.js";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
package/dist/markdown/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-
|
|
1
|
+
import { d as Method, f as Model, h as Resource, i as DeclarationNode } from "../index-BQHpxMul.js";
|
|
2
2
|
import { EnvironmentType } from "./utils.js";
|
|
3
3
|
import { t as printer_d_exports } from "./printer.js";
|
|
4
4
|
import { Node } from "@markdoc/markdoc";
|
package/dist/markdown/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-
|
|
1
|
+
import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-BQHpxMul.js";
|
|
2
2
|
import { DocsLanguage } from "../routing.js";
|
|
3
3
|
import { TransformRequestSnippetFn } from "../components/sdk.js";
|
|
4
4
|
|
package/dist/routing.d.ts
CHANGED
package/dist/spec.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-
|
|
1
|
+
import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-BQHpxMul.js";
|
|
2
2
|
import { DocsLanguage } from "./routing.js";
|
|
3
3
|
|
|
4
4
|
//#region src/spec.d.ts
|
package/dist/styles/main.css
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
flex-direction: column;
|
|
75
75
|
|
|
76
76
|
.stldocs-resource-content-group-model-title {
|
|
77
|
-
padding-top: var(--stldocs-content-padding);
|
|
77
|
+
padding-top: var(--stldocs-content-padding-block);
|
|
78
78
|
color: var(--stl-color-foreground-muted);
|
|
79
79
|
font-weight: normal;
|
|
80
80
|
font-size: 1rem;
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
/* Overview page method summary */
|
|
102
102
|
.stldocs-root .stldocs-overview .stldocs-method-summary,
|
|
103
103
|
.stldocs-root .stldocs-overview .stldocs-method {
|
|
104
|
-
padding: var(--stldocs-content-padding) 0;
|
|
104
|
+
padding: var(--stldocs-content-padding-block) 0;
|
|
105
105
|
|
|
106
106
|
.stldocs-method-header {
|
|
107
107
|
display: flex;
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
height: 1.7rem;
|
|
133
133
|
overflow-y: hidden;
|
|
134
134
|
line-height: 1.7rem;
|
|
135
|
-
padding-bottom: var(--stldocs-content-padding);
|
|
135
|
+
padding-bottom: var(--stldocs-content-padding-block);
|
|
136
136
|
|
|
137
137
|
.stldocs-content > * {
|
|
138
138
|
white-space: nowrap;
|
|
@@ -422,7 +422,8 @@
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
.stldocs-method-header {
|
|
425
|
-
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding
|
|
425
|
+
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding-inline)
|
|
426
|
+
var(--stldocs-content-padding-block);
|
|
426
427
|
|
|
427
428
|
.stldocs-method-title {
|
|
428
429
|
font-size: var(--stl-typography-text-h1);
|
|
@@ -440,7 +441,7 @@
|
|
|
440
441
|
|
|
441
442
|
.stldocs-method-description {
|
|
442
443
|
grid-area: 1 / 1 / 2 / 2;
|
|
443
|
-
padding-bottom: var(--stldocs-content-padding);
|
|
444
|
+
padding-bottom: var(--stldocs-content-padding-block);
|
|
444
445
|
|
|
445
446
|
code {
|
|
446
447
|
line-height: 150%;
|
|
@@ -471,7 +472,7 @@
|
|
|
471
472
|
}
|
|
472
473
|
|
|
473
474
|
.stldocs-method-info {
|
|
474
|
-
padding: var(--stldocs-content-padding) 0;
|
|
475
|
+
padding: var(--stldocs-content-padding-block) 0;
|
|
475
476
|
grid-area: 3 / 1 / 4 / 2;
|
|
476
477
|
display: flex;
|
|
477
478
|
gap: 2rem;
|
|
@@ -513,7 +514,7 @@
|
|
|
513
514
|
gap: 2rem;
|
|
514
515
|
grid-template-columns: minmax(0, 1fr);
|
|
515
516
|
grid-template-rows: repeat(4, auto);
|
|
516
|
-
padding: var(--stldocs-content-padding) 0;
|
|
517
|
+
padding: var(--stldocs-content-padding-block) 0;
|
|
517
518
|
|
|
518
519
|
.stldocs-method-description p {
|
|
519
520
|
color: var(--stl-color-foreground-reduced);
|
|
@@ -930,11 +931,11 @@
|
|
|
930
931
|
/* Don't put expanders in the margin on mobile */
|
|
931
932
|
@media (max-width: 50rem) {
|
|
932
933
|
.stldocs-root .stldocs-method-body {
|
|
933
|
-
padding: 1rem var(--stldocs-content-padding) !important;
|
|
934
|
+
padding: 1rem var(--stldocs-content-padding-inline) !important;
|
|
934
935
|
}
|
|
935
936
|
|
|
936
937
|
.stldocs-root .stldocs-resource .stldocs-resource-content {
|
|
937
|
-
padding: 0 var(--stldocs-content-padding) !important;
|
|
938
|
+
padding: 0 var(--stldocs-content-padding-inline) !important;
|
|
938
939
|
|
|
939
940
|
.stldocs-resource-content-properties {
|
|
940
941
|
margin-left: 0 !important;
|
package/dist/styles/sidebar.css
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--stldocs-sidebar-item-padding-inline: 0.75rem;
|
|
3
|
+
--stldocs-sidebar-item-padding-block: 0.375rem;
|
|
4
|
+
--stldocs-sidebar-indent: 0.75rem;
|
|
5
|
+
}
|
|
6
|
+
|
|
1
7
|
.stldocs-sidebar {
|
|
2
8
|
font-family: var(--stl-typography-font);
|
|
3
9
|
font-size: var(--stl-typography-scale-sm);
|
|
4
10
|
/* Remove background color from stldocs-root reset. */
|
|
5
11
|
background-color: transparent;
|
|
6
|
-
--stldocs-sidebar-item-padding-inline: 12px;
|
|
7
|
-
--stldocs-sidebar-item-padding-block: 6px;
|
|
8
|
-
--stldocs-sidebar-indent: 12px;
|
|
9
12
|
|
|
10
13
|
ul,
|
|
11
14
|
summary {
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
--stldocs-content-width: 720px;
|
|
6
6
|
--stldocs-content-padding: 16px;
|
|
7
|
+
--stldocs-content-padding-inline: var(--stldocs-content-padding);
|
|
8
|
+
--stldocs-content-padding-block: var(--stldocs-content-padding);
|
|
7
9
|
|
|
8
10
|
--stldocs-color-http-get-bg: var(--stl-color-green-muted-background);
|
|
9
11
|
--stldocs-color-http-get: var(--stl-color-green-foreground);
|
package/dist/styles.css
CHANGED
|
@@ -185,6 +185,7 @@ body {
|
|
|
185
185
|
font-size: var(--stl-typography-text-code);
|
|
186
186
|
font-weight: inherit;
|
|
187
187
|
letter-spacing: normal;
|
|
188
|
+
white-space: pre;
|
|
188
189
|
|
|
189
190
|
/* inline code */
|
|
190
191
|
&:where(:not(pre > code)) {
|
|
@@ -625,8 +626,8 @@ a.stl-ui-button {
|
|
|
625
626
|
--stl-ui-dropdown-button-border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
626
627
|
--stl-ui-dropdown-button-font-size: var(--stl-typography-scale-sm);
|
|
627
628
|
|
|
628
|
-
--stl-ui-dropdown-button-height:
|
|
629
|
-
--stl-ui-dropdown-button-padding: 0
|
|
629
|
+
--stl-ui-dropdown-button-height: 2rem;
|
|
630
|
+
--stl-ui-dropdown-button-padding-inline: calc(0.75rem - 1px);
|
|
630
631
|
--stl-ui-dropdown-button-line-height: 100%;
|
|
631
632
|
--stl-ui-dropdown-button-font-weight: 500;
|
|
632
633
|
|
|
@@ -657,7 +658,7 @@ a.stl-ui-button {
|
|
|
657
658
|
border: 1px solid var(--stl-ui-dropdown-button-border-color);
|
|
658
659
|
border-radius: var(--stl-ui-dropdown-button-border-radius);
|
|
659
660
|
height: var(--stl-ui-dropdown-button-height);
|
|
660
|
-
padding: var(--stl-ui-dropdown-button-padding);
|
|
661
|
+
padding-inline: var(--stl-ui-dropdown-button-padding-inline);
|
|
661
662
|
line-height: var(--stl-ui-dropdown-button-line-height);
|
|
662
663
|
font-weight: var(--stl-ui-dropdown-button-font-weight);
|
|
663
664
|
cursor: pointer;
|
|
@@ -1366,6 +1367,8 @@ a.stl-ui-button {
|
|
|
1366
1367
|
|
|
1367
1368
|
--stldocs-content-width: 720px;
|
|
1368
1369
|
--stldocs-content-padding: 16px;
|
|
1370
|
+
--stldocs-content-padding-inline: var(--stldocs-content-padding);
|
|
1371
|
+
--stldocs-content-padding-block: var(--stldocs-content-padding);
|
|
1369
1372
|
|
|
1370
1373
|
--stldocs-color-http-get-bg: var(--stl-color-green-muted-background);
|
|
1371
1374
|
--stldocs-color-http-get: var(--stl-color-green-foreground);
|
|
@@ -1390,7 +1393,6 @@ a.stl-ui-button {
|
|
|
1390
1393
|
/* Design System Defaults */
|
|
1391
1394
|
.stldocs-root {
|
|
1392
1395
|
font-family: var(--stl-typography-font);
|
|
1393
|
-
background-color: var(--stl-color-background);
|
|
1394
1396
|
color: var(--stl-color-foreground);
|
|
1395
1397
|
letter-spacing: -0.01em;
|
|
1396
1398
|
|
|
@@ -1904,7 +1906,7 @@ a.stl-ui-button {
|
|
|
1904
1906
|
flex-direction: column;
|
|
1905
1907
|
|
|
1906
1908
|
.stldocs-resource-content-group-model-title {
|
|
1907
|
-
padding-top: var(--stldocs-content-padding);
|
|
1909
|
+
padding-top: var(--stldocs-content-padding-block);
|
|
1908
1910
|
color: var(--stl-color-foreground-muted);
|
|
1909
1911
|
font-weight: normal;
|
|
1910
1912
|
font-size: 1rem;
|
|
@@ -1931,7 +1933,7 @@ a.stl-ui-button {
|
|
|
1931
1933
|
/* Overview page method summary */
|
|
1932
1934
|
.stldocs-root .stldocs-overview .stldocs-method-summary,
|
|
1933
1935
|
.stldocs-root .stldocs-overview .stldocs-method {
|
|
1934
|
-
padding: var(--stldocs-content-padding) 0;
|
|
1936
|
+
padding: var(--stldocs-content-padding-block) 0;
|
|
1935
1937
|
|
|
1936
1938
|
.stldocs-method-header {
|
|
1937
1939
|
display: flex;
|
|
@@ -1962,7 +1964,7 @@ a.stl-ui-button {
|
|
|
1962
1964
|
height: 1.7rem;
|
|
1963
1965
|
overflow-y: hidden;
|
|
1964
1966
|
line-height: 1.7rem;
|
|
1965
|
-
padding-bottom: var(--stldocs-content-padding);
|
|
1967
|
+
padding-bottom: var(--stldocs-content-padding-block);
|
|
1966
1968
|
|
|
1967
1969
|
.stldocs-content > * {
|
|
1968
1970
|
white-space: nowrap;
|
|
@@ -2252,7 +2254,8 @@ a.stl-ui-button {
|
|
|
2252
2254
|
}
|
|
2253
2255
|
|
|
2254
2256
|
.stldocs-method-header {
|
|
2255
|
-
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding
|
|
2257
|
+
padding: var(--stldocs-title-padding-y) var(--stldocs-content-padding-inline)
|
|
2258
|
+
var(--stldocs-content-padding-block);
|
|
2256
2259
|
|
|
2257
2260
|
.stldocs-method-title {
|
|
2258
2261
|
font-size: var(--stl-typography-text-h1);
|
|
@@ -2270,7 +2273,7 @@ a.stl-ui-button {
|
|
|
2270
2273
|
|
|
2271
2274
|
.stldocs-method-description {
|
|
2272
2275
|
grid-area: 1 / 1 / 2 / 2;
|
|
2273
|
-
padding-bottom: var(--stldocs-content-padding);
|
|
2276
|
+
padding-bottom: var(--stldocs-content-padding-block);
|
|
2274
2277
|
|
|
2275
2278
|
code {
|
|
2276
2279
|
line-height: 150%;
|
|
@@ -2301,7 +2304,7 @@ a.stl-ui-button {
|
|
|
2301
2304
|
}
|
|
2302
2305
|
|
|
2303
2306
|
.stldocs-method-info {
|
|
2304
|
-
padding: var(--stldocs-content-padding) 0;
|
|
2307
|
+
padding: var(--stldocs-content-padding-block) 0;
|
|
2305
2308
|
grid-area: 3 / 1 / 4 / 2;
|
|
2306
2309
|
display: flex;
|
|
2307
2310
|
gap: 2rem;
|
|
@@ -2343,7 +2346,7 @@ a.stl-ui-button {
|
|
|
2343
2346
|
gap: 2rem;
|
|
2344
2347
|
grid-template-columns: minmax(0, 1fr);
|
|
2345
2348
|
grid-template-rows: repeat(4, auto);
|
|
2346
|
-
padding: var(--stldocs-content-padding) 0;
|
|
2349
|
+
padding: var(--stldocs-content-padding-block) 0;
|
|
2347
2350
|
|
|
2348
2351
|
.stldocs-method-description p {
|
|
2349
2352
|
color: var(--stl-color-foreground-reduced);
|
|
@@ -2760,11 +2763,11 @@ a.stl-ui-button {
|
|
|
2760
2763
|
/* Don't put expanders in the margin on mobile */
|
|
2761
2764
|
@media (max-width: 50rem) {
|
|
2762
2765
|
.stldocs-root .stldocs-method-body {
|
|
2763
|
-
padding: 1rem var(--stldocs-content-padding) !important;
|
|
2766
|
+
padding: 1rem var(--stldocs-content-padding-inline) !important;
|
|
2764
2767
|
}
|
|
2765
2768
|
|
|
2766
2769
|
.stldocs-root .stldocs-resource .stldocs-resource-content {
|
|
2767
|
-
padding: 0 var(--stldocs-content-padding) !important;
|
|
2770
|
+
padding: 0 var(--stldocs-content-padding-inline) !important;
|
|
2768
2771
|
|
|
2769
2772
|
.stldocs-resource-content-properties {
|
|
2770
2773
|
margin-left: 0 !important;
|
|
@@ -2856,14 +2859,17 @@ a.stl-ui-button {
|
|
|
2856
2859
|
}
|
|
2857
2860
|
}
|
|
2858
2861
|
|
|
2862
|
+
:root {
|
|
2863
|
+
--stldocs-sidebar-item-padding-inline: 0.75rem;
|
|
2864
|
+
--stldocs-sidebar-item-padding-block: 0.375rem;
|
|
2865
|
+
--stldocs-sidebar-indent: 0.75rem;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2859
2868
|
.stldocs-sidebar {
|
|
2860
2869
|
font-family: var(--stl-typography-font);
|
|
2861
2870
|
font-size: var(--stl-typography-scale-sm);
|
|
2862
2871
|
/* Remove background color from stldocs-root reset. */
|
|
2863
2872
|
background-color: transparent;
|
|
2864
|
-
--stldocs-sidebar-item-padding-inline: 12px;
|
|
2865
|
-
--stldocs-sidebar-item-padding-block: 6px;
|
|
2866
|
-
--stldocs-sidebar-indent: 12px;
|
|
2867
2873
|
|
|
2868
2874
|
ul,
|
|
2869
2875
|
summary {
|
package/dist/utils.d.ts
CHANGED
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.
|
|
4
|
+
"version": "0.1.0-beta.79",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"@markdoc/markdoc": "^0.5.4",
|
|
18
18
|
"clsx": "^2.1.1",
|
|
19
19
|
"htmlparser2": "^10.1.0",
|
|
20
|
-
"lucide-react": "^0.
|
|
21
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
20
|
+
"lucide-react": "^0.574.0",
|
|
21
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.49"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "24.10.
|
|
25
|
-
"@types/react": "19.2.
|
|
24
|
+
"@types/node": "24.10.13",
|
|
25
|
+
"@types/react": "19.2.14",
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
27
|
-
"dotenv": "17.
|
|
27
|
+
"dotenv": "17.3.1",
|
|
28
28
|
"react": "^19.2.4",
|
|
29
29
|
"react-dom": "^19.2.4",
|
|
30
30
|
"tsdown": "^0.20.3",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"@stainless/eslint-config": "0.1.0-beta.1",
|
|
33
|
-
"@stainless/sdk-json": "^0.1.0-beta.
|
|
33
|
+
"@stainless/sdk-json": "^0.1.0-beta.8"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|