@stainless-api/docs-ui 0.1.0-beta.44 → 0.1.0-beta.46

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 (122) hide show
  1. package/dist/{component-generics-ofm2M82q.d.ts → component-generics-CDshlns_.d.ts} +2 -2
  2. package/dist/components/MaskedInput.d.ts +14 -0
  3. package/dist/components/MaskedInput.js +76 -0
  4. package/dist/components/breadcrumbs.d.ts +1 -1
  5. package/dist/components/breadcrumbs.js +13 -13
  6. package/dist/components/icons.d.ts +16 -11
  7. package/dist/components/icons.js +2 -2
  8. package/dist/components/index.d.ts +11 -11
  9. package/dist/components/index.js +14 -14
  10. package/dist/components/method.d.ts +1 -1
  11. package/dist/components/method.js +13 -13
  12. package/dist/components/overview.d.ts +1 -1
  13. package/dist/components/overview.js +13 -13
  14. package/dist/components/primitives.d.ts +1 -1
  15. package/dist/components/primitives.js +13 -13
  16. package/dist/components/properties.d.ts +2 -2
  17. package/dist/components/properties.js +14 -14
  18. package/dist/components/sdk.d.ts +2 -2
  19. package/dist/components/sdk.js +13 -13
  20. package/dist/components/sidebar.d.ts +1 -1
  21. package/dist/components/sidebar.js +13 -13
  22. package/dist/components/snippets.d.ts +4 -4
  23. package/dist/components/snippets.js +14 -14
  24. package/dist/contexts/component-generics.d.ts +1 -1
  25. package/dist/contexts/component-generics.js +1 -1
  26. package/dist/contexts/component-types.d.ts +11 -11
  27. package/dist/contexts/component.d.ts +14 -14
  28. package/dist/contexts/component.js +13 -13
  29. package/dist/contexts/docs.d.ts +1 -1
  30. package/dist/contexts/docs.js +1 -1
  31. package/dist/contexts/index.d.ts +18 -18
  32. package/dist/contexts/index.js +13 -13
  33. package/dist/contexts/markdown.d.ts +1 -1
  34. package/dist/contexts/markdown.js +2 -2
  35. package/dist/contexts/navigation.d.ts +2 -2
  36. package/dist/contexts/navigation.js +1 -1
  37. package/dist/contexts/search.d.ts +3 -3
  38. package/dist/contexts/search.js +13 -13
  39. package/dist/contexts/use-components.d.ts +10 -10
  40. package/dist/contexts/use-components.js +2 -2
  41. package/dist/{contexts-2HSNy-rE.js → contexts-HUUrbJAJ.js} +83 -91
  42. package/dist/{docs-BvahWQ28.d.ts → docs-OpxXmURB.d.ts} +4 -3
  43. package/dist/{icons-yb-Jhkmg.js → icons-Ckod9aod.js} +117 -1
  44. package/dist/{index-BYYbjUs7.d.ts → index-BhNE0nV0.d.ts} +9 -9
  45. package/dist/{index--xwumGAy.d.ts → index-Ck2YxPj3.d.ts} +6 -6
  46. package/dist/{index-C6aGoMyw.d.ts → index-CkgJvy8B.d.ts} +26 -26
  47. package/dist/index.d.ts +20 -20
  48. package/dist/index.js +13 -13
  49. package/dist/languages/go.d.ts +11 -11
  50. package/dist/languages/go.js +13 -13
  51. package/dist/languages/http.d.ts +11 -11
  52. package/dist/languages/http.js +13 -13
  53. package/dist/languages/index.d.ts +11 -11
  54. package/dist/languages/index.js +13 -13
  55. package/dist/languages/java.d.ts +11 -11
  56. package/dist/languages/java.js +13 -13
  57. package/dist/languages/python.d.ts +11 -11
  58. package/dist/languages/python.js +13 -13
  59. package/dist/languages/ruby.d.ts +11 -11
  60. package/dist/languages/ruby.js +13 -13
  61. package/dist/languages/typescript.d.ts +11 -11
  62. package/dist/languages/typescript.js +13 -13
  63. package/dist/markdown/index.d.ts +3 -3
  64. package/dist/markdown/index.js +13 -13
  65. package/dist/markdown/md.js +1 -1
  66. package/dist/markdown/utils.d.ts +3 -3
  67. package/dist/markdown/utils.js +1 -1
  68. package/dist/{markdown-R3kFvQtF.d.ts → markdown-Ck30kC3p.d.ts} +2 -2
  69. package/dist/{markdown-Diyg-eof.js → markdown-sJ2VePdG.js} +1 -1
  70. package/dist/{method-DigRMq69.d.ts → method-BpjXzDDH.d.ts} +7 -7
  71. package/dist/{navigation-qVV3i91K.d.ts → navigation-D4bzWy1c.d.ts} +3 -3
  72. package/dist/{overview-CAseV8q5.d.ts → overview-B24Fc4cH.d.ts} +6 -6
  73. package/dist/{primitives-DKSwbXPi.d.ts → primitives-DwXr-yo5.d.ts} +11 -13
  74. package/dist/{properties-CqXos0BH.d.ts → properties-wSrkbEk2.d.ts} +13 -5
  75. package/dist/{routing-DNN8R6bZ.d.ts → routing-Bcos-Z2q.d.ts} +2 -2
  76. package/dist/{routing-qs2YNG9o.js → routing-GrDalgAW.js} +7 -3
  77. package/dist/routing.d.ts +1 -1
  78. package/dist/routing.js +1 -1
  79. package/dist/{sdk-Rlr-Kw5_.d.ts → sdk-CDNNOl31.d.ts} +14 -15
  80. package/dist/search/index.d.ts +6 -6
  81. package/dist/search/index.js +15 -15
  82. package/dist/search/mcp.d.ts +13 -0
  83. package/dist/search/mcp.js +45 -0
  84. package/dist/search/providers/algolia.d.ts +2 -2
  85. package/dist/search/providers/algolia.js +13 -13
  86. package/dist/search/providers/fuse.d.ts +2 -2
  87. package/dist/search/providers/fuse.js +13 -13
  88. package/dist/search/providers/pagefind.d.ts +2 -2
  89. package/dist/search/providers/pagefind.js +1 -1
  90. package/dist/search/providers/walker.d.ts +2 -2
  91. package/dist/search/providers/walker.js +13 -13
  92. package/dist/search/types.d.ts +2 -2
  93. package/dist/search/types.js +1 -1
  94. package/dist/{search-1-mboDcE.d.ts → search-Dbhp1LKw.d.ts} +3 -3
  95. package/dist/{sidebar-C1v1VnyN.d.ts → sidebar-BzEJezB8.d.ts} +5 -5
  96. package/dist/{snippets-CmrvrMkn.d.ts → snippets-BFLGJy-C.d.ts} +13 -8
  97. package/dist/spec.d.ts +3 -3
  98. package/dist/spec.js +2 -2
  99. package/dist/{style-BhhgPVF6.js → style-B-5NIls4.js} +4 -0
  100. package/dist/{style-p4qTfnmO.d.ts → style-BJCwZ-Wf.d.ts} +4 -0
  101. package/dist/style.d.ts +1 -1
  102. package/dist/style.js +1 -1
  103. package/dist/styles/main.css +11 -8
  104. package/dist/styles/primitives.css +37 -2
  105. package/dist/styles.css +48 -10
  106. package/dist/{types-BSnSUlkN.d.ts → types-1rnoIVpZ.d.ts} +1 -1
  107. package/dist/{use-components-BHEwm0mE.js → use-components-DG6NAdUT.js} +1 -1
  108. package/dist/{utils-FnJ4tyuN.js → utils-CqR0JQ5q.js} +2 -2
  109. package/dist/{utils-C5oXAzyN.d.ts → utils-gEMvF6KH.d.ts} +2 -2
  110. package/dist/utils.d.ts +1 -1
  111. package/dist/utils.js +2 -2
  112. package/package.json +4 -4
  113. /package/dist/{breadcrumbs-BWIz-BrA.d.ts → breadcrumbs-ChGb9Ckx.d.ts} +0 -0
  114. /package/dist/{chunk-Bf_Gc_jT.js → chunk-KfF3XP4c.js} +0 -0
  115. /package/dist/{component-generics-D3ybuN5r.js → component-generics-4gg5TFK4.js} +0 -0
  116. /package/dist/{docs-CopwX9a7.js → docs-C2xNNHgT.js} +0 -0
  117. /package/dist/{md-DxiV1_vy.js → md-Ce-Zhp9O.js} +0 -0
  118. /package/dist/{navigation-CGr5_w6z.js → navigation-BrIapKIN.js} +0 -0
  119. /package/dist/{pagefind-BaK1krMe.js → pagefind-CKBforii.js} +0 -0
  120. /package/dist/{types-u0fUIalc.js → types-Ci-27DYJ.js} +0 -0
  121. /package/dist/{utils-D43p_yTd.d.ts → utils-CI9byvCc.d.ts} +0 -0
  122. /package/dist/{utils-Jo_o4DX9.js → utils-jPbBiaDE.js} +0 -0
@@ -250,7 +250,8 @@
250
250
  }
251
251
  }
252
252
 
253
- .stldocs-property-description {
253
+ .stldocs-property-description,
254
+ .stldocs-property-title {
254
255
  font-size: var(--stl-typography-scale-sm);
255
256
  color: var(--stl-color-foreground-reduced);
256
257
 
@@ -541,7 +542,7 @@
541
542
  .stldocs-snippet {
542
543
  top: calc(var(--sl-nav-height) + 1rem);
543
544
  position: sticky;
544
- z-index: 10;
545
+ z-index: 5;
545
546
  border-radius: 16px;
546
547
  background-color: transparent;
547
548
  padding: 0;
@@ -549,6 +550,8 @@
549
550
  font-family: var(--stl-typography-font-mono);
550
551
 
551
552
  .stldocs-snippet-request {
553
+ background-color: var(--stl-color-background);
554
+ --shiki-background: var(--stl-color-background);
552
555
  border: 1px solid var(--stl-color-border);
553
556
  border-radius: 12px;
554
557
  position: relative;
@@ -570,13 +573,15 @@
570
573
  padding: 0.5rem;
571
574
  padding-left: 1rem;
572
575
  gap: 0.5rem;
576
+ font-family: var(--stl-typography-font);
573
577
 
574
578
  .stldocs-snippet-request-title-method {
575
579
  flex-grow: 1;
576
580
  min-width: 0;
577
581
  }
578
582
 
579
- > div {
583
+ .stldocs-snippet-request-title-method,
584
+ .stldocs-snippet-request-title-content {
580
585
  display: flex;
581
586
  gap: 0.5rem;
582
587
  align-items: center;
@@ -662,6 +667,8 @@
662
667
  line-height: 1.75;
663
668
  transition: height 240ms ease;
664
669
  will-change: height;
670
+ font-size: var(--stl-typography-text-code);
671
+ scrollbar-color: var(--stl-color-border) transparent;
665
672
 
666
673
  .shiki {
667
674
  padding: 1rem;
@@ -680,6 +687,7 @@
680
687
  opacity: 0.5;
681
688
  display: inline-flex;
682
689
  width: 1rem;
690
+ text-align: right;
683
691
  }
684
692
 
685
693
  &.ellipsis {
@@ -881,11 +889,6 @@
881
889
  background-color: var(--stl-color-faint-background);
882
890
  border: 1px solid var(--stl-color-border);
883
891
 
884
- .stldocs-snippet-request {
885
- background-color: var(--stl-color-background);
886
- --shiki-background: var(--stl-color-background);
887
- }
888
-
889
892
  .stldocs-snippet-response {
890
893
  display: block;
891
894
  }
@@ -254,27 +254,62 @@
254
254
 
255
255
  .stldocs-root .stldocs-input {
256
256
  border: 1px solid var(--stl-color-border);
257
+ background: var(--stl-color-background);
257
258
  border-radius: 0.3rem;
258
- padding: 0.5rem;
259
259
  display: flex;
260
260
  gap: 0.5rem;
261
261
 
262
- input {
262
+ &:focus-within {
263
+ border-color: var(--stl-color-accent);
264
+ }
265
+
266
+ input,
267
+ .stldocs-masked-input-display {
263
268
  flex-grow: 1;
264
269
  border: none;
265
270
  background-color: transparent;
271
+ margin: 0.5rem;
272
+ font-size: 0.85rem;
273
+ letter-spacing: initial;
274
+ white-space: pre;
275
+ contain: content;
276
+ padding: 0;
266
277
 
267
278
  &:focus {
268
279
  outline: none;
269
280
  }
270
281
  }
271
282
 
283
+ &:focus-within .stldocs-masked-input-display,
284
+ &:not(:focus-within) input {
285
+ opacity: 0;
286
+ }
287
+
288
+ .stldocs-masked-input-obscured {
289
+ -webkit-text-stroke: currentColor 0.2em;
290
+ }
291
+
272
292
  .stldocs-icon {
273
293
  margin-top: auto;
274
294
  margin-bottom: auto;
275
295
  }
276
296
  }
277
297
 
298
+ .stldocs-root .stldocs-masked-input-wrapper {
299
+ display: flex;
300
+ flex-grow: 1;
301
+ position: relative;
302
+ font-family: var(--stl-typography-font-mono);
303
+ }
304
+
305
+ .stldocs-root .stldocs-masked-input-display {
306
+ position: absolute;
307
+ inset: 0;
308
+ display: flex;
309
+ align-items: center;
310
+ pointer-events: none; /* so you can click through to the real input */
311
+ }
312
+
278
313
  .stldocs-root .stldocs-listview {
279
314
  overflow-y: scroll;
280
315
 
package/dist/styles.css CHANGED
@@ -318,27 +318,62 @@
318
318
 
319
319
  .stldocs-root .stldocs-input {
320
320
  border: 1px solid var(--stl-color-border);
321
+ background: var(--stl-color-background);
321
322
  border-radius: 0.3rem;
322
- padding: 0.5rem;
323
323
  display: flex;
324
324
  gap: 0.5rem;
325
325
 
326
- input {
326
+ &:focus-within {
327
+ border-color: var(--stl-color-accent);
328
+ }
329
+
330
+ input,
331
+ .stldocs-masked-input-display {
327
332
  flex-grow: 1;
328
333
  border: none;
329
334
  background-color: transparent;
335
+ margin: 0.5rem;
336
+ font-size: 0.85rem;
337
+ letter-spacing: initial;
338
+ white-space: pre;
339
+ contain: content;
340
+ padding: 0;
330
341
 
331
342
  &:focus {
332
343
  outline: none;
333
344
  }
334
345
  }
335
346
 
347
+ &:focus-within .stldocs-masked-input-display,
348
+ &:not(:focus-within) input {
349
+ opacity: 0;
350
+ }
351
+
352
+ .stldocs-masked-input-obscured {
353
+ -webkit-text-stroke: currentColor 0.2em;
354
+ }
355
+
336
356
  .stldocs-icon {
337
357
  margin-top: auto;
338
358
  margin-bottom: auto;
339
359
  }
340
360
  }
341
361
 
362
+ .stldocs-root .stldocs-masked-input-wrapper {
363
+ display: flex;
364
+ flex-grow: 1;
365
+ position: relative;
366
+ font-family: var(--stl-typography-font-mono);
367
+ }
368
+
369
+ .stldocs-root .stldocs-masked-input-display {
370
+ position: absolute;
371
+ inset: 0;
372
+ display: flex;
373
+ align-items: center;
374
+ pointer-events: none; /* so you can click through to the real input */
375
+ }
376
+
342
377
  .stldocs-root .stldocs-listview {
343
378
  overflow-y: scroll;
344
379
 
@@ -707,7 +742,8 @@
707
742
  }
708
743
  }
709
744
 
710
- .stldocs-property-description {
745
+ .stldocs-property-description,
746
+ .stldocs-property-title {
711
747
  font-size: var(--stl-typography-scale-sm);
712
748
  color: var(--stl-color-foreground-reduced);
713
749
 
@@ -998,7 +1034,7 @@
998
1034
  .stldocs-snippet {
999
1035
  top: calc(var(--sl-nav-height) + 1rem);
1000
1036
  position: sticky;
1001
- z-index: 10;
1037
+ z-index: 5;
1002
1038
  border-radius: 16px;
1003
1039
  background-color: transparent;
1004
1040
  padding: 0;
@@ -1006,6 +1042,8 @@
1006
1042
  font-family: var(--stl-typography-font-mono);
1007
1043
 
1008
1044
  .stldocs-snippet-request {
1045
+ background-color: var(--stl-color-background);
1046
+ --shiki-background: var(--stl-color-background);
1009
1047
  border: 1px solid var(--stl-color-border);
1010
1048
  border-radius: 12px;
1011
1049
  position: relative;
@@ -1027,13 +1065,15 @@
1027
1065
  padding: 0.5rem;
1028
1066
  padding-left: 1rem;
1029
1067
  gap: 0.5rem;
1068
+ font-family: var(--stl-typography-font);
1030
1069
 
1031
1070
  .stldocs-snippet-request-title-method {
1032
1071
  flex-grow: 1;
1033
1072
  min-width: 0;
1034
1073
  }
1035
1074
 
1036
- > div {
1075
+ .stldocs-snippet-request-title-method,
1076
+ .stldocs-snippet-request-title-content {
1037
1077
  display: flex;
1038
1078
  gap: 0.5rem;
1039
1079
  align-items: center;
@@ -1119,6 +1159,8 @@
1119
1159
  line-height: 1.75;
1120
1160
  transition: height 240ms ease;
1121
1161
  will-change: height;
1162
+ font-size: var(--stl-typography-text-code);
1163
+ scrollbar-color: var(--stl-color-border) transparent;
1122
1164
 
1123
1165
  .shiki {
1124
1166
  padding: 1rem;
@@ -1137,6 +1179,7 @@
1137
1179
  opacity: 0.5;
1138
1180
  display: inline-flex;
1139
1181
  width: 1rem;
1182
+ text-align: right;
1140
1183
  }
1141
1184
 
1142
1185
  &.ellipsis {
@@ -1338,11 +1381,6 @@
1338
1381
  background-color: var(--stl-color-faint-background);
1339
1382
  border: 1px solid var(--stl-color-border);
1340
1383
 
1341
- .stldocs-snippet-request {
1342
- background-color: var(--stl-color-background);
1343
- --shiki-background: var(--stl-color-background);
1344
- }
1345
-
1346
1384
  .stldocs-snippet-response {
1347
1385
  display: block;
1348
1386
  }
@@ -1,4 +1,4 @@
1
- import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
1
+ import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
2
2
  import * as SDKJSON from "@stainless/sdk-json";
3
3
 
4
4
  //#region src/search/types.d.ts
@@ -1,4 +1,4 @@
1
- import { i as useComponents } from "./component-generics-D3ybuN5r.js";
1
+ import { i as useComponents } from "./component-generics-4gg5TFK4.js";
2
2
 
3
3
  //#region src/contexts/use-components.tsx
4
4
  const useComponents$1 = () => useComponents();
@@ -1,5 +1,5 @@
1
- import { t as __export } from "./chunk-Bf_Gc_jT.js";
2
- import { f as parseStainlessPath } from "./routing-qs2YNG9o.js";
1
+ import { t as __export } from "./chunk-KfF3XP4c.js";
2
+ import { f as parseStainlessPath } from "./routing-GrDalgAW.js";
3
3
 
4
4
  //#region src/utils.ts
5
5
  var utils_exports = /* @__PURE__ */ __export({
@@ -1,5 +1,5 @@
1
- import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
2
- import { C as TransformRequestSnippetFn } from "./sdk-Rlr-Kw5_.js";
1
+ import { t as DocsLanguage } from "./routing-Bcos-Z2q.js";
2
+ import { C as TransformRequestSnippetFn } from "./sdk-CDNNOl31.js";
3
3
  import * as SDKJSON from "@stainless/sdk-json";
4
4
 
5
5
  //#region src/markdown/utils.d.ts
package/dist/utils.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-D43p_yTd.js";
1
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-CI9byvCc.js";
2
2
  export { flatResources, getResourceFromSpec, isResourceEmpty };
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./routing-qs2YNG9o.js";
2
- import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-FnJ4tyuN.js";
1
+ import "./routing-GrDalgAW.js";
2
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-CqR0JQ5q.js";
3
3
 
4
4
  export { flatResources, getResourceFromSpec, isResourceEmpty };
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.44",
4
+ "version": "0.1.0-beta.46",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -20,11 +20,11 @@
20
20
  "fuse.js": "^7.1.0",
21
21
  "htmlparser2": "^10.0.0",
22
22
  "lucide-react": "^0.555.0",
23
- "@stainless-api/ui-primitives": "0.1.0-beta.32"
23
+ "@stainless-api/ui-primitives": "0.1.0-beta.35"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "24.10.1",
27
- "@types/react": "^19.2.7",
27
+ "@types/react": "19.2.7",
28
28
  "@types/react-dom": "^19.2.3",
29
29
  "dotenv": "17.2.3",
30
30
  "react": "^19.2.1",
@@ -32,7 +32,7 @@
32
32
  "tsdown": "^0.16.8",
33
33
  "typescript": "5.9.3",
34
34
  "@stainless/eslint-config": "0.1.0-beta.0",
35
- "@stainless/sdk-json": "^0.1.0-beta.0"
35
+ "@stainless/sdk-json": "^0.1.0-beta.1"
36
36
  },
37
37
  "exports": {
38
38
  ".": {
File without changes
File without changes
File without changes
File without changes
File without changes