@stainless-api/docs-ui 0.1.0-beta.91 → 0.1.0-beta.93

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 (61) hide show
  1. package/dist/{breadcrumbs-BaNU4WsC.d.ts → breadcrumbs-6s9Nm3WS.d.ts} +1 -1
  2. package/dist/components/MaskedInput.d.ts +1 -1
  3. package/dist/components/breadcrumbs.d.ts +1 -1
  4. package/dist/components/index.d.ts +7 -7
  5. package/dist/components/index.js +2 -3
  6. package/dist/components/overview.d.ts +1 -1
  7. package/dist/components/overview.js +4 -2
  8. package/dist/components/primitives.d.ts +2 -2
  9. package/dist/components/primitives.js +1 -8
  10. package/dist/components/sdk-sidebar.d.ts +1 -1
  11. package/dist/components/sdk.d.ts +1 -1
  12. package/dist/components/sdk.js +8 -4
  13. package/dist/components/snippets.d.ts +1 -1
  14. package/dist/contexts/component-types.d.ts +1 -1
  15. package/dist/contexts/component.d.ts +1 -1
  16. package/dist/contexts/docs.d.ts +1 -1
  17. package/dist/contexts/index.d.ts +3 -3
  18. package/dist/contexts/navigation.d.ts +1 -1
  19. package/dist/contexts/use-components.d.ts +1 -1
  20. package/dist/{docs-D0qzNoXq.d.ts → docs-CCsL1_Y6.d.ts} +1 -1
  21. package/dist/{index-DFr9Mesr.d.ts → index-BnjlyeQW.d.ts} +5 -3
  22. package/dist/{index-Dt9uPKZP.d.ts → index-CvadxEzQ.d.ts} +9 -9
  23. package/dist/index.d.ts +2 -2
  24. package/dist/languages/cli.d.ts +1 -1
  25. package/dist/languages/csharp.d.ts +1 -1
  26. package/dist/languages/csharp.js +5 -4
  27. package/dist/languages/go.d.ts +1 -1
  28. package/dist/languages/go.js +6 -2
  29. package/dist/languages/http.d.ts +1 -1
  30. package/dist/languages/http.js +6 -3
  31. package/dist/languages/index.d.ts +1 -1
  32. package/dist/languages/java.d.ts +1 -1
  33. package/dist/languages/java.js +5 -4
  34. package/dist/languages/php.d.ts +1 -1
  35. package/dist/languages/python.d.ts +1 -1
  36. package/dist/languages/python.js +8 -5
  37. package/dist/languages/ruby.d.ts +1 -1
  38. package/dist/languages/ruby.js +13 -4
  39. package/dist/languages/terraform.d.ts +1 -1
  40. package/dist/languages/typescript.d.ts +1 -1
  41. package/dist/markdown/index.d.ts +1 -1
  42. package/dist/markdown/md.d.ts +2 -1
  43. package/dist/markdown/md.js +5 -1
  44. package/dist/markdown/printer.d.ts +2 -2
  45. package/dist/markdown/utils.d.ts +3 -3
  46. package/dist/{navigation-DGl8lR6w.d.ts → navigation-0gY-w3QQ.d.ts} +1 -1
  47. package/dist/{overview-iH1evPEF.d.ts → overview-ByEjLgyh.d.ts} +1 -1
  48. package/dist/{primitives-BHt-BuLf.d.ts → primitives-I8l8KcZ1.d.ts} +1 -9
  49. package/dist/{routing-yTSG7nWM.d.ts → routing-BJ8MkvFn.d.ts} +1 -1
  50. package/dist/routing.d.ts +1 -1
  51. package/dist/{sdk-BengV7mg.d.ts → sdk-Dh8yE8vs.d.ts} +2 -2
  52. package/dist/{sdk-sidebar-CRqLm3YO.d.ts → sdk-sidebar-uQZp3Qf-.d.ts} +1 -1
  53. package/dist/spec.d.ts +2 -2
  54. package/dist/style.d.ts +3 -0
  55. package/dist/style.js +3 -0
  56. package/dist/styles/main.css +7 -21
  57. package/dist/styles/primitives.css +14 -0
  58. package/dist/styles/sidebar.css +2 -1
  59. package/dist/styles.css +79 -80
  60. package/dist/utils.d.ts +1 -1
  61. package/package.json +6 -10
@@ -10,6 +10,7 @@ declare function item(...children: Node[]): Node;
10
10
  declare function strong(...children: Node[]): Node;
11
11
  declare function inline(...children: Node[]): Node;
12
12
  declare function fence(language: string, content: string): Node;
13
+ declare function link(href: string, children: string | Node[]): Node;
13
14
  declare function parse(content: string): Node[];
14
15
  //#endregion
15
- export { code, fence, heading, inline, item, list, paragraph, parse, strong, text };
16
+ export { code, fence, heading, inline, item, link, list, paragraph, parse, strong, text };
@@ -32,8 +32,12 @@ function fence(language, content) {
32
32
  content
33
33
  });
34
34
  }
35
+ function link(href, children) {
36
+ const content = typeof children === "string" ? [text(children)] : children;
37
+ return new Markdoc.Ast.Node("link", { href }, content);
38
+ }
35
39
  function parse(content) {
36
40
  return Markdoc.parse(content).children;
37
41
  }
38
42
  //#endregion
39
- export { code, fence, heading, inline, item, list, paragraph, parse, strong, text };
43
+ export { code, fence, heading, inline, item, link, list, paragraph, parse, strong, text };
@@ -1,5 +1,5 @@
1
- import { S as Type, i as DeclarationNode } from "../index-DFr9Mesr.js";
2
- import { t as DocsLanguage } from "../routing-yTSG7nWM.js";
1
+ import { S as Type, i as DeclarationNode } from "../index-BnjlyeQW.js";
2
+ import { t as DocsLanguage } from "../routing-BJ8MkvFn.js";
3
3
 
4
4
  //#region src/markdown/printer.d.ts
5
5
  declare namespace printer_d_exports {
@@ -1,6 +1,6 @@
1
- import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-DFr9Mesr.js";
2
- import { t as DocsLanguage } from "../routing-yTSG7nWM.js";
3
- import { E as TransformRequestSnippetFn } from "../sdk-BengV7mg.js";
1
+ import { u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "../index-BnjlyeQW.js";
2
+ import { t as DocsLanguage } from "../routing-BJ8MkvFn.js";
3
+ import { E as TransformRequestSnippetFn } from "../sdk-Dh8yE8vs.js";
4
4
 
5
5
  //#region src/markdown/utils.d.ts
6
6
  type EnvironmentType = {
@@ -1,4 +1,4 @@
1
- import { t as DocsLanguage } from "./routing-yTSG7nWM.js";
1
+ import { t as DocsLanguage } from "./routing-BJ8MkvFn.js";
2
2
  import * as React$1 from "react";
3
3
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
4
4
 
@@ -1,4 +1,4 @@
1
- import { d as Method, h as Resource } from "./index-DFr9Mesr.js";
1
+ import { d as Method, h as Resource } from "./index-BnjlyeQW.js";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/overview.d.ts
@@ -43,14 +43,6 @@ declare function Markdown({
43
43
  content: string;
44
44
  style?: React.CSSProperties;
45
45
  }): "" | _$react_jsx_runtime0.JSX.Element | undefined;
46
- type BadgeProps = {
47
- id: string;
48
- children?: ReactNode;
49
- };
50
- declare function Badge({
51
- id,
52
- children
53
- }: BadgeProps): _$react_jsx_runtime0.JSX.Element;
54
46
  type TooltipProps = {
55
47
  content: ReactNode;
56
48
  children: ReactNode;
@@ -104,4 +96,4 @@ declare function ListView<TItem>({
104
96
  ...rest
105
97
  }: ListViewProps<TItem>): _$react_jsx_runtime0.JSX.Element;
106
98
  //#endregion
107
- 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 };
99
+ export { Link as a, Markdown as c, Tooltip as d, VirtualExpander as f, Join as i, ToggleButton as l, Input as n, ListView as o, InputProps as r, ListViewProps as s, Expander as t, ToggleButtonProps as u };
@@ -1,4 +1,4 @@
1
- import { d as Method, f as Model, h as Resource, v as Spec } from "./index-DFr9Mesr.js";
1
+ import { d as Method, f as Model, h as Resource, v as Spec } from "./index-BnjlyeQW.js";
2
2
 
3
3
  //#region src/routing.d.ts
4
4
  declare namespace routing_d_exports {
package/dist/routing.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { S as walkTree, _ as parseStainlessPath, a as RouteEntry, b as trimStainlessPath, c as expandToElement, d as generateRoute, f as generateRouteList, g as parseRoute, h as isSupportedLanguage, i as ParsedStainlessPath, l as findNavigationPath, m as getResource, n as LanguageNames, o as SpecTreeEntry, p as getLanguageSnippet, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateMissingRouteList, x as updateHistory, y as scrollToPath } from "./routing-yTSG7nWM.js";
1
+ import { S as walkTree, _ as parseStainlessPath, a as RouteEntry, b as trimStainlessPath, c as expandToElement, d as generateRoute, f as generateRouteList, g as parseRoute, h as isSupportedLanguage, i as ParsedStainlessPath, l as findNavigationPath, m as getResource, n as LanguageNames, o as SpecTreeEntry, p as getLanguageSnippet, r as Languages, s as SupportedLanguageSyntaxes, t as DocsLanguage, u as generateMissingRouteList, x as updateHistory, y as scrollToPath } from "./routing-BJ8MkvFn.js";
2
2
  export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
@@ -1,5 +1,5 @@
1
- import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "./index-DFr9Mesr.js";
2
- import { t as DocsLanguage } from "./routing-yTSG7nWM.js";
1
+ import { _ as SnippetLanguage, c as ID, d as Method, f as Model, o as HasStainlessPath, t as BaseDeclaration } from "./index-BnjlyeQW.js";
2
+ import { t as DocsLanguage } from "./routing-BJ8MkvFn.js";
3
3
  import * as React$1 from "react";
4
4
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
5
5
 
@@ -1,4 +1,4 @@
1
- import { h as Resource } from "./index-DFr9Mesr.js";
1
+ import { h as Resource } from "./index-BnjlyeQW.js";
2
2
  import * as _$react_jsx_runtime0 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/sdk-sidebar.d.ts
package/dist/spec.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-DFr9Mesr.js";
2
- import { t as DocsLanguage } from "./routing-yTSG7nWM.js";
1
+ import { d as Method, f as Model, h as Resource, i as DeclarationNode, v as Spec, y as SpecLanguage } from "./index-BnjlyeQW.js";
2
+ import { t as DocsLanguage } from "./routing-BJ8MkvFn.js";
3
3
 
4
4
  //#region src/spec.d.ts
5
5
  type SecurityScheme = Spec['security_schemes'][number];
package/dist/style.d.ts CHANGED
@@ -31,18 +31,21 @@ declare const _default: {
31
31
  readonly ExpandToggle: "stldocs-expand-toggle";
32
32
  readonly ExpandToggleContent: "stldocs-expand-toggle-content";
33
33
  readonly LoadingSpinner: "stldocs-loading-spinner";
34
+ readonly CalloutDeprecationWarning: "stldocs-callout-deprecation-warning";
34
35
  readonly Type: "stldocs-type";
35
36
  readonly TypeName: "stldocs-typename";
36
37
  readonly TypeKeyword: "stldocs-type-keyword";
37
38
  readonly TypeString: "stldocs-type-string";
38
39
  readonly TypeArray: "stldocs-type-array";
39
40
  readonly TypeReference: "stldocs-type-reference";
41
+ readonly TypeReferencePlain: "stldocs-type-reference-plain";
40
42
  readonly TypeBracket: "stldocs-type-bracket";
41
43
  readonly TypeBrace: "stldocs-type-brace";
42
44
  readonly TypePropertyName: "stldocs-type-propertyname";
43
45
  readonly TypePlain: "stldocs-type-plain";
44
46
  readonly TypePreview: "stldocs-type-preview";
45
47
  readonly TypePreviewContent: "stldocs-type-preview-content";
48
+ readonly TypePreviewPrefix: "stldocs-type-preview-prefix";
46
49
  readonly LiteralString: "stldocs-literal-string";
47
50
  readonly LiteralNumeric: "stldocs-literal-numeric";
48
51
  readonly LiteralBoolean: "stldocs-literal-boolean";
package/dist/style.js CHANGED
@@ -31,18 +31,21 @@ var style_default = {
31
31
  ExpandToggle: "stldocs-expand-toggle",
32
32
  ExpandToggleContent: "stldocs-expand-toggle-content",
33
33
  LoadingSpinner: "stldocs-loading-spinner",
34
+ CalloutDeprecationWarning: "stldocs-callout-deprecation-warning",
34
35
  Type: "stldocs-type",
35
36
  TypeName: "stldocs-typename",
36
37
  TypeKeyword: "stldocs-type-keyword",
37
38
  TypeString: "stldocs-type-string",
38
39
  TypeArray: "stldocs-type-array",
39
40
  TypeReference: "stldocs-type-reference",
41
+ TypeReferencePlain: "stldocs-type-reference-plain",
40
42
  TypeBracket: "stldocs-type-bracket",
41
43
  TypeBrace: "stldocs-type-brace",
42
44
  TypePropertyName: "stldocs-type-propertyname",
43
45
  TypePlain: "stldocs-type-plain",
44
46
  TypePreview: "stldocs-type-preview",
45
47
  TypePreviewContent: "stldocs-type-preview-content",
48
+ TypePreviewPrefix: "stldocs-type-preview-prefix",
46
49
  LiteralString: "stldocs-literal-string",
47
50
  LiteralNumeric: "stldocs-literal-numeric",
48
51
  LiteralBoolean: "stldocs-literal-boolean",
@@ -253,7 +253,8 @@
253
253
  }
254
254
 
255
255
  & .stldocs-property-annotation {
256
- color: var(--stl-color-foreground-reduced);
256
+ color: var(--stl-color-foreground-muted);
257
+ margin-top: .5rem;
257
258
  }
258
259
 
259
260
  & .stldocs-property-typename {
@@ -335,26 +336,6 @@
335
336
  padding: .1rem !important;
336
337
  }
337
338
 
338
- .stldocs-root .stldocs-badge {
339
- background-color: var(--stl-color-muted-background);
340
- font-size: var(--stl-typography-scale-xs);
341
- border-radius: 4px;
342
- padding: 0 .5rem;
343
- font-weight: 500;
344
- display: inline-block;
345
-
346
- &[data-badge-id="deprecated"] {
347
- background-color: var(--stl-color-red-muted-background);
348
- color: var(--stl-color-red-foreground);
349
- text-transform: capitalize;
350
- }
351
-
352
- &[data-badge-id="optional"] {
353
- background-color: var(--stl-color-muted-background);
354
- text-transform: capitalize;
355
- }
356
- }
357
-
358
339
  .stldocs-root .stldocs-method-signature {
359
340
  font-family: var(--stl-typography-font-mono);
360
341
  font-size: var(--stl-typography-scale-sm);
@@ -884,6 +865,11 @@
884
865
  }
885
866
  }
886
867
 
868
+ .stldocs-callout-deprecation-warning {
869
+ max-width: max-content;
870
+ margin-block: 1rem .5rem;
871
+ }
872
+
887
873
  @media (width >= 1280px) {
888
874
  .stldocs-root .stldocs-method.stldocs-method-double-pane {
889
875
  & .stldocs-method-example {
@@ -147,6 +147,14 @@
147
147
  }
148
148
  }
149
149
 
150
+ & .stldocs-type-preview-prefix {
151
+ display: none;
152
+ }
153
+
154
+ & > .stldocs-expander-summary .stldocs-type-preview[data-stldocs-type-preview="union"] .stldocs-type-preview-prefix {
155
+ display: inline;
156
+ }
157
+
150
158
  &[open], &[data-open="true"] {
151
159
  & > .stldocs-expander-summary {
152
160
  & .stldocs-type-preview[data-stldocs-type-preview="properties"] :is(.stldocs-type-preview-content, .stldocs-type-brace) {
@@ -162,6 +170,12 @@
162
170
  display: inline;
163
171
  }
164
172
  }
173
+
174
+ &:not(:has(.stldocs-property-declaration > .stldocs-text-identifier)) {
175
+ & .stldocs-type-preview-prefix {
176
+ display: inline;
177
+ }
178
+ }
165
179
  }
166
180
 
167
181
  & > .stldocs-expander-content {
@@ -121,7 +121,8 @@
121
121
 
122
122
  & > a[aria-current="page"] {
123
123
  border-inline-start: 2px solid var(--stl-color-accent-border-strong);
124
- margin-left: -1px;
124
+ margin-inline-start: -1px;
125
+ padding-inline-start: calc(var(--stldocs-sidebar-item-padding-inline) - 1px);
125
126
  }
126
127
  }
127
128
 
package/dist/styles.css CHANGED
@@ -187,31 +187,25 @@ body {
187
187
  font-family: var(--stl-typography-font);
188
188
  }
189
189
 
190
- .stl-ui-prose {
191
- letter-spacing: -.01em;
192
- font-weight: 400;
193
- line-height: var(--stl-typography-line-height);
194
- font-size: var(--stl-typography-text-body);
195
- color: var(--stl-color-foreground-reduced);
196
-
197
- & :where(.stl-ui-not-prose) {
198
- letter-spacing: initial;
199
- font-weight: initial;
200
- line-height: initial;
201
- font-size: initial;
202
- color: initial;
203
- }
190
+ @scope (.stl-ui-prose) to (.stl-ui-not-prose) {
191
+ :scope {
192
+ letter-spacing: -.01em;
193
+ font-weight: 400;
194
+ line-height: var(--stl-typography-line-height);
195
+ font-size: var(--stl-typography-text-body);
196
+ color: var(--stl-color-foreground-reduced);
204
197
 
205
- &.small {
206
- font-size: var(--stl-typography-scale-sm);
207
- letter-spacing: normal;
198
+ &.small {
199
+ font-size: var(--stl-typography-scale-sm);
200
+ letter-spacing: normal;
201
+ }
208
202
  }
209
203
 
210
- & :where(strong:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose strong) {
204
+ :where(strong) {
211
205
  color: rgb(from currentColor r g b / 1);
212
206
  }
213
207
 
214
- & :where(a:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose a) {
208
+ :where(a) {
215
209
  color: var(--stl-color-link-foreground);
216
210
  text-decoration-color: rgb(from currentColor r g b / calc(alpha * var(--stl-opacity-level-040)));
217
211
  transition: text-decoration-color .1s ease-out;
@@ -221,55 +215,49 @@ body {
221
215
  }
222
216
  }
223
217
 
224
- & :where(h1, h2, h3, h4, h5, h6):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
218
+ :where(h1, h2, h3, h4, h5, h6) {
225
219
  color: var(--stl-color-foreground);
226
220
  font-weight: 500;
227
221
  line-height: var(--stl-typography-line-height-heading);
228
222
  font-family: var(--stl-typography-font-heading);
229
223
  text-wrap: pretty;
224
+ }
230
225
 
231
- &:where(h1, h2, h3) {
232
- text-wrap: balance;
233
- }
226
+ :where(h1, h2, h3) {
227
+ text-wrap: balance;
234
228
  }
235
229
 
236
- & :where(h1:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h1) {
230
+ :where(h1) {
237
231
  font-size: var(--stl-typography-text-h1);
238
232
  letter-spacing: -.03em;
239
233
  margin-top: 1.5em;
240
234
  }
241
235
 
242
- & :where(h2:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h2) {
236
+ :where(h2) {
243
237
  font-size: var(--stl-typography-text-h2);
244
238
  letter-spacing: -.03em;
245
239
  margin-top: 1.35em;
246
240
  }
247
241
 
248
- & :where(h3:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h3) {
242
+ :where(h3) {
249
243
  font-size: var(--stl-typography-text-h3);
250
244
  letter-spacing: -.02em;
251
245
  margin-top: 1.35em;
252
246
  }
253
247
 
254
- & :where(h4:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h4) {
248
+ :where(h4) {
255
249
  font-size: var(--stl-typography-text-h4);
256
250
  letter-spacing: -.02em;
257
251
  margin-top: 1.35em;
258
252
  }
259
253
 
260
- & :where(h5:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h5) {
254
+ :where(h5) {
261
255
  font-size: var(--stl-typography-text-h5);
262
256
  letter-spacing: -.02em;
263
257
  margin-top: 1.2em;
264
258
  }
265
259
 
266
- & :where(li:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose li) {
267
- &:where(:not(:last-child)) {
268
- margin-bottom: 8px;
269
- }
270
- }
271
-
272
- &.smaller-headings {
260
+ :scope.smaller-headings {
273
261
  --stl-typography-text-h1: var(--stl-typography-scale-3xl);
274
262
  --stl-typography-text-h2: var(--stl-typography-scale-2xl);
275
263
  --stl-typography-text-h3: var(--stl-typography-scale-xl);
@@ -289,26 +277,15 @@ body {
289
277
  }
290
278
  }
291
279
 
292
- & :where(pre:not(.stl-ui-not-prose *, .expressive-code *), .stl-ui-not-prose .stl-ui-prose pre:not(.expressive-code *)) {
293
- border-radius: var(--stl-ui-layout-border-radius-sml);
294
- border: 1px solid var(--stl-color-border);
295
- background-color: var(--stl-color-faint-background);
296
- margin-bottom: 1rem;
297
- padding: 12px 20px;
298
- overflow: auto;
299
- }
300
-
301
- & :where(ol, ul) {
302
- &:where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
303
- padding-left: 26px;
304
- }
280
+ :where(ol, ul) {
281
+ padding-left: 26px;
305
282
  }
306
283
 
307
- & :where(ol, ul, aside, img, figure, details):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
308
- margin-top: 16px;
284
+ :where(li + li) {
285
+ margin-block-start: 8px;
309
286
  }
310
287
 
311
- & :where(code):where(:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose *) {
288
+ :where(code) {
312
289
  font-family: var(--stl-typography-font-mono);
313
290
  font-feature-settings: "ss01" on,
314
291
  "ss03" on,
@@ -318,20 +295,41 @@ body {
318
295
  font-weight: inherit;
319
296
  letter-spacing: normal;
320
297
  white-space: pre;
298
+ }
321
299
 
322
- &:where(:not(pre > code)) {
323
- color: var(--stl-color-foreground);
324
- background-color: rgb(from var(--stl-color-foreground) r g b / .1);
325
- border-radius: .2em;
326
- padding: 0 .2em;
327
- }
300
+ &:where(code:not(pre > code)) {
301
+ color: var(--stl-color-foreground);
302
+ background-color: rgb(from var(--stl-color-foreground) r g b / .1);
303
+ border-radius: .2em;
304
+ padding: 0 .2em;
305
+ }
306
+
307
+ :where(pre:not(.expressive-code *)) {
308
+ border-radius: var(--stl-ui-layout-border-radius-sml);
309
+ border: 1px solid var(--stl-color-border);
310
+ background-color: var(--stl-color-faint-background);
311
+ margin-bottom: 1rem;
312
+ padding: 12px 20px;
313
+ overflow: auto;
314
+ }
315
+
316
+ :where(ol, ul, aside, img, figure, details) {
317
+ margin-top: 16px;
328
318
  }
329
319
  }
330
320
 
331
- :where(.stl-ui-prose, .stl-ui-prose > .sl-markdown-content) > :where(:not(:first-child)) {
321
+ :where(:is(.stl-ui-prose, .stl-ui-prose > .sl-markdown-content) > :not(:first-child)) {
332
322
  margin-top: 16px;
333
323
  }
334
324
 
325
+ :where(.stl-ui-not-prose) {
326
+ letter-spacing: initial;
327
+ font-weight: initial;
328
+ line-height: initial;
329
+ font-size: initial;
330
+ color: initial;
331
+ }
332
+
335
333
  @layer starlight.content {
336
334
  .stl-ui-prose .sl-markdown-content {
337
335
  & a, & a:hover {
@@ -1391,6 +1389,14 @@ a.stl-ui-button {
1391
1389
  }
1392
1390
  }
1393
1391
 
1392
+ & .stldocs-type-preview-prefix {
1393
+ display: none;
1394
+ }
1395
+
1396
+ & > .stldocs-expander-summary .stldocs-type-preview[data-stldocs-type-preview="union"] .stldocs-type-preview-prefix {
1397
+ display: inline;
1398
+ }
1399
+
1394
1400
  &[open], &[data-open="true"] {
1395
1401
  & > .stldocs-expander-summary {
1396
1402
  & .stldocs-type-preview[data-stldocs-type-preview="properties"] :is(.stldocs-type-preview-content, .stldocs-type-brace) {
@@ -1406,6 +1412,12 @@ a.stl-ui-button {
1406
1412
  display: inline;
1407
1413
  }
1408
1414
  }
1415
+
1416
+ &:not(:has(.stldocs-property-declaration > .stldocs-text-identifier)) {
1417
+ & .stldocs-type-preview-prefix {
1418
+ display: inline;
1419
+ }
1420
+ }
1409
1421
  }
1410
1422
 
1411
1423
  & > .stldocs-expander-content {
@@ -1987,7 +1999,8 @@ a.stl-ui-button {
1987
1999
  }
1988
2000
 
1989
2001
  & .stldocs-property-annotation {
1990
- color: var(--stl-color-foreground-reduced);
2002
+ color: var(--stl-color-foreground-muted);
2003
+ margin-top: .5rem;
1991
2004
  }
1992
2005
 
1993
2006
  & .stldocs-property-typename {
@@ -2069,26 +2082,6 @@ a.stl-ui-button {
2069
2082
  padding: .1rem !important;
2070
2083
  }
2071
2084
 
2072
- .stldocs-root .stldocs-badge {
2073
- background-color: var(--stl-color-muted-background);
2074
- font-size: var(--stl-typography-scale-xs);
2075
- border-radius: 4px;
2076
- padding: 0 .5rem;
2077
- font-weight: 500;
2078
- display: inline-block;
2079
-
2080
- &[data-badge-id="deprecated"] {
2081
- background-color: var(--stl-color-red-muted-background);
2082
- color: var(--stl-color-red-foreground);
2083
- text-transform: capitalize;
2084
- }
2085
-
2086
- &[data-badge-id="optional"] {
2087
- background-color: var(--stl-color-muted-background);
2088
- text-transform: capitalize;
2089
- }
2090
- }
2091
-
2092
2085
  .stldocs-root .stldocs-method-signature {
2093
2086
  font-family: var(--stl-typography-font-mono);
2094
2087
  font-size: var(--stl-typography-scale-sm);
@@ -2618,6 +2611,11 @@ a.stl-ui-button {
2618
2611
  }
2619
2612
  }
2620
2613
 
2614
+ .stldocs-callout-deprecation-warning {
2615
+ max-width: max-content;
2616
+ margin-block: 1rem .5rem;
2617
+ }
2618
+
2621
2619
  @media (width >= 1280px) {
2622
2620
  .stldocs-root .stldocs-method.stldocs-method-double-pane {
2623
2621
  & .stldocs-method-example {
@@ -2859,7 +2857,8 @@ a.stl-ui-button {
2859
2857
 
2860
2858
  & > a[aria-current="page"] {
2861
2859
  border-inline-start: 2px solid var(--stl-color-accent-border-strong);
2862
- margin-left: -1px;
2860
+ margin-inline-start: -1px;
2861
+ padding-inline-start: calc(var(--stldocs-sidebar-item-padding-inline) - 1px);
2863
2862
  }
2864
2863
  }
2865
2864
 
package/dist/utils.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as ID, h as Resource, s as HttpAST, v as Spec } from "./index-DFr9Mesr.js";
1
+ import { c as ID, h as Resource, s as HttpAST, v as Spec } from "./index-BnjlyeQW.js";
2
2
 
3
3
  //#region src/utils.d.ts
4
4
  declare namespace utils_d_exports {
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.91",
4
+ "version": "0.1.0-beta.93",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -16,22 +16,21 @@
16
16
  "dependencies": {
17
17
  "@markdoc/markdoc": "^0.5.7",
18
18
  "clsx": "^2.1.1",
19
- "htmlparser2": "^11.0.0",
19
+ "htmlparser2": "^12.0.0",
20
20
  "lucide-react": "^0.577.0",
21
- "@stainless-api/ui-primitives": "0.1.0-beta.51"
21
+ "@stainless-api/ui-primitives": "0.1.0-beta.53"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@tsdown/css": "^0.21.7",
25
- "@types/node": "24.12.0",
25
+ "@types/node": "24.12.2",
26
26
  "@types/react": "19.2.14",
27
27
  "@types/react-dom": "^19.2.3",
28
- "dotenv": "17.4.0",
29
28
  "react": "^19.2.4",
30
29
  "react-dom": "^19.2.4",
31
30
  "tsdown": "^0.21.7",
32
31
  "typescript": "6.0.2",
33
- "@stainless/eslint-config": "0.1.0-beta.1",
34
- "@stainless/sdk-json": "^0.1.0-beta.9"
32
+ "@stainless/eslint-config": "0.1.0-beta.2",
33
+ "@stainless/sdk-json": "^0.1.0-beta.10"
35
34
  },
36
35
  "exports": {
37
36
  ".": {
@@ -46,9 +45,6 @@
46
45
  "./components": {
47
46
  "default": "./dist/components/index.js"
48
47
  },
49
- "./components/scripts/*": {
50
- "default": "./dist/components/scripts/*.js"
51
- },
52
48
  "./components/*": {
53
49
  "default": "./dist/components/*.js"
54
50
  },