@stainless-api/docs-ui 0.1.0-beta.53 → 0.1.0-beta.54
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-B3lvHi-c.d.ts → breadcrumbs-CysDvz5L.d.ts} +8 -3
- package/dist/{breadcrumbs-CMuhzgT7.js → breadcrumbs-DgN-xdoA.js} +3 -3
- package/dist/{breadcrumbs-DgJ-MlEX.d.ts → breadcrumbs-Dr94uqc3.d.ts} +8 -3
- package/dist/{component-BYfWhHQW.js → component-CjLDkCLe.js} +2 -2
- package/dist/{component-generics-DXP3ULvt.d.ts → component-generics-DBrwfCEE.d.ts} +2 -2
- package/dist/{component-generics-VJ70v3jX.d.ts → component-generics-XM4u-Dns.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 +2 -2
- package/dist/components/breadcrumbs.js +3 -3
- package/dist/components/icons.d.ts +11 -11
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +10 -10
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +2 -2
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +3 -3
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +1 -1
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +1 -1
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.js +3 -3
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +1 -1
- package/dist/{components-D8QDCui1.js → components-oq97SH1A.js} +9 -8
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +10 -10
- package/dist/contexts/component.d.ts +13 -13
- package/dist/contexts/component.js +18 -18
- package/dist/contexts/docs.d.ts +1 -1
- package/dist/contexts/index.d.ts +14 -14
- package/dist/contexts/markdown.d.ts +1 -1
- package/dist/contexts/navigation.d.ts +1 -1
- package/dist/contexts/use-components.d.ts +9 -9
- package/dist/{csharp-Ba5efX6D.js → csharp-E3FbT47c.js} +1 -1
- package/dist/{docs-MVz2XX5s.d.ts → docs-CTY2OmmX.d.ts} +3 -3
- package/dist/{go-CpQCf3l5.js → go-DNSFGJle.js} +1 -1
- package/dist/{http-DnXtwYax.js → http-DXRdcllM.js} +2 -2
- package/dist/{index-DBINmyRo.d.ts → index-B5r4ELg6.d.ts} +30 -30
- package/dist/{index-CNuNmlhP.d.ts → index-BouuY88M.d.ts} +30 -30
- package/dist/{index-xsX1w-7u.d.ts → index-Cr9OL_Cp.d.ts} +9 -9
- package/dist/{index-CX7THZ5A.d.ts → index-I43iZfIE.d.ts} +9 -9
- package/dist/index.d.ts +15 -15
- package/dist/index.js +18 -18
- package/dist/{java-BnaaIuAz.js → java-X1yS0K52.js} +1 -1
- package/dist/languages/csharp.d.ts +10 -10
- package/dist/languages/csharp.js +1 -1
- package/dist/languages/go.d.ts +10 -10
- package/dist/languages/go.js +1 -1
- package/dist/languages/http.d.ts +10 -10
- package/dist/languages/http.js +10 -10
- package/dist/languages/index.d.ts +10 -10
- package/dist/languages/index.js +17 -17
- package/dist/languages/java.d.ts +10 -10
- package/dist/languages/java.js +1 -1
- package/dist/languages/python.d.ts +10 -10
- package/dist/languages/python.js +1 -1
- package/dist/languages/ruby.d.ts +10 -10
- package/dist/languages/ruby.js +1 -1
- package/dist/languages/typescript.d.ts +10 -10
- package/dist/languages/typescript.js +1 -1
- package/dist/{languages-DXv7zsEW.js → languages-Ir9QQoCT.js} +7 -7
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.js +18 -18
- package/dist/markdown/printer.d.ts +1 -1
- package/dist/markdown/printer.js +19 -19
- package/dist/markdown/utils.d.ts +2 -2
- package/dist/{markdown--wN50S_T.d.ts → markdown-D5IxykeS.d.ts} +2 -2
- package/dist/{method-cLcsCc31.d.ts → method-BDSi2Xo0.d.ts} +7 -7
- package/dist/{method-qhstNvML.js → method-nEcioXL5.js} +2 -2
- package/dist/{method-CrNc3HtN.d.ts → method-yQoZRX6j.d.ts} +7 -7
- package/dist/{navigation-ULXC5uFs.d.ts → navigation-Cy3fvjdT.d.ts} +2 -2
- package/dist/{navigation-BJKh5ucf.d.ts → navigation-DbIx-eWp.d.ts} +3 -3
- package/dist/{overview-B0C2Jc86.js → overview-BQk6WvtS.js} +3 -3
- package/dist/{overview-DaVwshbY.d.ts → overview-Bq6DqXr2.d.ts} +6 -6
- package/dist/{overview-Cy78uUKW.d.ts → overview-YYFEHa8T.d.ts} +6 -6
- package/dist/{primitives-DBllhZFN.js → primitives-1WQd5NT-.js} +2 -2
- package/dist/{primitives-DsRHkHGI.d.ts → primitives-BgkRZCRD.d.ts} +9 -9
- package/dist/{primitives-Bjj20ctf.d.ts → primitives-CXBFkjk0.d.ts} +9 -9
- package/dist/{properties-N8WgxEHE.js → properties-BTdEzx5f.js} +1 -1
- package/dist/{properties-BRaEgTX5.d.ts → properties-BrJy8EG2.d.ts} +5 -5
- package/dist/{properties-fj-2sAW8.d.ts → properties-sqAOq5FR.d.ts} +5 -5
- package/dist/{python-DsTU3C4E.js → python-DqdvqQ9I.js} +1 -1
- package/dist/routing.d.ts +1 -1
- package/dist/{ruby-CLGbdYN8.js → ruby-CHeld1ey.js} +1 -1
- package/dist/{sdk-zkHxx2nq.d.ts → sdk-BQEqCwI6.d.ts} +13 -13
- package/dist/{sdk-BBe_u8ZX.d.ts → sdk-CpRaFmFQ.d.ts} +14 -14
- package/dist/{sdk-BKdaidz1.js → sdk-DEoUlY8I.js} +1 -1
- package/dist/{sidebar-BaDPwqdV.d.ts → sidebar-CgBa9Ckc.d.ts} +5 -5
- package/dist/{sidebar-sPFdjATU.d.ts → sidebar-DImBt9YH.d.ts} +5 -5
- package/dist/{sidebar-BWDZQSmn.js → sidebar-D_cK7JN_.js} +2 -2
- package/dist/{snippets-DYnUt5eM.js → snippets-BiXJx1BL.js} +1 -1
- package/dist/{snippets-B0sKAjU-.d.ts → snippets-Cemr-6OZ.d.ts} +8 -8
- package/dist/{snippets-BQgrub4H.d.ts → snippets-DCiTB0N4.d.ts} +8 -8
- package/dist/spec.d.ts +3 -3
- package/dist/{style-gnVEeXFj.js → style-cJZFOvnF.js} +3 -0
- package/dist/style.d.ts +3 -0
- package/dist/style.js +1 -1
- package/dist/styles/primitives.css +11 -6
- package/dist/styles/search.css +51 -32
- package/dist/styles.css +62 -38
- package/dist/{typescript-CJraLOyM.js → typescript-C--P_L-R.js} +1 -1
- package/package.json +1 -1
- package/dist/routing-BcWYAHJp.d.ts +0 -54
package/dist/styles.css
CHANGED
|
@@ -1469,6 +1469,7 @@ a.stl-ui-button {
|
|
|
1469
1469
|
p {
|
|
1470
1470
|
display: block;
|
|
1471
1471
|
margin: 0 0 1em;
|
|
1472
|
+
line-height: 150%;
|
|
1472
1473
|
|
|
1473
1474
|
&:last-child {
|
|
1474
1475
|
margin: 0;
|
|
@@ -1496,21 +1497,24 @@ a.stl-ui-button {
|
|
|
1496
1497
|
.stldocs-root .stldocs-input {
|
|
1497
1498
|
border: 1px solid var(--stl-color-border);
|
|
1498
1499
|
background: var(--stl-color-background);
|
|
1499
|
-
border-radius:
|
|
1500
|
+
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
1500
1501
|
display: flex;
|
|
1501
|
-
gap: 0.5rem;
|
|
1502
1502
|
|
|
1503
1503
|
&:focus-within {
|
|
1504
1504
|
border-color: var(--stl-color-accent);
|
|
1505
1505
|
}
|
|
1506
1506
|
|
|
1507
|
+
&.stldocs-input-disabled {
|
|
1508
|
+
opacity: 0.5;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1507
1511
|
input,
|
|
1508
1512
|
.stldocs-masked-input-display {
|
|
1509
1513
|
flex-grow: 1;
|
|
1510
1514
|
border: none;
|
|
1511
1515
|
background-color: transparent;
|
|
1512
1516
|
margin: 0.5rem;
|
|
1513
|
-
font-size:
|
|
1517
|
+
font-size: 1rem;
|
|
1514
1518
|
letter-spacing: initial;
|
|
1515
1519
|
white-space: pre;
|
|
1516
1520
|
contain: content;
|
|
@@ -1531,8 +1535,7 @@ a.stl-ui-button {
|
|
|
1531
1535
|
}
|
|
1532
1536
|
|
|
1533
1537
|
.stldocs-icon {
|
|
1534
|
-
margin
|
|
1535
|
-
margin-bottom: auto;
|
|
1538
|
+
margin: auto 0.25rem auto 0.75rem;
|
|
1536
1539
|
}
|
|
1537
1540
|
}
|
|
1538
1541
|
|
|
@@ -1559,7 +1562,9 @@ a.stl-ui-button {
|
|
|
1559
1562
|
}
|
|
1560
1563
|
|
|
1561
1564
|
[data-stldocs-listview-selected='true'] > :first-child {
|
|
1562
|
-
background
|
|
1565
|
+
background:
|
|
1566
|
+
linear-gradient(var(--stl-color-ui-background-hover), var(--stl-color-ui-background-hover)),
|
|
1567
|
+
linear-gradient(var(--stl-color-ui-background), var(--stl-color-ui-background));
|
|
1563
1568
|
border-radius: 0.5rem;
|
|
1564
1569
|
}
|
|
1565
1570
|
}
|
|
@@ -2728,32 +2733,8 @@ a.stl-ui-button {
|
|
|
2728
2733
|
display: flex;
|
|
2729
2734
|
gap: 1rem;
|
|
2730
2735
|
|
|
2731
|
-
.
|
|
2732
|
-
display: flex;
|
|
2736
|
+
.stl-ui-button {
|
|
2733
2737
|
flex-grow: 1;
|
|
2734
|
-
gap: 0.5rem;
|
|
2735
|
-
border-radius: 8px;
|
|
2736
|
-
padding: 0.4em 0.8em;
|
|
2737
|
-
line-height: 1.5;
|
|
2738
|
-
justify-content: center;
|
|
2739
|
-
font-size: 0.9rem;
|
|
2740
|
-
cursor: pointer;
|
|
2741
|
-
background-color: transparent;
|
|
2742
|
-
border: 1px solid var(--stl-color-border);
|
|
2743
|
-
|
|
2744
|
-
&:hover,
|
|
2745
|
-
&[data-stldocs-toggle-selected='true'] {
|
|
2746
|
-
background-color: var(--stldocs-color-selected);
|
|
2747
|
-
|
|
2748
|
-
.stldocs-search-filter-count {
|
|
2749
|
-
color: var(--stl-color-inverse-foreground);
|
|
2750
|
-
background-color: var(--stl-color-foreground);
|
|
2751
|
-
}
|
|
2752
|
-
}
|
|
2753
|
-
|
|
2754
|
-
.stldocs-icon {
|
|
2755
|
-
margin: auto 0;
|
|
2756
|
-
}
|
|
2757
2738
|
|
|
2758
2739
|
.stldocs-search-filter-count {
|
|
2759
2740
|
font-size: 0.75rem;
|
|
@@ -2792,6 +2773,9 @@ a.stl-ui-button {
|
|
|
2792
2773
|
.stldocs-search-result-resource-path {
|
|
2793
2774
|
font-family: var(--stl-typography-font-mono);
|
|
2794
2775
|
color: var(--stl-color-foreground);
|
|
2776
|
+
overflow: hidden;
|
|
2777
|
+
text-overflow: ellipsis;
|
|
2778
|
+
white-space: nowrap;
|
|
2795
2779
|
}
|
|
2796
2780
|
}
|
|
2797
2781
|
}
|
|
@@ -2898,6 +2882,9 @@ a.stl-ui-button {
|
|
|
2898
2882
|
display: flex;
|
|
2899
2883
|
gap: 0.5rem;
|
|
2900
2884
|
font-size: 0.8rem;
|
|
2885
|
+
overflow: hidden;
|
|
2886
|
+
text-overflow: ellipsis;
|
|
2887
|
+
white-space: nowrap;
|
|
2901
2888
|
|
|
2902
2889
|
.stldocs-search-breadcrumb-item {
|
|
2903
2890
|
color: var(--stl-color-foreground-muted);
|
|
@@ -2908,31 +2895,36 @@ a.stl-ui-button {
|
|
|
2908
2895
|
margin-bottom: auto;
|
|
2909
2896
|
}
|
|
2910
2897
|
}
|
|
2898
|
+
|
|
2899
|
+
.stldocs-search-disabled-state-container {
|
|
2900
|
+
margin: auto;
|
|
2901
|
+
text-align: center;
|
|
2902
|
+
}
|
|
2911
2903
|
}
|
|
2912
2904
|
|
|
2913
2905
|
.stldocs-root .stldocs-search-modal {
|
|
2914
|
-
height:
|
|
2906
|
+
height: calc(100svh - var(--sl-nav-height));
|
|
2915
2907
|
width: 100%;
|
|
2916
2908
|
overflow: hidden;
|
|
2917
|
-
margin: 3rem auto;
|
|
2918
2909
|
display: none;
|
|
2919
2910
|
padding: 1rem;
|
|
2920
2911
|
inset: 0;
|
|
2921
|
-
max-width: 1024px;
|
|
2922
|
-
max-height: 80vh;
|
|
2923
2912
|
background-color: var(--stl-color-background);
|
|
2924
2913
|
color: var(--stl-color-foreground);
|
|
2925
|
-
|
|
2926
|
-
border
|
|
2914
|
+
gap: 0.5rem;
|
|
2915
|
+
border: none;
|
|
2927
2916
|
|
|
2928
2917
|
&:popover-open,
|
|
2929
2918
|
&[data-stldocs-modal-open='true'] {
|
|
2930
|
-
display:
|
|
2919
|
+
display: flex;
|
|
2920
|
+
flex-direction: column;
|
|
2931
2921
|
position: fixed;
|
|
2922
|
+
top: var(--sl-nav-height);
|
|
2932
2923
|
}
|
|
2933
2924
|
|
|
2934
2925
|
.stldocs-search-form {
|
|
2935
2926
|
height: 100%;
|
|
2927
|
+
width: 100%;
|
|
2936
2928
|
|
|
2937
2929
|
.stldocs-listview {
|
|
2938
2930
|
margin: 0.8rem 0;
|
|
@@ -2940,10 +2932,16 @@ a.stl-ui-button {
|
|
|
2940
2932
|
}
|
|
2941
2933
|
}
|
|
2942
2934
|
|
|
2935
|
+
.stldocs-search-modal-close-button {
|
|
2936
|
+
display: flex;
|
|
2937
|
+
justify-content: flex-end;
|
|
2938
|
+
}
|
|
2939
|
+
|
|
2943
2940
|
&::backdrop {
|
|
2944
2941
|
background-color: var(--stldocs-color-backdrop-overlay);
|
|
2945
2942
|
-webkit-backdrop-filter: blur(0.25rem);
|
|
2946
2943
|
backdrop-filter: blur(0.25rem);
|
|
2944
|
+
top: var(--sl-nav-height);
|
|
2947
2945
|
}
|
|
2948
2946
|
}
|
|
2949
2947
|
|
|
@@ -2953,6 +2951,32 @@ a.stl-ui-button {
|
|
|
2953
2951
|
}
|
|
2954
2952
|
}
|
|
2955
2953
|
|
|
2954
|
+
@media (min-width: 50rem) {
|
|
2955
|
+
.stldocs-root {
|
|
2956
|
+
.stldocs-search-modal {
|
|
2957
|
+
height: 100%;
|
|
2958
|
+
max-width: 1024px;
|
|
2959
|
+
max-height: 80vh;
|
|
2960
|
+
margin: 3rem auto;
|
|
2961
|
+
border: 1px solid var(--stl-color-border);
|
|
2962
|
+
border-radius: var(--stl-ui-layout-border-radius-sml);
|
|
2963
|
+
|
|
2964
|
+
.stldocs-search-modal-close-button {
|
|
2965
|
+
display: none;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
&:popover-open,
|
|
2969
|
+
&[data-stldocs-modal-open='true'] {
|
|
2970
|
+
top: 0;
|
|
2971
|
+
}
|
|
2972
|
+
|
|
2973
|
+
&::backdrop {
|
|
2974
|
+
top: 0;
|
|
2975
|
+
}
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
}
|
|
2979
|
+
|
|
2956
2980
|
@media (max-width: 50rem) {
|
|
2957
2981
|
.stldocs-root .stldocs-search-modal {
|
|
2958
2982
|
.stldocs-search-filter-label,
|
|
@@ -2,7 +2,7 @@ import { t as __exportAll } from "./chunk-CAbhIZi1.js";
|
|
|
2
2
|
import { a as useLanguage, l as useSpec, r as useDeclaration } from "./docs-CXqi26jB.js";
|
|
3
3
|
import { n as useLanguageComponents } from "./contexts-CLpvBI91.js";
|
|
4
4
|
import { t as useComponents } from "./use-components-DBx5LZk0.js";
|
|
5
|
-
import { t as style_default } from "./style-
|
|
5
|
+
import { t as style_default } from "./style-cJZFOvnF.js";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import * as SDKJSON from "@stainless/sdk-json";
|
|
2
|
-
|
|
3
|
-
//#region src/routing.d.ts
|
|
4
|
-
declare namespace routing_d_exports {
|
|
5
|
-
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateRoute, generateRouteList, getLanguageSnippet, getResource, isSupportedLanguage, parseRoute, parseStainlessPath, scrollToPath, trimStainlessPath, updateHistory, walkTree };
|
|
6
|
-
}
|
|
7
|
-
declare const Languages: readonly ["http", "node", "python", "go", "typescript", "terraform", "ruby", "java", "kotlin", "csharp", "php"];
|
|
8
|
-
declare const SupportedLanguageSyntaxes: string[];
|
|
9
|
-
type DocsLanguage = (typeof Languages)[number];
|
|
10
|
-
declare const LanguageNames: Record<DocsLanguage, string>;
|
|
11
|
-
declare function getLanguageSnippet(language: DocsLanguage): "node.default" | "go.default" | "python.default" | "terraform.default" | "http.curl" | "typescript.default" | "ruby.default" | "java.default" | "kotlin.default" | "csharp.default" | "php.default";
|
|
12
|
-
declare function isSupportedLanguage(language: string): language is DocsLanguage;
|
|
13
|
-
type ParsedStainlessPath = ReturnType<typeof parseStainlessPath>;
|
|
14
|
-
declare function parseStainlessPath(stainlessPath: string): {
|
|
15
|
-
resource: string[] | null;
|
|
16
|
-
method: string | null;
|
|
17
|
-
model: string | null;
|
|
18
|
-
routable: string | undefined;
|
|
19
|
-
} | null;
|
|
20
|
-
declare function trimStainlessPath(stainlessPath: string): string;
|
|
21
|
-
declare function getResource(stainlessPath: string): string | undefined;
|
|
22
|
-
declare function parseRoute(basePath: string, route: string): {
|
|
23
|
-
stainlessPath: string;
|
|
24
|
-
language: DocsLanguage;
|
|
25
|
-
};
|
|
26
|
-
declare function generateRoute(basePath: string, language: string, stainlessPath: string): string | null;
|
|
27
|
-
type SpecTreeEntry = {
|
|
28
|
-
data: SDKJSON.Method | SDKJSON.Resource | SDKJSON.Model;
|
|
29
|
-
path: string[];
|
|
30
|
-
};
|
|
31
|
-
declare function walkTree(spec: SDKJSON.Spec, includeModels?: boolean): Generator<SpecTreeEntry, void, any>;
|
|
32
|
-
type RouteEntry = {
|
|
33
|
-
title: string;
|
|
34
|
-
kind: SpecTreeEntry['data']['kind'];
|
|
35
|
-
language: DocsLanguage;
|
|
36
|
-
stainlessPath: string;
|
|
37
|
-
slug: string;
|
|
38
|
-
};
|
|
39
|
-
declare function generateRouteList({
|
|
40
|
-
spec,
|
|
41
|
-
languages,
|
|
42
|
-
excludeLanguages
|
|
43
|
-
}: {
|
|
44
|
-
spec: SDKJSON.Spec;
|
|
45
|
-
languages?: DocsLanguage[];
|
|
46
|
-
excludeLanguages?: DocsLanguage[];
|
|
47
|
-
}): RouteEntry[];
|
|
48
|
-
type ResourceOrMethod = SDKJSON.Resource | SDKJSON.Method;
|
|
49
|
-
declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
|
|
50
|
-
declare function expandToElement(el: HTMLElement | null): void;
|
|
51
|
-
declare function scrollToPath(stainlessPath: string): void;
|
|
52
|
-
declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
|
|
53
|
-
//#endregion
|
|
54
|
-
export { routing_d_exports as _, RouteEntry as a, updateHistory as b, expandToElement as c, generateRouteList as d, getLanguageSnippet as f, parseStainlessPath as g, parseRoute as h, ParsedStainlessPath as i, findNavigationPath as l, isSupportedLanguage as m, LanguageNames as n, SpecTreeEntry as o, getResource as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateRoute as u, scrollToPath as v, walkTree as x, trimStainlessPath as y };
|