@stainless-api/docs-ui 0.1.0-beta.57 → 0.1.0-beta.59
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/{breadcrumbs-CCViAnPI.js → breadcrumbs-85Y-pybq.js} +3 -3
- package/dist/{breadcrumbs-BFCcsaL5.d.ts → breadcrumbs-D1pqkQVq.d.ts} +4 -4
- package/dist/cli-CoLvH9jq.js +157 -0
- package/dist/{component-2IFa97aV.js → component-CF9lLzZX.js} +3 -3
- package/dist/{component-generics-Dbwqv7EL.d.ts → component-generics-CIV4pVmh.d.ts} +2 -2
- package/dist/components/MaskedInput.d.ts +3 -3
- package/dist/components/MaskedInput.js +1 -1
- package/dist/components/breadcrumbs.d.ts +1 -1
- package/dist/components/breadcrumbs.js +7 -7
- package/dist/components/icons.d.ts +17 -12
- package/dist/components/icons.js +2 -2
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +17 -17
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +8 -8
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +9 -9
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +6 -6
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +7 -7
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +8 -8
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +7 -7
- package/dist/components/snippets.d.ts +3 -3
- package/dist/components/snippets.js +8 -8
- package/dist/{components-B6opXKh2.js → components-Bz5h0Y4x.js} +10 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-generics.js +1 -1
- package/dist/contexts/component-types.d.ts +10 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/component.js +26 -25
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +1 -1
- package/dist/contexts/index.d.ts +16 -16
- package/dist/contexts/index.js +5 -5
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/markdown.js +2 -2
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/navigation.js +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/contexts/use-components.js +2 -2
- package/dist/{contexts-CLpvBI91.js → contexts-DZfPd182.js} +5 -5
- package/dist/{csharp-Cs2V5Q49.js → csharp-BbNnLZWW.js} +10 -10
- package/dist/{docs-BQbH-a6R.d.ts → docs-BVs5MLfL.d.ts} +6 -7
- package/dist/{go-jtKybF5f.js → go-OFa_5xje.js} +4 -4
- package/dist/{http-ByTnZCdl.js → http-olFAYLFq.js} +8 -7
- package/dist/{icons-Ckod9aod.js → icons-DMkAA03z.js} +17 -1
- package/dist/index-BHy63Zur.d.ts +302 -0
- package/dist/index-Ct7H30x1.d.ts +1691 -0
- package/dist/{index-CxTvYsqI.d.ts → index-JJET_1EX.d.ts} +9 -9
- package/dist/index.d.ts +15 -15
- package/dist/index.js +28 -27
- package/dist/{java-CSfLt_jp.js → java-Bw0o13Wk.js} +5 -5
- package/dist/languages/cli.d.ts +11 -0
- package/dist/languages/cli.js +20 -0
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/csharp.js +7 -7
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +7 -7
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +17 -17
- package/dist/languages/index.d.ts +11 -11
- package/dist/languages/index.js +26 -25
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +7 -7
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +7 -7
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +7 -7
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +7 -7
- package/dist/languages-DW_T-Th6.js +28 -0
- package/dist/markdown/index.d.ts +5 -5
- package/dist/markdown/index.js +26 -25
- package/dist/markdown/md.js +2 -2
- package/dist/markdown/printer.d.ts +6 -6
- package/dist/markdown/printer.js +42 -40
- package/dist/markdown/utils.d.ts +5 -5
- package/dist/{markdown-V_bNKjle.d.ts → markdown-BXDwR9bo.d.ts} +2 -2
- package/dist/{markdown-CxdeWgjV.js → markdown-ZzVcn4kq.js} +3 -2
- package/dist/{method-CD_dwBsB.d.ts → method-B-AEMp1G.d.ts} +6 -6
- package/dist/{method-BPsNdtwS.js → method-Dktsfckf.js} +3 -3
- package/dist/{navigation-BlOvTCTX.d.ts → navigation-CEMwVe3s.d.ts} +3 -3
- package/dist/{overview-CVTaIlP6.d.ts → overview-BzJqrxc6.d.ts} +11 -11
- package/dist/{overview-BslKVsRE.js → overview-EkRigi6e.js} +11 -11
- package/dist/{primitives-CCj2Pn-o.js → primitives-BVaiiY63.js} +7 -7
- package/dist/{primitives-Da9sUCQo.d.ts → primitives-CDxnkX_O.d.ts} +12 -11
- package/dist/{properties-DhttBLpf.js → properties-BHvUHbcf.js} +3 -3
- package/dist/{properties-CEjSSMRr.d.ts → properties-fAurDGW2.d.ts} +5 -5
- package/dist/{python-BU7eaJMy.js → python-D8NWX7Cb.js} +4 -4
- package/dist/{routing-CUnVDpU-.d.ts → routing-BifRCZt4.d.ts} +7 -7
- package/dist/{routing-Dl0FprK1.js → routing-Fzn1XfX_.js} +7 -4
- package/dist/routing.d.ts +1 -1
- package/dist/routing.js +1 -1
- package/dist/{ruby-LiJ6VW-R.js → ruby-DOUaLhKJ.js} +5 -5
- package/dist/{sdk-CbNqFzOI.js → sdk-DrK2bq-v.js} +11 -9
- package/dist/{sdk-CenwRRXT.d.ts → sdk-DwyhWkhn.d.ts} +22 -22
- package/dist/{sidebar-ZNWRDHyv.js → sidebar-BLGIKgRI.js} +5 -5
- package/dist/{sidebar-CcX4PdH0.d.ts → sidebar-BbCq6Ibl.d.ts} +9 -9
- package/dist/{snippets-CO4kIovz.js → snippets-D4VhtZIC.js} +38 -36
- package/dist/snippets-VclrBnJJ.d.ts +53 -0
- package/dist/spec.d.ts +26 -26
- package/dist/spec.js +2 -2
- package/dist/{style-Vk87Pfuy.js → style-TeAZuiHh.js} +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/style.js +1 -1
- package/dist/styles/main.css +34 -15
- package/dist/styles/primitives.css +2 -1
- package/dist/styles/resets.css +1 -1
- package/dist/styles.css +37 -17
- package/dist/{typescript-C8J1uyak.js → typescript-DDa446mB.js} +6 -6
- package/dist/{use-components-DBx5LZk0.js → use-components-Dbin0y07.js} +1 -1
- package/dist/{utils-C12Fme2N.js → utils-BoRmEFRn.js} +2 -2
- package/dist/utils.d.ts +6 -6
- package/dist/utils.js +1 -1
- package/package.json +4 -4
- package/dist/breadcrumbs-DTHE6aca.d.ts +0 -25
- package/dist/component-generics-CXfH4VNh.d.ts +0 -30
- package/dist/docs-AUJrRqst.d.ts +0 -47
- package/dist/index-Bk5AWxiZ.d.ts +0 -274
- package/dist/index-CBfCrZxK.d.ts +0 -15
- package/dist/index-DUvl24AZ.d.ts +0 -274
- package/dist/languages-X8bJZjuW.js +0 -26
- package/dist/markdown-CqEZJJrZ.d.ts +0 -22
- package/dist/method-CkGKALRi.d.ts +0 -59
- package/dist/navigation-CXQA2RZo.d.ts +0 -29
- package/dist/overview-DFrenwhf.d.ts +0 -39
- package/dist/primitives-DiDzLHoK.d.ts +0 -104
- package/dist/properties-CXDSYNGL.d.ts +0 -54
- package/dist/sdk-CL6r5JlK.d.ts +0 -118
- package/dist/sidebar-BDwx6h14.d.ts +0 -36
- package/dist/snippets-DePfv2T6.d.ts +0 -51
- package/dist/snippets-ykHHsG1B.d.ts +0 -51
- /package/dist/{chunk-CAbhIZi1.js → chunk-Du3t87LU.js} +0 -0
- /package/dist/{component-generics-B6Fn47Mz.js → component-generics-CmIGbBLq.js} +0 -0
- /package/dist/{docs-CXqi26jB.js → docs-Bw-eLYjA.js} +0 -0
- /package/dist/{navigation-C5TN0SgC.js → navigation-By1sQl6M.js} +0 -0
package/dist/styles/main.css
CHANGED
|
@@ -212,18 +212,26 @@
|
|
|
212
212
|
color: var(--stl-color-red-foreground);
|
|
213
213
|
font-size: var(--stl-typography-scale-sm);
|
|
214
214
|
}
|
|
215
|
-
|
|
216
215
|
.stldocs-property-declaration {
|
|
217
216
|
white-space: nowrap;
|
|
218
217
|
overflow: hidden;
|
|
219
218
|
text-overflow: ellipsis;
|
|
220
|
-
flex: 1;
|
|
221
219
|
min-width: 0;
|
|
220
|
+
max-width: max-content;
|
|
221
|
+
border-radius: var(--stl-ui-layout-border-radius-xs);
|
|
222
|
+
padding-inline: var(--stl-ui-layout-border-radius-xs);
|
|
223
|
+
margin-left: calc(-1 * var(--stl-ui-layout-border-radius-xs));
|
|
224
|
+
background-color: transparent;
|
|
225
|
+
transition: 0.1s background-color ease;
|
|
222
226
|
|
|
223
227
|
.stldocs-property-deprecated {
|
|
224
228
|
margin-right: 0.44rem;
|
|
225
229
|
}
|
|
226
230
|
}
|
|
231
|
+
.stldocs-property-info:is(:target, .stldocs-property-highlighted) .stldocs-property-declaration {
|
|
232
|
+
background-color: var(--stl-color-accent-muted-background);
|
|
233
|
+
transition: 0.1s background-color ease;
|
|
234
|
+
}
|
|
227
235
|
|
|
228
236
|
.stldocs-property-description,
|
|
229
237
|
.stldocs-property-title {
|
|
@@ -518,12 +526,17 @@
|
|
|
518
526
|
top: calc(var(--sl-nav-height) + 1rem);
|
|
519
527
|
position: sticky;
|
|
520
528
|
z-index: 5;
|
|
521
|
-
|
|
522
|
-
background-color: transparent;
|
|
523
|
-
padding: 0;
|
|
529
|
+
|
|
524
530
|
font-size: var(--stl-typography-scale-sm);
|
|
525
531
|
font-family: var(--stl-typography-font-mono);
|
|
526
532
|
|
|
533
|
+
padding: 0.5rem;
|
|
534
|
+
border-radius: calc(12px + 0.5rem);
|
|
535
|
+
display: flex;
|
|
536
|
+
flex-direction: column;
|
|
537
|
+
background-color: var(--stl-color-faint-background);
|
|
538
|
+
border: 1px solid var(--stl-color-border-faint);
|
|
539
|
+
|
|
527
540
|
.stldocs-snippet-request {
|
|
528
541
|
background-color: var(--stl-color-background);
|
|
529
542
|
--shiki-background: var(--stl-color-background);
|
|
@@ -562,7 +575,7 @@
|
|
|
562
575
|
align-items: center;
|
|
563
576
|
}
|
|
564
577
|
|
|
565
|
-
|
|
578
|
+
h3 {
|
|
566
579
|
font-weight: 500;
|
|
567
580
|
font-style: normal;
|
|
568
581
|
line-height: 100%;
|
|
@@ -617,6 +630,10 @@
|
|
|
617
630
|
&.stldocs-snippet-response-pane-active {
|
|
618
631
|
display: block;
|
|
619
632
|
}
|
|
633
|
+
|
|
634
|
+
.stldocs-snippet-code {
|
|
635
|
+
padding: 0;
|
|
636
|
+
}
|
|
620
637
|
}
|
|
621
638
|
|
|
622
639
|
.stldocs-snippet-response {
|
|
@@ -645,8 +662,12 @@
|
|
|
645
662
|
will-change: height;
|
|
646
663
|
scrollbar-color: var(--stl-color-border) transparent;
|
|
647
664
|
|
|
665
|
+
pre,
|
|
648
666
|
.shiki {
|
|
649
|
-
|
|
667
|
+
margin: 0;
|
|
668
|
+
padding: 0;
|
|
669
|
+
width: max-content;
|
|
670
|
+
min-width: 100%;
|
|
650
671
|
}
|
|
651
672
|
|
|
652
673
|
pre.shiki {
|
|
@@ -673,6 +694,11 @@
|
|
|
673
694
|
}
|
|
674
695
|
}
|
|
675
696
|
|
|
697
|
+
.stldocs-snippet-footer {
|
|
698
|
+
border-top: 1px solid var(--stl-color-border);
|
|
699
|
+
padding: 0.5rem;
|
|
700
|
+
}
|
|
701
|
+
|
|
676
702
|
.stldocs-snippet-response-tab {
|
|
677
703
|
display: flex;
|
|
678
704
|
gap: 0.5rem;
|
|
@@ -807,7 +833,6 @@
|
|
|
807
833
|
}
|
|
808
834
|
}
|
|
809
835
|
|
|
810
|
-
/* Media Queries */
|
|
811
836
|
@media (min-width: 1280px) {
|
|
812
837
|
.stldocs-root .stldocs-method.stldocs-method-double-pane {
|
|
813
838
|
.stldocs-method-example {
|
|
@@ -858,12 +883,6 @@
|
|
|
858
883
|
grid-template-rows: unset;
|
|
859
884
|
|
|
860
885
|
.stldocs-snippet {
|
|
861
|
-
padding: 0.5rem;
|
|
862
|
-
display: flex;
|
|
863
|
-
flex-direction: column;
|
|
864
|
-
background-color: var(--stl-color-faint-background);
|
|
865
|
-
border: 1px solid var(--stl-color-border);
|
|
866
|
-
|
|
867
886
|
.stldocs-snippet-response {
|
|
868
887
|
display: block;
|
|
869
888
|
}
|
|
@@ -881,7 +900,7 @@
|
|
|
881
900
|
position: absolute;
|
|
882
901
|
top: calc(-0.5rem);
|
|
883
902
|
left: -1rem;
|
|
884
|
-
background-color: var(--stl-color-border);
|
|
903
|
+
background-color: var(--stl-color-border-faint);
|
|
885
904
|
}
|
|
886
905
|
}
|
|
887
906
|
|
package/dist/styles/resets.css
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
/* Markdown content should get prose styling */
|
|
19
|
-
:where(h1, h2, h3, h4, h5):not(.stldocs-markdown, .stldocs-markdown *) {
|
|
19
|
+
:where(h1, h2, h3, h4, h5):where(:not(.stldocs-markdown, .stldocs-markdown *)) {
|
|
20
20
|
display: block;
|
|
21
21
|
color: var(--stl-color-foreground);
|
|
22
22
|
font-weight: 500;
|
package/dist/styles.css
CHANGED
|
@@ -1342,7 +1342,7 @@ a.stl-ui-button {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
1344
|
/* Markdown content should get prose styling */
|
|
1345
|
-
:where(h1, h2, h3, h4, h5):not(.stldocs-markdown, .stldocs-markdown *) {
|
|
1345
|
+
:where(h1, h2, h3, h4, h5):where(:not(.stldocs-markdown, .stldocs-markdown *)) {
|
|
1346
1346
|
display: block;
|
|
1347
1347
|
color: var(--stl-color-foreground);
|
|
1348
1348
|
font-weight: 500;
|
|
@@ -1482,7 +1482,8 @@ a.stl-ui-button {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
1484
|
|
|
1485
|
-
[data-stldocs-language='http']
|
|
1485
|
+
[data-stldocs-language='http'],
|
|
1486
|
+
[data-stldocs-language='cli'] {
|
|
1486
1487
|
.stldocs-property-type,
|
|
1487
1488
|
.stldocs-property-declaration {
|
|
1488
1489
|
.stldocs-truncation,
|
|
@@ -2037,18 +2038,26 @@ a.stl-ui-button {
|
|
|
2037
2038
|
color: var(--stl-color-red-foreground);
|
|
2038
2039
|
font-size: var(--stl-typography-scale-sm);
|
|
2039
2040
|
}
|
|
2040
|
-
|
|
2041
2041
|
.stldocs-property-declaration {
|
|
2042
2042
|
white-space: nowrap;
|
|
2043
2043
|
overflow: hidden;
|
|
2044
2044
|
text-overflow: ellipsis;
|
|
2045
|
-
flex: 1;
|
|
2046
2045
|
min-width: 0;
|
|
2046
|
+
max-width: max-content;
|
|
2047
|
+
border-radius: var(--stl-ui-layout-border-radius-xs);
|
|
2048
|
+
padding-inline: var(--stl-ui-layout-border-radius-xs);
|
|
2049
|
+
margin-left: calc(-1 * var(--stl-ui-layout-border-radius-xs));
|
|
2050
|
+
background-color: transparent;
|
|
2051
|
+
transition: 0.1s background-color ease;
|
|
2047
2052
|
|
|
2048
2053
|
.stldocs-property-deprecated {
|
|
2049
2054
|
margin-right: 0.44rem;
|
|
2050
2055
|
}
|
|
2051
2056
|
}
|
|
2057
|
+
.stldocs-property-info:is(:target, .stldocs-property-highlighted) .stldocs-property-declaration {
|
|
2058
|
+
background-color: var(--stl-color-accent-muted-background);
|
|
2059
|
+
transition: 0.1s background-color ease;
|
|
2060
|
+
}
|
|
2052
2061
|
|
|
2053
2062
|
.stldocs-property-description,
|
|
2054
2063
|
.stldocs-property-title {
|
|
@@ -2343,12 +2352,17 @@ a.stl-ui-button {
|
|
|
2343
2352
|
top: calc(var(--sl-nav-height) + 1rem);
|
|
2344
2353
|
position: sticky;
|
|
2345
2354
|
z-index: 5;
|
|
2346
|
-
|
|
2347
|
-
background-color: transparent;
|
|
2348
|
-
padding: 0;
|
|
2355
|
+
|
|
2349
2356
|
font-size: var(--stl-typography-scale-sm);
|
|
2350
2357
|
font-family: var(--stl-typography-font-mono);
|
|
2351
2358
|
|
|
2359
|
+
padding: 0.5rem;
|
|
2360
|
+
border-radius: calc(12px + 0.5rem);
|
|
2361
|
+
display: flex;
|
|
2362
|
+
flex-direction: column;
|
|
2363
|
+
background-color: var(--stl-color-faint-background);
|
|
2364
|
+
border: 1px solid var(--stl-color-border-faint);
|
|
2365
|
+
|
|
2352
2366
|
.stldocs-snippet-request {
|
|
2353
2367
|
background-color: var(--stl-color-background);
|
|
2354
2368
|
--shiki-background: var(--stl-color-background);
|
|
@@ -2387,7 +2401,7 @@ a.stl-ui-button {
|
|
|
2387
2401
|
align-items: center;
|
|
2388
2402
|
}
|
|
2389
2403
|
|
|
2390
|
-
|
|
2404
|
+
h3 {
|
|
2391
2405
|
font-weight: 500;
|
|
2392
2406
|
font-style: normal;
|
|
2393
2407
|
line-height: 100%;
|
|
@@ -2442,6 +2456,10 @@ a.stl-ui-button {
|
|
|
2442
2456
|
&.stldocs-snippet-response-pane-active {
|
|
2443
2457
|
display: block;
|
|
2444
2458
|
}
|
|
2459
|
+
|
|
2460
|
+
.stldocs-snippet-code {
|
|
2461
|
+
padding: 0;
|
|
2462
|
+
}
|
|
2445
2463
|
}
|
|
2446
2464
|
|
|
2447
2465
|
.stldocs-snippet-response {
|
|
@@ -2470,8 +2488,12 @@ a.stl-ui-button {
|
|
|
2470
2488
|
will-change: height;
|
|
2471
2489
|
scrollbar-color: var(--stl-color-border) transparent;
|
|
2472
2490
|
|
|
2491
|
+
pre,
|
|
2473
2492
|
.shiki {
|
|
2474
|
-
|
|
2493
|
+
margin: 0;
|
|
2494
|
+
padding: 0;
|
|
2495
|
+
width: max-content;
|
|
2496
|
+
min-width: 100%;
|
|
2475
2497
|
}
|
|
2476
2498
|
|
|
2477
2499
|
pre.shiki {
|
|
@@ -2498,6 +2520,11 @@ a.stl-ui-button {
|
|
|
2498
2520
|
}
|
|
2499
2521
|
}
|
|
2500
2522
|
|
|
2523
|
+
.stldocs-snippet-footer {
|
|
2524
|
+
border-top: 1px solid var(--stl-color-border);
|
|
2525
|
+
padding: 0.5rem;
|
|
2526
|
+
}
|
|
2527
|
+
|
|
2501
2528
|
.stldocs-snippet-response-tab {
|
|
2502
2529
|
display: flex;
|
|
2503
2530
|
gap: 0.5rem;
|
|
@@ -2632,7 +2659,6 @@ a.stl-ui-button {
|
|
|
2632
2659
|
}
|
|
2633
2660
|
}
|
|
2634
2661
|
|
|
2635
|
-
/* Media Queries */
|
|
2636
2662
|
@media (min-width: 1280px) {
|
|
2637
2663
|
.stldocs-root .stldocs-method.stldocs-method-double-pane {
|
|
2638
2664
|
.stldocs-method-example {
|
|
@@ -2683,12 +2709,6 @@ a.stl-ui-button {
|
|
|
2683
2709
|
grid-template-rows: unset;
|
|
2684
2710
|
|
|
2685
2711
|
.stldocs-snippet {
|
|
2686
|
-
padding: 0.5rem;
|
|
2687
|
-
display: flex;
|
|
2688
|
-
flex-direction: column;
|
|
2689
|
-
background-color: var(--stl-color-faint-background);
|
|
2690
|
-
border: 1px solid var(--stl-color-border);
|
|
2691
|
-
|
|
2692
2712
|
.stldocs-snippet-response {
|
|
2693
2713
|
display: block;
|
|
2694
2714
|
}
|
|
@@ -2706,7 +2726,7 @@ a.stl-ui-button {
|
|
|
2706
2726
|
position: absolute;
|
|
2707
2727
|
top: calc(-0.5rem);
|
|
2708
2728
|
left: -1rem;
|
|
2709
|
-
background-color: var(--stl-color-border);
|
|
2729
|
+
background-color: var(--stl-color-border-faint);
|
|
2710
2730
|
}
|
|
2711
2731
|
}
|
|
2712
2732
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
-
import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-
|
|
3
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
4
|
-
import { t as useComponents } from "./use-components-
|
|
5
|
-
import { t as style_default } from "./style-
|
|
1
|
+
import { t as __exportAll } from "./chunk-Du3t87LU.js";
|
|
2
|
+
import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-Bw-eLYjA.js";
|
|
3
|
+
import { n as useLanguageComponents } from "./contexts-DZfPd182.js";
|
|
4
|
+
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
5
|
+
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -74,7 +74,7 @@ function TypePreview({ path }) {
|
|
|
74
74
|
const language = useLanguage();
|
|
75
75
|
const decl = useDeclaration(path, false);
|
|
76
76
|
const { Join } = useComponents();
|
|
77
|
-
if (!(decl && "children" in decl && decl.children && decl.children.length > 0) || decl && "type" in decl && "kind" in decl["type"] && decl["type"]["kind"] === "TSTypeUnion") return;
|
|
77
|
+
if (!(decl && "children" in decl && decl.children && decl.children.length > 0) || decl && "type" in decl && decl.type !== void 0 && "kind" in decl["type"] && decl["type"]["kind"] === "TSTypeUnion") return;
|
|
78
78
|
const items = decl.children.map((prop, key) => {
|
|
79
79
|
const p = spec?.decls?.[language]?.[prop];
|
|
80
80
|
return /* @__PURE__ */ jsx("span", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
-
import { f as parseStainlessPath } from "./routing-
|
|
1
|
+
import { t as __exportAll } from "./chunk-Du3t87LU.js";
|
|
2
|
+
import { f as parseStainlessPath } from "./routing-Fzn1XfX_.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils.ts
|
|
5
5
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { f as Resource, h as Spec } from "./index-Ct7H30x1.js";
|
|
2
2
|
|
|
3
3
|
//#region src/utils.d.ts
|
|
4
4
|
declare namespace utils_d_exports {
|
|
5
5
|
export { flatResources, getResourceFromSpec, isResourceEmpty };
|
|
6
6
|
}
|
|
7
|
-
declare function flatResources(resources: Record<string,
|
|
8
|
-
resource:
|
|
9
|
-
parents:
|
|
7
|
+
declare function flatResources(resources: Record<string, Resource> | undefined, parents: Resource[]): {
|
|
8
|
+
resource: Resource;
|
|
9
|
+
parents: Resource[];
|
|
10
10
|
}[];
|
|
11
|
-
declare function getResourceFromSpec(stainlessPath: string | string[], spec:
|
|
12
|
-
declare function isResourceEmpty(resource:
|
|
11
|
+
declare function getResourceFromSpec(stainlessPath: string | string[], spec: Spec): Resource | null;
|
|
12
|
+
declare function isResourceEmpty(resource: Resource): boolean;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { flatResources, getResourceFromSpec, isResourceEmpty, utils_d_exports as t };
|
package/dist/utils.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-
|
|
1
|
+
import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-BoRmEFRn.js";
|
|
2
2
|
|
|
3
3
|
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.
|
|
4
|
+
"version": "0.1.0-beta.59",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@stainless-api/ui-primitives": "0.1.0-beta.43"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "24.10.
|
|
24
|
+
"@types/node": "24.10.9",
|
|
25
25
|
"@types/react": "19.2.7",
|
|
26
26
|
"@types/react-dom": "^19.2.3",
|
|
27
27
|
"dotenv": "17.2.3",
|
|
28
28
|
"react": "^19.2.3",
|
|
29
29
|
"react-dom": "^19.2.3",
|
|
30
|
-
"tsdown": "^0.
|
|
30
|
+
"tsdown": "^0.20.0-beta.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.3"
|
|
34
34
|
},
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
|
-
|
|
4
|
-
//#region src/components/breadcrumbs.d.ts
|
|
5
|
-
type Breadcrumb = {
|
|
6
|
-
title: string;
|
|
7
|
-
href: string;
|
|
8
|
-
};
|
|
9
|
-
type BreadcrumbConfig = {
|
|
10
|
-
includeCurrentPage?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare function generateApiBreadcrumbs(fullPath: string, spec: any, basePath: string): Breadcrumb[] | null;
|
|
13
|
-
declare function SDKBreadcrumbs({
|
|
14
|
-
spec,
|
|
15
|
-
currentPath,
|
|
16
|
-
basePath,
|
|
17
|
-
config
|
|
18
|
-
}: {
|
|
19
|
-
spec: SDKJSON.Spec;
|
|
20
|
-
currentPath: string;
|
|
21
|
-
basePath?: string;
|
|
22
|
-
config?: BreadcrumbConfig | null;
|
|
23
|
-
}): react_jsx_runtime10.JSX.Element | null;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { generateApiBreadcrumbs as n, SDKBreadcrumbs as t };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/contexts/component-generics.d.ts
|
|
5
|
-
type DeepPartialMap<L> = { [K in keyof L]?: Partial<L[K]> };
|
|
6
|
-
type ComponentsContextType<C, L> = {
|
|
7
|
-
components: C;
|
|
8
|
-
language: L;
|
|
9
|
-
};
|
|
10
|
-
declare const useComponentContext: () => ComponentsContextType<any, any>;
|
|
11
|
-
declare function useComponents<C = unknown>(): C;
|
|
12
|
-
declare function customizeComponents<C, L>(defaults: {
|
|
13
|
-
components: C;
|
|
14
|
-
language: L;
|
|
15
|
-
}, overrides?: {
|
|
16
|
-
components?: Partial<C>;
|
|
17
|
-
language?: DeepPartialMap<L>;
|
|
18
|
-
}): {
|
|
19
|
-
components: C;
|
|
20
|
-
language: L;
|
|
21
|
-
};
|
|
22
|
-
declare function ComponentProvider<C, L>({
|
|
23
|
-
value,
|
|
24
|
-
children
|
|
25
|
-
}: {
|
|
26
|
-
value: ComponentsContextType<C, L>;
|
|
27
|
-
children: React$1.ReactNode;
|
|
28
|
-
}): react_jsx_runtime20.JSX.Element;
|
|
29
|
-
//#endregion
|
|
30
|
-
export { useComponents as a, useComponentContext as i, ComponentsContextType as n, customizeComponents as r, ComponentProvider as t };
|
package/dist/docs-AUJrRqst.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import * as React$1 from "react";
|
|
2
|
-
import * as react_jsx_runtime87 from "react/jsx-runtime";
|
|
3
|
-
import * as _stainless_sdk_json0 from "@stainless/sdk-json";
|
|
4
|
-
import { LanguageDeclNodes, Spec, SpecLanguage } from "@stainless/sdk-json";
|
|
5
|
-
|
|
6
|
-
//#region src/contexts/docs.d.ts
|
|
7
|
-
type ContentPanelLayout = 'double-pane' | 'single-pane';
|
|
8
|
-
type PropertySettingsType = {
|
|
9
|
-
types?: 'simple' | 'rich';
|
|
10
|
-
includeModelProperties?: boolean;
|
|
11
|
-
collapseDescription?: boolean;
|
|
12
|
-
showTitle?: boolean;
|
|
13
|
-
expandDepth?: number;
|
|
14
|
-
};
|
|
15
|
-
type DocsContextType = {
|
|
16
|
-
language: SpecLanguage;
|
|
17
|
-
spec: Spec | null;
|
|
18
|
-
settings?: {
|
|
19
|
-
properties?: PropertySettingsType;
|
|
20
|
-
contentPanelLayout?: ContentPanelLayout;
|
|
21
|
-
virtualExpanders?: boolean;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
declare function useDocs(): DocsContextType;
|
|
25
|
-
declare function useSpec(): Spec | null;
|
|
26
|
-
declare function useSettings(): {
|
|
27
|
-
properties?: PropertySettingsType;
|
|
28
|
-
contentPanelLayout?: ContentPanelLayout;
|
|
29
|
-
virtualExpanders?: boolean;
|
|
30
|
-
} | undefined;
|
|
31
|
-
declare function useSnippet(stainlessPath: string, language?: SpecLanguage, variant?: string): string | undefined;
|
|
32
|
-
type Declaration = LanguageDeclNodes[SpecLanguage];
|
|
33
|
-
declare function useDeclaration<Required extends boolean>(stainlessPath: string, required: Required, language?: SpecLanguage): (Required extends true ? never : undefined) | Declaration;
|
|
34
|
-
declare function useResource(name: string): _stainless_sdk_json0.Resource | undefined;
|
|
35
|
-
declare function useLanguage(): "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php";
|
|
36
|
-
declare function useContentPanelLayout(): ContentPanelLayout;
|
|
37
|
-
type DocsProviderProps = DocsContextType & {
|
|
38
|
-
children: React$1.ReactNode;
|
|
39
|
-
};
|
|
40
|
-
declare function DocsProvider({
|
|
41
|
-
spec,
|
|
42
|
-
language,
|
|
43
|
-
settings,
|
|
44
|
-
children
|
|
45
|
-
}: DocsProviderProps): react_jsx_runtime87.JSX.Element;
|
|
46
|
-
//#endregion
|
|
47
|
-
export { PropertySettingsType as a, useDocs as c, useSettings as d, useSnippet as f, DocsProviderProps as i, useLanguage as l, DocsContextType as n, useContentPanelLayout as o, useSpec as p, DocsProvider as r, useDeclaration as s, ContentPanelLayout as t, useResource as u };
|