@stainless-api/docs-ui 0.1.0-beta.64 → 0.1.0-beta.66
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--UnnviuM.d.ts → breadcrumbs-Cvm5Ifm7.d.ts} +2 -2
- package/dist/{breadcrumbs-D-5T4feJ.d.ts → breadcrumbs-Dko96jXU.d.ts} +2 -2
- package/dist/{breadcrumbs-LWaLZTKQ.js → breadcrumbs-qxCW6sK2.js} +2 -2
- package/dist/{cli-DxaqMIw8.js → cli-ByPDdxBS.js} +3 -3
- package/dist/{component-DJPAOOcm.js → component-CjdWk4ni.js} +2 -2
- package/dist/{component-generics-MlWbpDgJ.d.ts → component-generics-DpFQSmh3.d.ts} +2 -2
- package/dist/{component-generics-B7o0uTDM.d.ts → component-generics-ILcegpY7.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 +5 -5
- package/dist/components/icons.d.ts +12 -12
- package/dist/components/index.d.ts +10 -10
- package/dist/components/index.js +13 -13
- package/dist/components/method.d.ts +1 -1
- package/dist/components/method.js +5 -5
- package/dist/components/overview.d.ts +1 -1
- package/dist/components/overview.js +6 -6
- package/dist/components/primitives.d.ts +1 -1
- package/dist/components/primitives.js +4 -4
- package/dist/components/properties.d.ts +1 -1
- package/dist/components/properties.js +4 -4
- package/dist/components/sdk-sidebar.d.ts +1 -1
- package/dist/components/sdk-sidebar.js +5 -5
- package/dist/components/sdk.d.ts +1 -1
- package/dist/components/sdk.js +4 -4
- package/dist/components/snippets.d.ts +2 -2
- package/dist/components/snippets.js +4 -4
- package/dist/components/stl-sidebar.d.ts +1 -1
- package/dist/components/stl-sidebar.js +1 -1
- package/dist/{components-BDWui61-.js → components-BPWzaaJS.js} +9 -9
- package/dist/contexts/component-generics.d.ts +1 -1
- package/dist/contexts/component-types.d.ts +11 -11
- package/dist/contexts/component.d.ts +14 -14
- package/dist/contexts/component.js +24 -24
- package/dist/contexts/docs.d.ts +2 -2
- package/dist/contexts/docs.js +2 -2
- package/dist/contexts/index.d.ts +17 -17
- package/dist/contexts/index.js +4 -4
- 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/use-components.d.ts +10 -10
- package/dist/{contexts-DMjqoc7S.js → contexts-CVj20VV4.js} +3 -2
- package/dist/{csharp-DG58HgOR.js → csharp-D6_jlynY.js} +2 -2
- package/dist/{docs-6PYi1eEV.js → docs-BmOB2f-I.js} +4 -1
- package/dist/{docs-QzBZ07DA.d.ts → docs-DlLOlML9.d.ts} +5 -4
- package/dist/{docs-B7UKWxWn.d.ts → docs-Rs5JBYig.d.ts} +6 -5
- package/dist/{go-FsjdFhA1.js → go-COaHV3Hc.js} +2 -2
- package/dist/{http-BjtWXfQq.js → http-DwJsFd9q.js} +34 -5
- package/dist/{index-DRblqs_x.d.ts → index-CTFc7TGI.d.ts} +9 -9
- package/dist/{index-DbDRmfDC.d.ts → index-CsJEVcDt.d.ts} +39 -39
- package/dist/{index-DJvggpZ-.d.ts → index-DDrwJ0SM.d.ts} +9 -9
- package/dist/{index-D7cYRCX9.d.ts → index-aj8DLe5b.d.ts} +39 -39
- package/dist/index.d.ts +16 -16
- package/dist/index.js +24 -24
- package/dist/{java-Bd6ywsPr.js → java-CxGSJVvv.js} +3 -3
- package/dist/languages/cli.d.ts +11 -11
- package/dist/languages/cli.js +15 -15
- package/dist/languages/csharp.d.ts +11 -11
- package/dist/languages/csharp.js +4 -4
- package/dist/languages/go.d.ts +11 -11
- package/dist/languages/go.js +4 -4
- package/dist/languages/http.d.ts +11 -11
- package/dist/languages/http.js +14 -14
- package/dist/languages/index.d.ts +11 -11
- package/dist/languages/index.js +23 -23
- package/dist/languages/java.d.ts +11 -11
- package/dist/languages/java.js +4 -4
- package/dist/languages/python.d.ts +11 -11
- package/dist/languages/python.js +4 -4
- package/dist/languages/ruby.d.ts +11 -11
- package/dist/languages/ruby.js +4 -4
- package/dist/languages/terraform.d.ts +11 -11
- package/dist/languages/terraform.js +4 -4
- package/dist/languages/typescript.d.ts +11 -11
- package/dist/languages/typescript.js +4 -4
- package/dist/languages-Doc82_aw.js +30 -0
- package/dist/markdown/index.d.ts +1 -1
- package/dist/markdown/index.js +24 -24
- package/dist/markdown/printer.d.ts +1 -1
- package/dist/markdown/printer.js +25 -25
- package/dist/markdown/utils.d.ts +3 -3
- package/dist/{markdown-Dg9HMal8.d.ts → markdown-9xLfF9XX.d.ts} +2 -2
- package/dist/{markdown-DHjcD13O.js → markdown-CTKHMLVr.js} +1 -1
- package/dist/{markdown-DJp68jgE.d.ts → markdown-CmIFP37L.d.ts} +2 -2
- package/dist/{method-Cz2lZSmc.js → method-BPDUyBlD.js} +9 -3
- package/dist/{method-Co4oGHq0.d.ts → method-Big14PnW.d.ts} +6 -6
- package/dist/{method-O9UBNEp2.d.ts → method-DUHSNgiz.d.ts} +6 -6
- package/dist/{navigation-D3NgO72i.d.ts → navigation-C7KdkOOQ.d.ts} +2 -2
- package/dist/{navigation-B4vW2BCl.d.ts → navigation-CCM6dFfw.d.ts} +3 -3
- package/dist/{overview-Cj_1NjH4.d.ts → overview-9WETRMa1.d.ts} +6 -6
- package/dist/{overview-LaDqIxPP.d.ts → overview-CKllPxLz.d.ts} +6 -6
- package/dist/{overview-Rmj_2SSL.js → overview-FVLGi7mE.js} +6 -6
- package/dist/{primitives-BVImQZIK.d.ts → primitives-CRE7xsC3.d.ts} +11 -11
- package/dist/{primitives-ClTSL56K.d.ts → primitives-D9X5xoGL.d.ts} +11 -11
- package/dist/{primitives-CLz53F72.js → primitives-WC1BbBHN.js} +3 -3
- package/dist/{properties-DrXRF5dN.d.ts → properties-7szOHHaS.d.ts} +5 -5
- package/dist/{properties-USEPePSD.js → properties-BnbBKd5a.js} +3 -2
- package/dist/{properties-CjcmtaiQ.d.ts → properties-C9W4QJ_F.d.ts} +5 -5
- package/dist/{python-DuKMXtnf.js → python-DsTuWCKE.js} +2 -2
- package/dist/routing.d.ts +1 -1
- package/dist/{ruby-caNh8R-U.js → ruby-CHdEJiJl.js} +3 -3
- package/dist/{sdk-BiZDCG58.d.ts → sdk-Bpy1Xo26.d.ts} +15 -15
- package/dist/{sdk-BjiDGP5c.js → sdk-CMMvOAdj.js} +10 -7
- package/dist/{sdk-hxjRpJH0.d.ts → sdk-DjgaAjFT.d.ts} +14 -14
- package/dist/{sdk-sidebar-f7SS4xxq.d.ts → sdk-sidebar-CkzuH3dr.d.ts} +2 -2
- package/dist/{sdk-sidebar-DdpmtIRH.js → sdk-sidebar-FL7e7_BM.js} +1 -1
- package/dist/{sdk-sidebar-COHATE2-.d.ts → sdk-sidebar-NCBSWuUW.d.ts} +2 -2
- package/dist/{snippets-Ci86b9RQ.d.ts → snippets--z2u74gP.d.ts} +8 -8
- package/dist/{snippets-DSwfbtDo.js → snippets-BehbU3rt.js} +4 -4
- package/dist/{snippets-DWblYtQ8.d.ts → snippets-C0caK7DR.d.ts} +8 -8
- package/dist/spec.d.ts +3 -3
- package/dist/{stl-sidebar-BKBJelb1.d.ts → stl-sidebar-DSkUHwcU.d.ts} +2 -2
- package/dist/{stl-sidebar-BUEH7mR_.d.ts → stl-sidebar-DXlcKE-a.d.ts} +2 -2
- package/dist/{stl-sidebar-Cygo6VjR.js → stl-sidebar-WtimNrk1.js} +1 -1
- package/dist/{style-Btdhlyzs.js → style-HpXpcJ9v.js} +1 -0
- package/dist/style.d.ts +1 -0
- package/dist/style.js +1 -1
- package/dist/styles/main.css +8 -2
- package/dist/styles/primitives.css +1 -1
- package/dist/styles.css +11 -6
- package/dist/{terraform-C5niSkCy.js → terraform-B95X4rNK.js} +3 -3
- package/dist/{typescript-MlS1z4sG.js → typescript-n46M9OtL.js} +3 -3
- package/package.json +2 -2
- package/dist/languages-BN8-A3YZ.js +0 -30
- package/dist/routing-BEbg8P4_.d.ts +0 -61
package/dist/styles/main.css
CHANGED
|
@@ -410,8 +410,7 @@
|
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
412
|
|
|
413
|
-
.stldocs-root .stldocs-method
|
|
414
|
-
.stldocs-root .stldocs-resource-content {
|
|
413
|
+
.stldocs-root .stldocs-method {
|
|
415
414
|
.stldocs-method-content-column {
|
|
416
415
|
display: contents;
|
|
417
416
|
}
|
|
@@ -479,6 +478,13 @@
|
|
|
479
478
|
}
|
|
480
479
|
}
|
|
481
480
|
|
|
481
|
+
/* TODO(soon): we shouldn't be copying these styles here. */
|
|
482
|
+
.stldocs-method-available-languages a {
|
|
483
|
+
color: var(--stl-color-link-foreground);
|
|
484
|
+
text-decoration-color: rgb(from currentColor r g b / calc(alpha * var(--stl-opacity-level-040)));
|
|
485
|
+
transition: text-decoration-color 0.1s ease-out;
|
|
486
|
+
}
|
|
487
|
+
|
|
482
488
|
.stldocs-method-info-section {
|
|
483
489
|
display: flex;
|
|
484
490
|
gap: 0.5rem;
|
package/dist/styles.css
CHANGED
|
@@ -193,7 +193,7 @@ body {
|
|
|
193
193
|
letter-spacing: normal;
|
|
194
194
|
|
|
195
195
|
/* inline code */
|
|
196
|
-
&:where(:not(pre >
|
|
196
|
+
&:where(:not(pre > code)) {
|
|
197
197
|
color: var(--stl-color-foreground);
|
|
198
198
|
padding: 0 0.2em;
|
|
199
199
|
background-color: rgb(from var(--stl-color-foreground) r g b / 0.1);
|
|
@@ -1218,8 +1218,7 @@ a.stl-ui-button {
|
|
|
1218
1218
|
}
|
|
1219
1219
|
&.stl-ui-badge--intent-info {
|
|
1220
1220
|
background-color: var(--stl-color-muted-background);
|
|
1221
|
-
color: var(--stl-color-foreground
|
|
1222
|
-
--stl-ui-badge-icon-opacity: var(--stl-opacity-level-040);
|
|
1221
|
+
color: var(--stl-color-foreground);
|
|
1223
1222
|
border-color: var(--stl-color-border);
|
|
1224
1223
|
&.stl-ui-badge--solid {
|
|
1225
1224
|
background-color: var(--stl-color-inverse-background);
|
|
@@ -1567,7 +1566,7 @@ a.stl-ui-button {
|
|
|
1567
1566
|
&[open],
|
|
1568
1567
|
&[data-open='true'] {
|
|
1569
1568
|
& > .stldocs-expander-summary {
|
|
1570
|
-
.stldocs-type-preview-content {
|
|
1569
|
+
.stldocs-type-preview[data-stldocs-type-preview='properties'] .stldocs-type-preview-content {
|
|
1571
1570
|
display: none;
|
|
1572
1571
|
}
|
|
1573
1572
|
|
|
@@ -2247,8 +2246,7 @@ a.stl-ui-button {
|
|
|
2247
2246
|
}
|
|
2248
2247
|
}
|
|
2249
2248
|
|
|
2250
|
-
.stldocs-root .stldocs-method
|
|
2251
|
-
.stldocs-root .stldocs-resource-content {
|
|
2249
|
+
.stldocs-root .stldocs-method {
|
|
2252
2250
|
.stldocs-method-content-column {
|
|
2253
2251
|
display: contents;
|
|
2254
2252
|
}
|
|
@@ -2316,6 +2314,13 @@ a.stl-ui-button {
|
|
|
2316
2314
|
}
|
|
2317
2315
|
}
|
|
2318
2316
|
|
|
2317
|
+
/* TODO(soon): we shouldn't be copying these styles here. */
|
|
2318
|
+
.stldocs-method-available-languages a {
|
|
2319
|
+
color: var(--stl-color-link-foreground);
|
|
2320
|
+
text-decoration-color: rgb(from currentColor r g b / calc(alpha * var(--stl-opacity-level-040)));
|
|
2321
|
+
transition: text-decoration-color 0.1s ease-out;
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2319
2324
|
.stldocs-method-info-section {
|
|
2320
2325
|
display: flex;
|
|
2321
2326
|
gap: 0.5rem;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { i as useDeclaration } from "./docs-
|
|
3
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
2
|
+
import { i as useDeclaration } from "./docs-BmOB2f-I.js";
|
|
3
|
+
import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
|
|
4
4
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
5
|
-
import { t as style_default } from "./style-
|
|
5
|
+
import { t as style_default } from "./style-HpXpcJ9v.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import clsx from "clsx";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import {
|
|
3
|
-
import { n as useLanguageComponents } from "./contexts-
|
|
2
|
+
import { d as useSpec, i as useDeclaration, s as useLanguage } from "./docs-BmOB2f-I.js";
|
|
3
|
+
import { n as useLanguageComponents } from "./contexts-CVj20VV4.js";
|
|
4
4
|
import { t as useComponents } from "./use-components-BUz3GbO4.js";
|
|
5
|
-
import { t as style_default } from "./style-
|
|
5
|
+
import { t as style_default } from "./style-HpXpcJ9v.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,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.66",
|
|
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.46"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "24.10.9",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-BN_g-Awi.js";
|
|
2
|
-
import { o as typescript_exports } from "./typescript-MlS1z4sG.js";
|
|
3
|
-
import { o as java_exports } from "./java-Bd6ywsPr.js";
|
|
4
|
-
import { o as go_exports } from "./go-FsjdFhA1.js";
|
|
5
|
-
import { o as python_exports } from "./python-DuKMXtnf.js";
|
|
6
|
-
import { o as ruby_exports } from "./ruby-caNh8R-U.js";
|
|
7
|
-
import { s as http_exports } from "./http-BjtWXfQq.js";
|
|
8
|
-
import { o as csharp_exports } from "./csharp-DG58HgOR.js";
|
|
9
|
-
import { o as cli_exports } from "./cli-DxaqMIw8.js";
|
|
10
|
-
import { c as terraform_exports } from "./terraform-C5niSkCy.js";
|
|
11
|
-
|
|
12
|
-
//#region src/languages/index.ts
|
|
13
|
-
var languages_exports = /* @__PURE__ */ __exportAll({
|
|
14
|
-
cli: () => cli_exports,
|
|
15
|
-
csharp: () => csharp_exports,
|
|
16
|
-
go: () => go_exports,
|
|
17
|
-
http: () => http_exports,
|
|
18
|
-
java: () => java_exports,
|
|
19
|
-
kotlin: () => kotlin,
|
|
20
|
-
node: () => node,
|
|
21
|
-
python: () => python_exports,
|
|
22
|
-
ruby: () => ruby_exports,
|
|
23
|
-
terraform: () => terraform_exports,
|
|
24
|
-
typescript: () => typescript_exports
|
|
25
|
-
});
|
|
26
|
-
const node = typescript_exports;
|
|
27
|
-
const kotlin = java_exports;
|
|
28
|
-
|
|
29
|
-
//#endregion
|
|
30
|
-
export { languages_exports as n, node as r, kotlin as t };
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { _ as Spec, d as Method, f as Model, m as Resource } from "./index-CwjGm9zX.js";
|
|
2
|
-
|
|
3
|
-
//#region src/routing.d.ts
|
|
4
|
-
declare namespace routing_d_exports {
|
|
5
|
-
export { DocsLanguage, LanguageNames, Languages, ParsedStainlessPath, RouteEntry, SpecTreeEntry, SupportedLanguageSyntaxes, expandToElement, findNavigationPath, generateMissingRouteList, 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", "cli"];
|
|
8
|
-
declare const SupportedLanguageSyntaxes: string[];
|
|
9
|
-
type DocsLanguage = (typeof Languages)[number];
|
|
10
|
-
declare const LanguageNames: Record<DocsLanguage, string>;
|
|
11
|
-
declare function getLanguageSnippet(language: DocsLanguage): "cli.default" | "csharp.default" | "go.default" | "http.curl" | "java.default" | "kotlin.default" | "node.default" | "php.default" | "python.default" | "ruby.default" | "terraform.default" | "typescript.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: Method | Resource | Model;
|
|
29
|
-
path: string[];
|
|
30
|
-
};
|
|
31
|
-
declare function walkTree(spec: 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: Spec;
|
|
45
|
-
languages?: DocsLanguage[];
|
|
46
|
-
excludeLanguages?: DocsLanguage[];
|
|
47
|
-
}): RouteEntry[];
|
|
48
|
-
declare function generateMissingRouteList({
|
|
49
|
-
spec,
|
|
50
|
-
basePath
|
|
51
|
-
}: {
|
|
52
|
-
spec: Spec;
|
|
53
|
-
basePath: string;
|
|
54
|
-
}): string[];
|
|
55
|
-
type ResourceOrMethod = Resource | Method;
|
|
56
|
-
declare function findNavigationPath(items: ResourceOrMethod[], target: string): string[] | undefined;
|
|
57
|
-
declare function expandToElement(el: HTMLElement | null): void;
|
|
58
|
-
declare function scrollToPath(stainlessPath: string): void;
|
|
59
|
-
declare function updateHistory(basePath: string, language: DocsLanguage, stainlessPath: string): void;
|
|
60
|
-
//#endregion
|
|
61
|
-
export { walkTree as S, parseStainlessPath as _, RouteEntry as a, trimStainlessPath as b, expandToElement as c, generateRoute as d, generateRouteList as f, parseRoute as g, isSupportedLanguage as h, ParsedStainlessPath as i, findNavigationPath as l, getResource as m, LanguageNames as n, SpecTreeEntry as o, getLanguageSnippet as p, Languages as r, SupportedLanguageSyntaxes as s, DocsLanguage as t, generateMissingRouteList as u, routing_d_exports as v, updateHistory as x, scrollToPath as y };
|