@stainless-api/docs-ui 0.1.0-beta.60 → 0.1.0-beta.62
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-seA1JsK4.d.ts → breadcrumbs-C14t6IEW.d.ts} +3 -3
- package/dist/{breadcrumbs-BagP1oN2.d.ts → breadcrumbs-IxKxOsE0.d.ts} +1 -1
- package/dist/{breadcrumbs-85Y-pybq.js → breadcrumbs-Q76uwfdC.js} +3 -3
- package/dist/{cli-CoLvH9jq.js → cli-lM9nDBQl.js} +5 -5
- package/dist/{component-CF9lLzZX.js → component-D93BctHn.js} +3 -3
- package/dist/{component-generics-DS5pysMb.d.ts → component-generics-Bd4PJtTE.d.ts} +2 -2
- package/dist/{component-generics-BblkOh-y.d.ts → component-generics-BmJeLTNJ.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 +12 -12
- package/dist/components/icons.js +1 -1
- package/dist/components/index.d.ts +11 -10
- package/dist/components/index.js +18 -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-sidebar.d.ts +2 -0
- package/dist/components/sdk-sidebar.js +10 -0
- package/dist/components/sdk.d.ts +2 -2
- package/dist/components/sdk.js +9 -9
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +7 -7
- package/dist/components/stl-sidebar.d.ts +2 -0
- package/dist/components/stl-sidebar.js +5 -0
- package/dist/{components-Bz5h0Y4x.js → components-DmiarGZ9.js} +15 -14
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-generics.js +1 -1
- package/dist/contexts/component-types.d.ts +11 -10
- package/dist/contexts/component.d.ts +14 -13
- package/dist/contexts/component.js +27 -26
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +2 -2
- package/dist/contexts/index.d.ts +17 -16
- package/dist/contexts/index.js +6 -6
- 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 +10 -9
- package/dist/contexts/use-components.js +2 -2
- package/dist/{contexts-DZfPd182.js → contexts-DMjqoc7S.js} +6 -5
- package/dist/{csharp-BbNnLZWW.js → csharp-BD37FKH6.js} +4 -4
- package/dist/{docs-Bw-eLYjA.js → docs-6PYi1eEV.js} +5 -1
- package/dist/{docs-DdWB4Wsv.d.ts → docs-Dzjz2m8E.d.ts} +6 -5
- package/dist/{docs-DFS6wkGm.d.ts → docs-cYeV7nR2.d.ts} +5 -4
- package/dist/{go-OFa_5xje.js → go-v-i4WDzK.js} +4 -4
- package/dist/{http-olFAYLFq.js → http-CXjSoAxs.js} +14 -10
- package/dist/{index-BdrPd64A.d.ts → index-6vTGbgXx.d.ts} +35 -35
- package/dist/index-C619u0I1.d.ts +16 -0
- package/dist/index-CiZUWHkc.d.ts +16 -0
- package/dist/{index-Ct7H30x1.d.ts → index-DuHyTVVD.d.ts} +1 -1
- package/dist/{index-CLMudlDX.d.ts → index-wOU588Um.d.ts} +35 -35
- package/dist/index.d.ts +16 -15
- package/dist/index.js +29 -28
- package/dist/{java-Bw0o13Wk.js → java-A6j1NMJ7.js} +5 -5
- package/dist/languages/cli.d.ts +11 -10
- package/dist/languages/cli.js +19 -18
- package/dist/languages/csharp.d.ts +11 -10
- package/dist/languages/csharp.js +7 -7
- package/dist/languages/go.d.ts +11 -10
- package/dist/languages/go.js +7 -7
- package/dist/languages/http.d.ts +11 -10
- package/dist/languages/http.js +18 -17
- package/dist/languages/index.d.ts +11 -10
- package/dist/languages/index.js +26 -25
- package/dist/languages/java.d.ts +11 -10
- package/dist/languages/java.js +7 -7
- package/dist/languages/python.d.ts +11 -10
- package/dist/languages/python.js +7 -7
- package/dist/languages/ruby.d.ts +11 -10
- package/dist/languages/ruby.js +7 -7
- package/dist/languages/typescript.d.ts +11 -10
- package/dist/languages/typescript.js +7 -7
- package/dist/languages-C6gLi0rP.js +28 -0
- package/dist/markdown/index.d.ts +2 -2
- package/dist/markdown/index.js +28 -27
- package/dist/markdown/printer.d.ts +2 -2
- package/dist/markdown/printer.js +29 -28
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/markdown/utils.js +2 -2
- package/dist/{markdown-ZzVcn4kq.js → markdown-DHjcD13O.js} +1 -1
- package/dist/{markdown-Dyn0NA2f.d.ts → markdown-DkGIT8Kx.d.ts} +2 -2
- package/dist/{markdown-DtbgEdDt.d.ts → markdown-DmrCjnT8.d.ts} +2 -2
- package/dist/{method-CxjUvijp.d.ts → method-BlxcOrX4.d.ts} +6 -6
- package/dist/{method-Dktsfckf.js → method-mosT_h9v.js} +3 -3
- package/dist/{navigation-Dk55c7au.d.ts → navigation-865UcdP7.d.ts} +1 -1
- package/dist/{navigation-DLQvobDt.d.ts → navigation-CRKiHkwL.d.ts} +3 -3
- package/dist/{overview-rRsC-Yi_.d.ts → overview-CAxvIfWH.d.ts} +7 -7
- package/dist/{overview-EkRigi6e.js → overview-CDIg0UWY.js} +8 -8
- package/dist/{overview-DVu-9kpm.d.ts → overview-J95gyke9.d.ts} +7 -7
- package/dist/{primitives-DR4XbZ2t.d.ts → primitives-8XXs7qDy.d.ts} +12 -12
- package/dist/{primitives-BVaiiY63.js → primitives-CRiUE1em.js} +6 -6
- package/dist/{primitives-DP-cTr1W.d.ts → primitives-KIlfflF9.d.ts} +12 -12
- package/dist/{properties-Ll927UYJ.d.ts → properties-0U_JmHNb.d.ts} +5 -5
- package/dist/{properties-BHvUHbcf.js → properties-4w8hy0hf.js} +3 -3
- package/dist/{properties-lx53LZPl.d.ts → properties-hAqMR9G-.d.ts} +5 -5
- package/dist/{python-D8NWX7Cb.js → python-CtQJaLw5.js} +4 -4
- package/dist/{routing-Fzn1XfX_.js → routing-D6595ovf.js} +10 -2
- package/dist/{routing-sjrF8U7O.d.ts → routing-DmNHIb6b.d.ts} +13 -3
- package/dist/routing-Wb-T6WOm.d.ts +64 -0
- package/dist/routing.d.ts +2 -2
- package/dist/routing.js +2 -2
- package/dist/{ruby-DOUaLhKJ.js → ruby-DJqEHgOw.js} +5 -5
- package/dist/{sdk-Dhu_gfzq.d.ts → sdk-CoiDgyHc.d.ts} +20 -16
- package/dist/{sdk-DrK2bq-v.js → sdk-DXS8pW0X.js} +48 -18
- package/dist/sdk-sidebar-BoRTRjDJ.d.ts +15 -0
- package/dist/sdk-sidebar-CF3tb0Yl.js +36 -0
- package/dist/sdk-sidebar-CYjEwB-m.d.ts +15 -0
- package/dist/{sdk-DdW_-RBy.d.ts → sdk-swLaCpqB.d.ts} +20 -16
- package/dist/{snippets-Bi0ZADmt.d.ts → snippets-BPK_oVIf.d.ts} +9 -9
- package/dist/{snippets-CocIZMn0.d.ts → snippets-CaCkByky.d.ts} +9 -9
- package/dist/{snippets-D4VhtZIC.js → snippets-bh8lfniq.js} +4 -4
- package/dist/spec.d.ts +2 -2
- package/dist/spec.js +5 -5
- package/dist/stl-sidebar-BQvhLYPO.d.ts +45 -0
- package/dist/stl-sidebar-BSx0HI2z.d.ts +45 -0
- package/dist/stl-sidebar-DdxZx2KK.js +82 -0
- package/dist/{style-TeAZuiHh.js → style-Bxr5gqcM.js} +4 -4
- package/dist/style.d.ts +4 -4
- package/dist/style.js +1 -1
- package/dist/styles/primitives.css +6 -0
- package/dist/styles/resets.css +1 -1
- package/dist/styles/sidebar.css +219 -49
- package/dist/styles.css +231 -50
- package/dist/{typescript-DDa446mB.js → typescript-DA7mcN1t.js} +5 -5
- package/dist/{use-components-Dbin0y07.js → use-components-BUz3GbO4.js} +1 -1
- package/dist/{utils-BoRmEFRn.js → utils-BpKHeVMe.js} +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +3 -3
- package/dist/components/sidebar.d.ts +0 -2
- package/dist/components/sidebar.js +0 -9
- package/dist/index-DTl8aUkb.d.ts +0 -15
- package/dist/index-Dp5biTf5.d.ts +0 -15
- package/dist/languages-DW_T-Th6.js +0 -28
- package/dist/sidebar-BLGIKgRI.js +0 -85
- package/dist/sidebar-CUaX1IBW.d.ts +0 -36
- package/dist/sidebar-DukWbBrE.d.ts +0 -36
- /package/dist/{chunk-Du3t87LU.js → chunk-BN_g-Awi.js} +0 -0
- /package/dist/{component-generics-CmIGbBLq.js → component-generics-POFirVVb.js} +0 -0
- /package/dist/{icons-DMkAA03z.js → icons-BYKn5X8E.js} +0 -0
- /package/dist/{method-C850sHPB.d.ts → method-DzUn_qWF.d.ts} +0 -0
- /package/dist/{navigation-By1sQl6M.js → navigation-aoYZ_tl4.js} +0 -0
package/dist/styles.css
CHANGED
|
@@ -87,6 +87,11 @@ body {
|
|
|
87
87
|
font-weight: 500;
|
|
88
88
|
line-height: var(--stl-typography-line-height-heading);
|
|
89
89
|
font-family: var(--stl-typography-font-heading);
|
|
90
|
+
|
|
91
|
+
text-wrap: pretty;
|
|
92
|
+
&:where(h1, h2, h3) {
|
|
93
|
+
text-wrap: balance;
|
|
94
|
+
}
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
:where(h1:not(.stl-ui-not-prose *), .stl-ui-not-prose .stl-ui-prose h1) {
|
|
@@ -1329,7 +1334,7 @@ a.stl-ui-button {
|
|
|
1329
1334
|
line-height: 1.5;
|
|
1330
1335
|
letter-spacing: -0.01em;
|
|
1331
1336
|
|
|
1332
|
-
a {
|
|
1337
|
+
a:not(.stl-ui-callout a) {
|
|
1333
1338
|
color: inherit;
|
|
1334
1339
|
cursor: pointer;
|
|
1335
1340
|
text-decoration: none;
|
|
@@ -1642,6 +1647,12 @@ a.stl-ui-button {
|
|
|
1642
1647
|
ol {
|
|
1643
1648
|
list-style-type: decimal;
|
|
1644
1649
|
}
|
|
1650
|
+
|
|
1651
|
+
hr {
|
|
1652
|
+
margin-bottom: 16px;
|
|
1653
|
+
border: none;
|
|
1654
|
+
border-bottom: 1px solid var(--stl-color-border);
|
|
1655
|
+
}
|
|
1645
1656
|
}
|
|
1646
1657
|
|
|
1647
1658
|
.stldocs-root .stldocs-input {
|
|
@@ -2787,80 +2798,250 @@ a.stl-ui-button {
|
|
|
2787
2798
|
.stldocs-sidebar {
|
|
2788
2799
|
font-family: var(--stl-typography-font);
|
|
2789
2800
|
font-size: var(--stl-typography-scale-sm);
|
|
2801
|
+
/* Remove background color from stldocs-root reset. */
|
|
2802
|
+
background-color: transparent;
|
|
2803
|
+
--stldocs-sidebar-item-padding-inline: 12px;
|
|
2804
|
+
--stldocs-sidebar-item-padding-block: 6px;
|
|
2805
|
+
--stldocs-sidebar-indent: 12px;
|
|
2790
2806
|
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2807
|
+
ul,
|
|
2808
|
+
summary {
|
|
2809
|
+
list-style-type: none;
|
|
2794
2810
|
}
|
|
2795
2811
|
|
|
2796
|
-
.stldocs-
|
|
2797
|
-
|
|
2812
|
+
.stldocs-expander-summary,
|
|
2813
|
+
.stldocs-sidebar-entry-group > a {
|
|
2814
|
+
font-weight: 500;
|
|
2798
2815
|
}
|
|
2799
2816
|
|
|
2800
|
-
.stldocs-
|
|
2801
|
-
.stldocs-sidebar-method {
|
|
2802
|
-
padding: 6px;
|
|
2817
|
+
.stldocs-expander-summary {
|
|
2803
2818
|
display: flex;
|
|
2804
|
-
|
|
2819
|
+
align-items: center;
|
|
2820
|
+
user-select: none;
|
|
2805
2821
|
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2822
|
+
.stldocs-expander-summary-icon {
|
|
2823
|
+
margin-left: 4px;
|
|
2824
|
+
opacity: 0.65;
|
|
2825
|
+
transition:
|
|
2826
|
+
opacity 0.1s ease-out,
|
|
2827
|
+
transform 0.1s ease-out;
|
|
2828
|
+
border-radius: 4px;
|
|
2829
|
+
|
|
2830
|
+
&:hover {
|
|
2831
|
+
background-color: var(--stl-color-background-hover);
|
|
2810
2832
|
}
|
|
2811
2833
|
}
|
|
2834
|
+
|
|
2835
|
+
span[aria-hidden='true'] {
|
|
2836
|
+
opacity: 0;
|
|
2837
|
+
}
|
|
2812
2838
|
}
|
|
2813
2839
|
|
|
2814
|
-
.stldocs-sidebar-
|
|
2815
|
-
|
|
2840
|
+
.stldocs-sidebar-entry-group {
|
|
2841
|
+
position: relative;
|
|
2816
2842
|
|
|
2817
|
-
|
|
2818
|
-
|
|
2843
|
+
/* Anchor is positioned over the <details>. */
|
|
2844
|
+
> a {
|
|
2845
|
+
position: absolute;
|
|
2846
|
+
top: 0;
|
|
2847
|
+
left: 0;
|
|
2848
|
+
right: 0;
|
|
2849
|
+
padding-block: var(--stldocs-sidebar-item-padding-block);
|
|
2850
|
+
padding-inline: var(--stldocs-sidebar-item-padding-inline);
|
|
2851
|
+
}
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
.stldocs-sidebar-expander[open] > .stldocs-expander-summary .stldocs-expander-summary-icon {
|
|
2855
|
+
opacity: 1;
|
|
2856
|
+
transform: rotate(90deg);
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2859
|
+
/* List items. */
|
|
2860
|
+
.stldocs-sidebar-entry,
|
|
2861
|
+
.stldocs-expander-summary {
|
|
2862
|
+
margin: 0;
|
|
2863
|
+
border-radius: 8px;
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
.stldocs-expander-summary,
|
|
2867
|
+
.stldocs-sidebar-entry-link a {
|
|
2868
|
+
cursor: pointer;
|
|
2869
|
+
padding: var(--stldocs-sidebar-item-padding-block) var(--stldocs-sidebar-item-padding-inline);
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
.stldocs-sidebar-entry-link a:hover {
|
|
2873
|
+
color: var(--stl-color-foreground);
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
.stldocs-sidebar-entry-link a {
|
|
2877
|
+
color: var(--stl-color-foreground-reduced);
|
|
2878
|
+
font-weight: 400;
|
|
2879
|
+
display: flex;
|
|
2880
|
+
text-decoration: none;
|
|
2881
|
+
span {
|
|
2882
|
+
font-weight: inherit;
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
&:hover {
|
|
2886
|
+
text-decoration: underline;
|
|
2887
|
+
text-decoration-color: var(--stl-color-foreground-reduced);
|
|
2888
|
+
}
|
|
2889
|
+
&[aria-current='page'] {
|
|
2819
2890
|
font-weight: 500;
|
|
2891
|
+
color: var(--stl-color-foreground);
|
|
2820
2892
|
}
|
|
2821
2893
|
}
|
|
2822
2894
|
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2895
|
+
/* When the sidebar entry has a link, disable pointer events on the <details> text
|
|
2896
|
+
so that they pass through to the <a>. */
|
|
2897
|
+
.stldocs-sidebar-entry-group:has(> a) .stldocs-expander-summary > span {
|
|
2898
|
+
pointer-events: none;
|
|
2899
|
+
}
|
|
2827
2900
|
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2901
|
+
.stldocs-sidebar-entry-link:has(> a:is(:hover, [aria-current='page'])),
|
|
2902
|
+
.stldocs-sidebar-entry-group:has(> a:is(:hover, [aria-current='page']))
|
|
2903
|
+
> .stldocs-sidebar-expander
|
|
2904
|
+
> .stldocs-expander-summary,
|
|
2905
|
+
.stldocs-expander-summary:hover {
|
|
2906
|
+
background-color: var(--stl-color-background-hover);
|
|
2907
|
+
}
|
|
2831
2908
|
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2909
|
+
/* Nested list items have flat left edge. */
|
|
2910
|
+
.stldocs-sidebar-list .stldocs-sidebar-list :is(.stldocs-expander-summary, .stldocs-sidebar-entry) {
|
|
2911
|
+
border-start-start-radius: 0;
|
|
2912
|
+
border-end-start-radius: 0;
|
|
2913
|
+
}
|
|
2836
2914
|
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2915
|
+
.stldocs-sidebar-list {
|
|
2916
|
+
padding: 0;
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2919
|
+
.stldocs-sidebar-list .stldocs-sidebar-list .stldocs-sidebar-entry {
|
|
2920
|
+
border-inline-start: 1px solid var(--stl-color-border-faint);
|
|
2921
|
+
margin-inline-start: var(--stldocs-sidebar-indent);
|
|
2922
|
+
&:has(> a[aria-current='page']) {
|
|
2923
|
+
border-inline-start: 2px solid var(--stl-color-accent-border-strong);
|
|
2924
|
+
& > a {
|
|
2925
|
+
margin-left: -1px;
|
|
2840
2926
|
}
|
|
2841
2927
|
}
|
|
2928
|
+
}
|
|
2842
2929
|
|
|
2843
|
-
|
|
2844
|
-
&[data-open='true'] {
|
|
2845
|
-
& > .stldocs-expander-summary {
|
|
2846
|
-
.stldocs-type-preview-content {
|
|
2847
|
-
display: none;
|
|
2848
|
-
}
|
|
2930
|
+
/* Method & resource icons. */
|
|
2849
2931
|
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2932
|
+
a[data-stldocs-method],
|
|
2933
|
+
a[data-stldocs-resource] {
|
|
2934
|
+
--stldocs-sidebar-icon-size-outer: 18px;
|
|
2935
|
+
--stldocs-sidebar-icon-margin: 8px;
|
|
2936
|
+
}
|
|
2937
|
+
a[data-stldocs-method] {
|
|
2938
|
+
--stldocs-sidebar-icon-size-inner: 16px;
|
|
2939
|
+
--stldocs-sidebar-icon-color-inverse-background: var(--stldocs-sidebar-icon-color);
|
|
2854
2940
|
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2941
|
+
&[data-stldocs-method='get'] {
|
|
2942
|
+
--stldocs-sidebar-icon-color: var(--stl-color-green-foreground);
|
|
2943
|
+
--stldocs-sidebar-icon-color-border: var(--stl-color-green-border);
|
|
2944
|
+
--stldocs-sidebar-icon-color-background: var(--stl-color-green-muted-background);
|
|
2945
|
+
--stldocs-sidebar-icon-color-background-hover: var(--stl-color-green-muted-background-hover);
|
|
2946
|
+
--stldocs-sidebar-icon-color-inverse-background: var(--stl-color-green-inverse-background);
|
|
2947
|
+
--stldocs-sidebar-icon-color-inverse-foreground: var(--stl-color-green-inverse-foreground);
|
|
2948
|
+
}
|
|
2949
|
+
&[data-stldocs-method='post'] {
|
|
2950
|
+
--stldocs-sidebar-icon-color: var(--stl-color-blue-foreground);
|
|
2951
|
+
--stldocs-sidebar-icon-color-border: var(--stl-color-blue-border);
|
|
2952
|
+
--stldocs-sidebar-icon-color-background: var(--stl-color-blue-muted-background);
|
|
2953
|
+
--stldocs-sidebar-icon-color-background-hover: var(--stl-color-blue-muted-background-hover);
|
|
2954
|
+
--stldocs-sidebar-icon-color-inverse-background: var(--stl-color-blue-inverse-background);
|
|
2955
|
+
--stldocs-sidebar-icon-color-inverse-foreground: var(--stl-color-blue-inverse-foreground);
|
|
2956
|
+
}
|
|
2957
|
+
&[data-stldocs-method='patch'],
|
|
2958
|
+
&[data-stldocs-method='put'] {
|
|
2959
|
+
--stldocs-sidebar-icon-color: var(--stl-color-orange-foreground);
|
|
2960
|
+
--stldocs-sidebar-icon-color-border: var(--stl-color-orange-border);
|
|
2961
|
+
--stldocs-sidebar-icon-color-background: var(--stl-color-orange-muted-background);
|
|
2962
|
+
--stldocs-sidebar-icon-color-background-hover: var(--stl-color-orange-muted-background-hover);
|
|
2963
|
+
--stldocs-sidebar-icon-color-inverse-background: var(--stl-color-orange-inverse-background);
|
|
2964
|
+
--stldocs-sidebar-icon-color-inverse-foreground: var(--stl-color-orange-inverse-foreground);
|
|
2965
|
+
}
|
|
2966
|
+
&[data-stldocs-method='delete'] {
|
|
2967
|
+
--stldocs-sidebar-icon-color: var(--stl-color-red-foreground);
|
|
2968
|
+
--stldocs-sidebar-icon-color-border: var(--stl-color-red-border);
|
|
2969
|
+
--stldocs-sidebar-icon-color-background: var(--stl-color-red-muted-background);
|
|
2970
|
+
--stldocs-sidebar-icon-color-background-hover: var(--stl-color-red-muted-background-hover);
|
|
2971
|
+
--stldocs-sidebar-icon-color-inverse-background: var(--stl-color-red-inverse-background);
|
|
2972
|
+
--stldocs-sidebar-icon-color-inverse-foreground: var(--stl-color-red-inverse-foreground);
|
|
2973
|
+
}
|
|
2860
2974
|
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2975
|
+
&[data-stldocs-method='get'] {
|
|
2976
|
+
--stldocs-sidebar-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 7 7 17"/><path d="M17 17H7V7"/></svg>');
|
|
2977
|
+
}
|
|
2978
|
+
&[data-stldocs-method='post'],
|
|
2979
|
+
&[data-stldocs-method='put'],
|
|
2980
|
+
&[data-stldocs-method='patch'] {
|
|
2981
|
+
--stldocs-sidebar-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M7 7h10v10"/><path d="M7 17 17 7"/></svg>');
|
|
2982
|
+
}
|
|
2983
|
+
&[data-stldocs-method='delete'] {
|
|
2984
|
+
--stldocs-sidebar-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>');
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
a[data-stldocs-resource] {
|
|
2989
|
+
/* not yet implemented in markup */
|
|
2990
|
+
--stldocs-sidebar-icon-color: var(--stl-color-foreground-muted);
|
|
2991
|
+
--stldocs-sidebar-icon-color-border: var(--stl-color-border);
|
|
2992
|
+
--stldocs-sidebar-icon-color-background: var(--stl-color-faint-background);
|
|
2993
|
+
--stldocs-sidebar-icon-color-background-hover: var(--stl-color-faint-background-hover);
|
|
2994
|
+
--stldocs-sidebar-icon-color-inverse-background: var(--stl-color-inverse-background);
|
|
2995
|
+
--stldocs-sidebar-icon-color-inverse-foreground: var(--stl-color-inverse-foreground);
|
|
2996
|
+
|
|
2997
|
+
--stldocs-sidebar-icon-size-inner: 14px;
|
|
2998
|
+
--stldocs-sidebar-icon-url: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1"/><path d="M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1"/></svg>');
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
a[data-stldocs-method],
|
|
3002
|
+
a[data-stldocs-resource] {
|
|
3003
|
+
display: flex;
|
|
3004
|
+
gap: var(--stldocs-sidebar-icon-margin);
|
|
3005
|
+
align-items: center;
|
|
3006
|
+
position: relative;
|
|
3007
|
+
|
|
3008
|
+
&::before,
|
|
3009
|
+
&::after {
|
|
3010
|
+
content: '';
|
|
3011
|
+
width: var(--stldocs-sidebar-icon-size-outer);
|
|
3012
|
+
height: var(--stldocs-sidebar-icon-size-outer);
|
|
3013
|
+
display: block;
|
|
3014
|
+
}
|
|
3015
|
+
&::before {
|
|
3016
|
+
border-radius: 4px;
|
|
3017
|
+
background-color: var(--stldocs-sidebar-icon-color-background);
|
|
3018
|
+
flex: 0 0 auto;
|
|
3019
|
+
border: 1px solid var(--stldocs-sidebar-icon-color-border, transparent);
|
|
3020
|
+
}
|
|
3021
|
+
/* yuck (we can clean this up once we are changing sidebar markup) */
|
|
3022
|
+
&::after {
|
|
3023
|
+
background-color: var(--stldocs-sidebar-icon-color);
|
|
3024
|
+
mask-image: var(--stldocs-sidebar-icon-url);
|
|
3025
|
+
mask-size: var(--stldocs-sidebar-icon-size-inner) var(--stldocs-sidebar-icon-size-inner);
|
|
3026
|
+
mask-repeat: no-repeat;
|
|
3027
|
+
mask-position: center;
|
|
3028
|
+
position: absolute;
|
|
3029
|
+
left: var(--stldocs-sidebar-item-padding-inline);
|
|
3030
|
+
top: 50%;
|
|
3031
|
+
transform: translateY(-50%);
|
|
3032
|
+
}
|
|
3033
|
+
|
|
3034
|
+
&:hover {
|
|
3035
|
+
&::before {
|
|
3036
|
+
background-color: var(--stldocs-sidebar-icon-color-background-hover);
|
|
3037
|
+
}
|
|
3038
|
+
}
|
|
3039
|
+
&[aria-current='page'] {
|
|
3040
|
+
&::before {
|
|
3041
|
+
background-color: var(--stldocs-sidebar-icon-color-inverse-background);
|
|
3042
|
+
}
|
|
3043
|
+
&::after {
|
|
3044
|
+
background-color: var(--stldocs-sidebar-icon-color-inverse-foreground);
|
|
2864
3045
|
}
|
|
2865
3046
|
}
|
|
2866
3047
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
-
import {
|
|
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-BN_g-Awi.js";
|
|
2
|
+
import { i as useDeclaration, o as useLanguage, u as useSpec } from "./docs-6PYi1eEV.js";
|
|
3
|
+
import { n as useLanguageComponents } from "./contexts-DMjqoc7S.js";
|
|
4
|
+
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
5
|
+
import { t as style_default } from "./style-Bxr5gqcM.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
2
|
-
import {
|
|
1
|
+
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
+
import { p as parseStainlessPath } from "./routing-D6595ovf.js";
|
|
3
3
|
|
|
4
4
|
//#region src/utils.ts
|
|
5
5
|
var utils_exports = /* @__PURE__ */ __exportAll({
|
package/dist/utils.d.ts
CHANGED
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-BpKHeVMe.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.62",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clsx": "^2.1.1",
|
|
19
19
|
"htmlparser2": "^10.0.0",
|
|
20
20
|
"lucide-react": "^0.562.0",
|
|
21
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.
|
|
21
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.45"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "24.10.9",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dotenv": "17.2.3",
|
|
28
28
|
"react": "^19.2.3",
|
|
29
29
|
"react-dom": "^19.2.3",
|
|
30
|
-
"tsdown": "^0.20.0
|
|
30
|
+
"tsdown": "^0.20.0",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"@stainless/eslint-config": "0.1.0-beta.1",
|
|
33
33
|
"@stainless/sdk-json": "^0.1.0-beta.3"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "../sidebar-DukWbBrE.js";
|
|
2
|
-
export { Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "../docs-Bw-eLYjA.js";
|
|
2
|
-
import "../component-generics-CmIGbBLq.js";
|
|
3
|
-
import "../navigation-By1sQl6M.js";
|
|
4
|
-
import "../markdown-ZzVcn4kq.js";
|
|
5
|
-
import "../contexts-DZfPd182.js";
|
|
6
|
-
import "../use-components-Dbin0y07.js";
|
|
7
|
-
import { i as SidebarResource, n as SidebarExpander, r as SidebarMethod, t as Sidebar } from "../sidebar-BLGIKgRI.js";
|
|
8
|
-
|
|
9
|
-
export { Sidebar, SidebarExpander, SidebarMethod, SidebarResource };
|
package/dist/index-DTl8aUkb.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "./primitives-DR4XbZ2t.js";
|
|
2
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-seA1JsK4.js";
|
|
3
|
-
import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "./method-C850sHPB.js";
|
|
4
|
-
import { a as PropertyTitle, c as PropertyToggleProps, i as PropertyProps, n as PropertyDescription, o as PropertyTitleProps, r as PropertyDescriptionProps, s as PropertyToggle, t as Property } from "./properties-lx53LZPl.js";
|
|
5
|
-
import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "./sdk-Dhu_gfzq.js";
|
|
6
|
-
import { a as SnippetContainer, c as SnippetProps, d as SnippetResponse, i as SnippetCodeProps, l as SnippetRequestContainer, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetFooter, t as Snippet, u as SnippetRequestContainerProps } from "./snippets-Bi0ZADmt.js";
|
|
7
|
-
import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "./overview-DVu-9kpm.js";
|
|
8
|
-
import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "./sidebar-DukWbBrE.js";
|
|
9
|
-
|
|
10
|
-
//#region src/components/index.d.ts
|
|
11
|
-
declare namespace index_d_exports {
|
|
12
|
-
export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting };
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { index_d_exports as t };
|
package/dist/index-Dp5biTf5.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { a as Join, c as ListViewProps, d as ToggleButtonProps, f as Tooltip, i as InputProps, l as Markdown, n as Expander, o as Link, p as VirtualExpander, r as Input, s as ListView, t as Badge, u as ToggleButton } from "./primitives-DP-cTr1W.js";
|
|
2
|
-
import { n as generateApiBreadcrumbs, t as SDKBreadcrumbs } from "./breadcrumbs-BagP1oN2.js";
|
|
3
|
-
import { a as MethodHeaderProps, c as MethodProps, i as MethodHeader, l as MethodRoute, n as MethodDescription, o as MethodInfo, r as MethodDescriptionProps, s as MethodInfoProps, t as Method, u as MethodRouteProps } from "./method-CxjUvijp.js";
|
|
4
|
-
import { a as PropertyTitle, c as PropertyToggleProps, i as PropertyProps, n as PropertyDescription, o as PropertyTitleProps, r as PropertyDescriptionProps, s as PropertyToggle, t as Property } from "./properties-Ll927UYJ.js";
|
|
5
|
-
import { C as TransformRequestSnippetFn, S as SDKSnippetLanguagesType, T as useReferenceNesting, _ as SDKModelProps, a as SDKChildren, b as SDKRequestTitleProps, c as SDKDeclaration, d as SDKLanguageBlock, f as SDKMethod, g as SDKModel, h as SDKMethodProps, i as ReferenceNestingContextType, l as SDKExample, m as SDKMethodInfo, n as PropertyModelContextType, o as SDKConstraints, p as SDKMethodHeader, r as ReferenceNestingContext, s as SDKConstraintsProps, t as PropertyModelContext, u as SDKIcon, v as SDKReference, w as usePropertyModel, x as SDKSnippetLanguages, y as SDKRequestTitle } from "./sdk-DdW_-RBy.js";
|
|
6
|
-
import { a as SnippetContainer, c as SnippetProps, d as SnippetResponse, i as SnippetCodeProps, l as SnippetRequestContainer, n as SnippetButtons, o as SnippetContainerProps, r as SnippetCode, s as SnippetFooter, t as Snippet, u as SnippetRequestContainerProps } from "./snippets-CocIZMn0.js";
|
|
7
|
-
import { a as SDKResource, c as SDKRoot, i as SDKOverviewProps, l as SDKRootProps, n as SDKMethodSummaryProps, o as SDKResourceHeader, r as SDKOverview, s as SDKResourceProps, t as SDKMethodSummary } from "./overview-rRsC-Yi_.js";
|
|
8
|
-
import { a as SidebarProps, i as SidebarMethodProps, n as SidebarExpander, o as SidebarResource, r as SidebarMethod, s as SidebarResourceProps, t as Sidebar } from "./sidebar-CUaX1IBW.js";
|
|
9
|
-
|
|
10
|
-
//#region src/components/index.d.ts
|
|
11
|
-
declare namespace index_d_exports {
|
|
12
|
-
export { Badge, Expander, Input, InputProps, Join, Link, ListView, ListViewProps, Markdown, Method, MethodDescription, MethodDescriptionProps, MethodHeader, MethodHeaderProps, MethodInfo, MethodInfoProps, MethodProps, MethodRoute, MethodRouteProps, Property, PropertyDescription, PropertyDescriptionProps, PropertyModelContext, PropertyModelContextType, PropertyProps, PropertyTitle, PropertyTitleProps, PropertyToggle, PropertyToggleProps, ReferenceNestingContext, ReferenceNestingContextType, SDKBreadcrumbs, SDKChildren, SDKConstraints, SDKConstraintsProps, SDKDeclaration, SDKExample, SDKIcon, SDKLanguageBlock, SDKMethod, SDKMethodHeader, SDKMethodInfo, SDKMethodProps, SDKMethodSummary, SDKMethodSummaryProps, SDKModel, SDKModelProps, SDKOverview, SDKOverviewProps, SDKReference, SDKRequestTitle, SDKRequestTitleProps, SDKResource, SDKResourceHeader, SDKResourceProps, SDKRoot, SDKRootProps, SDKSnippetLanguages, SDKSnippetLanguagesType, Sidebar, SidebarExpander, SidebarMethod, SidebarMethodProps, SidebarProps, SidebarResource, SidebarResourceProps, Snippet, SnippetButtons, SnippetCode, SnippetCodeProps, SnippetContainer, SnippetContainerProps, SnippetFooter, SnippetProps, SnippetRequestContainer, SnippetRequestContainerProps, SnippetResponse, ToggleButton, ToggleButtonProps, Tooltip, TransformRequestSnippetFn, VirtualExpander, generateApiBreadcrumbs, usePropertyModel, useReferenceNesting };
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { index_d_exports as t };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-Du3t87LU.js";
|
|
2
|
-
import { o as typescript_exports } from "./typescript-DDa446mB.js";
|
|
3
|
-
import { o as java_exports } from "./java-Bw0o13Wk.js";
|
|
4
|
-
import { o as go_exports } from "./go-OFa_5xje.js";
|
|
5
|
-
import { o as python_exports } from "./python-D8NWX7Cb.js";
|
|
6
|
-
import { o as ruby_exports } from "./ruby-DOUaLhKJ.js";
|
|
7
|
-
import { s as http_exports } from "./http-olFAYLFq.js";
|
|
8
|
-
import { o as csharp_exports } from "./csharp-BbNnLZWW.js";
|
|
9
|
-
import { o as cli_exports } from "./cli-CoLvH9jq.js";
|
|
10
|
-
|
|
11
|
-
//#region src/languages/index.ts
|
|
12
|
-
var languages_exports = /* @__PURE__ */ __exportAll({
|
|
13
|
-
cli: () => cli_exports,
|
|
14
|
-
csharp: () => csharp_exports,
|
|
15
|
-
go: () => go_exports,
|
|
16
|
-
http: () => http_exports,
|
|
17
|
-
java: () => java_exports,
|
|
18
|
-
kotlin: () => kotlin,
|
|
19
|
-
node: () => node,
|
|
20
|
-
python: () => python_exports,
|
|
21
|
-
ruby: () => ruby_exports,
|
|
22
|
-
typescript: () => typescript_exports
|
|
23
|
-
});
|
|
24
|
-
const node = typescript_exports;
|
|
25
|
-
const kotlin = java_exports;
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { languages_exports as n, node as r, kotlin as t };
|
package/dist/sidebar-BLGIKgRI.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { n as useNavigation } from "./navigation-By1sQl6M.js";
|
|
2
|
-
import { t as useComponents } from "./use-components-Dbin0y07.js";
|
|
3
|
-
import { t as style_default } from "./style-TeAZuiHh.js";
|
|
4
|
-
import { r as isResourceEmpty } from "./utils-BoRmEFRn.js";
|
|
5
|
-
import "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
8
|
-
import { Badge, getHttpMethod } from "@stainless-api/ui-primitives";
|
|
9
|
-
|
|
10
|
-
//#region src/components/sidebar.tsx
|
|
11
|
-
function SidebarExpander({ open, summary, children }) {
|
|
12
|
-
return /* @__PURE__ */ jsxs("details", {
|
|
13
|
-
className: style_default.SidebarExpander,
|
|
14
|
-
open,
|
|
15
|
-
children: [/* @__PURE__ */ jsxs("summary", {
|
|
16
|
-
className: style_default.ExpanderSummary,
|
|
17
|
-
children: [/* @__PURE__ */ jsx("div", {
|
|
18
|
-
className: style_default.ExpanderSummaryContent,
|
|
19
|
-
children: summary
|
|
20
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
21
|
-
className: style_default.ExpanderSummaryIcon,
|
|
22
|
-
children: [/* @__PURE__ */ jsx(ChevronRight, {
|
|
23
|
-
size: 16,
|
|
24
|
-
strokeWidth: 1,
|
|
25
|
-
className: style_default.Icon
|
|
26
|
-
}), /* @__PURE__ */ jsx(ChevronDown, {
|
|
27
|
-
size: 16,
|
|
28
|
-
strokeWidth: 1,
|
|
29
|
-
className: style_default.Icon
|
|
30
|
-
})]
|
|
31
|
-
})]
|
|
32
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
33
|
-
className: style_default.ExpanderContent,
|
|
34
|
-
children
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function SidebarMethod({ method }) {
|
|
39
|
-
const Docs = useComponents();
|
|
40
|
-
const { selectedPath } = useNavigation();
|
|
41
|
-
const httpMethod = getHttpMethod(method.httpMethod);
|
|
42
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
43
|
-
className: style_default.SidebarMethod,
|
|
44
|
-
"data-selected": method.stainlessPath === selectedPath,
|
|
45
|
-
children: [httpMethod && /* @__PURE__ */ jsx(Badge.HTTP, {
|
|
46
|
-
method: httpMethod,
|
|
47
|
-
iconOnly: true
|
|
48
|
-
}), /* @__PURE__ */ jsx(Docs.Link, {
|
|
49
|
-
stainlessPath: method.stainlessPath,
|
|
50
|
-
children: method.title
|
|
51
|
-
})]
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
function SidebarResource({ resource }) {
|
|
55
|
-
const Docs = useComponents();
|
|
56
|
-
const { selectedPath } = useNavigation();
|
|
57
|
-
const subresources = Object.values(resource.subresources ?? {}).map((sub) => /* @__PURE__ */ jsx(SidebarResource, { resource: sub }, sub.stainlessPath));
|
|
58
|
-
const methods = Object.values(resource.methods).map((method) => /* @__PURE__ */ jsx(SidebarMethod, { method }, method.stainlessPath));
|
|
59
|
-
const hasChildren = subresources.length > 0 || methods.length > 0;
|
|
60
|
-
const title = /* @__PURE__ */ jsx("div", {
|
|
61
|
-
className: style_default.SidebarResourceTitle,
|
|
62
|
-
children: /* @__PURE__ */ jsx(Docs.Link, {
|
|
63
|
-
stainlessPath: resource.stainlessPath,
|
|
64
|
-
children: resource.title
|
|
65
|
-
})
|
|
66
|
-
});
|
|
67
|
-
return /* @__PURE__ */ jsx("div", {
|
|
68
|
-
className: style_default.SidebarResource,
|
|
69
|
-
"data-selected": resource.stainlessPath === selectedPath,
|
|
70
|
-
children: hasChildren ? /* @__PURE__ */ jsxs(SidebarExpander, {
|
|
71
|
-
summary: title,
|
|
72
|
-
open: true,
|
|
73
|
-
children: [methods, subresources]
|
|
74
|
-
}) : title
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
function Sidebar({ resources }) {
|
|
78
|
-
return /* @__PURE__ */ jsx("div", {
|
|
79
|
-
className: `${style_default.Root} ${style_default.Sidebar}`,
|
|
80
|
-
children: resources.filter((resource) => !isResourceEmpty(resource)).map((resource) => /* @__PURE__ */ jsx(SidebarResource, { resource }, resource.stainlessPath))
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
//#endregion
|
|
85
|
-
export { SidebarResource as i, SidebarExpander as n, SidebarMethod as r, Sidebar as t };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { f as Resource, l as Method } from "./index-Ct7H30x1.js";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime71 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/sidebar.d.ts
|
|
6
|
-
type SidebarExpanderProps = {
|
|
7
|
-
open?: boolean;
|
|
8
|
-
summary: React$1.ReactNode;
|
|
9
|
-
children?: React$1.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare function SidebarExpander({
|
|
12
|
-
open,
|
|
13
|
-
summary,
|
|
14
|
-
children
|
|
15
|
-
}: SidebarExpanderProps): react_jsx_runtime71.JSX.Element;
|
|
16
|
-
type SidebarMethodProps = {
|
|
17
|
-
method: Method;
|
|
18
|
-
};
|
|
19
|
-
declare function SidebarMethod({
|
|
20
|
-
method
|
|
21
|
-
}: SidebarMethodProps): react_jsx_runtime71.JSX.Element;
|
|
22
|
-
type SidebarResourceProps = {
|
|
23
|
-
resource: Resource;
|
|
24
|
-
};
|
|
25
|
-
declare function SidebarResource({
|
|
26
|
-
resource
|
|
27
|
-
}: SidebarResourceProps): react_jsx_runtime71.JSX.Element;
|
|
28
|
-
type SidebarProps = {
|
|
29
|
-
resources: Resource[];
|
|
30
|
-
selectedPath?: string;
|
|
31
|
-
};
|
|
32
|
-
declare function Sidebar({
|
|
33
|
-
resources
|
|
34
|
-
}: SidebarProps): react_jsx_runtime71.JSX.Element;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { f as Resource, l as Method } from "./index-Ct7H30x1.js";
|
|
2
|
-
import * as React$1 from "react";
|
|
3
|
-
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region src/components/sidebar.d.ts
|
|
6
|
-
type SidebarExpanderProps = {
|
|
7
|
-
open?: boolean;
|
|
8
|
-
summary: React$1.ReactNode;
|
|
9
|
-
children?: React$1.ReactNode;
|
|
10
|
-
};
|
|
11
|
-
declare function SidebarExpander({
|
|
12
|
-
open,
|
|
13
|
-
summary,
|
|
14
|
-
children
|
|
15
|
-
}: SidebarExpanderProps): react_jsx_runtime48.JSX.Element;
|
|
16
|
-
type SidebarMethodProps = {
|
|
17
|
-
method: Method;
|
|
18
|
-
};
|
|
19
|
-
declare function SidebarMethod({
|
|
20
|
-
method
|
|
21
|
-
}: SidebarMethodProps): react_jsx_runtime48.JSX.Element;
|
|
22
|
-
type SidebarResourceProps = {
|
|
23
|
-
resource: Resource;
|
|
24
|
-
};
|
|
25
|
-
declare function SidebarResource({
|
|
26
|
-
resource
|
|
27
|
-
}: SidebarResourceProps): react_jsx_runtime48.JSX.Element;
|
|
28
|
-
type SidebarProps = {
|
|
29
|
-
resources: Resource[];
|
|
30
|
-
selectedPath?: string;
|
|
31
|
-
};
|
|
32
|
-
declare function Sidebar({
|
|
33
|
-
resources
|
|
34
|
-
}: SidebarProps): react_jsx_runtime48.JSX.Element;
|
|
35
|
-
//#endregion
|
|
36
|
-
export { SidebarProps as a, SidebarMethodProps as i, SidebarExpander as n, SidebarResource as o, SidebarMethod as r, SidebarResourceProps as s, Sidebar as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|