@stainless-api/docs-ui 0.1.0-beta.9 → 0.1.0-beta.90
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-DC2_z7nh.d.ts +25 -0
- package/dist/chunk-pbuEa-1d.js +13 -0
- package/dist/component-generics-DYxBWv1v.js +42 -0
- package/dist/component-generics-q-ujwX4P.d.ts +30 -0
- package/dist/components/MaskedInput.d.ts +14 -0
- package/dist/components/MaskedInput.js +74 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +62 -0
- package/dist/components/icons.d.ts +72 -0
- package/dist/components/icons.js +953 -0
- package/dist/components/index.d.ts +10 -0
- package/dist/components/index.js +73 -0
- package/dist/components/method.d.ts +2 -0
- package/dist/components/method.js +95 -0
- package/dist/components/overview.d.ts +2 -0
- package/dist/components/overview.js +140 -0
- package/dist/components/primitives.d.ts +2 -0
- package/dist/components/primitives.js +251 -0
- package/dist/components/properties.d.ts +2 -0
- package/dist/components/properties.js +144 -0
- package/dist/components/sdk-sidebar.d.ts +2 -0
- package/dist/components/sdk-sidebar.js +50 -0
- package/dist/components/sdk.d.ts +2 -0
- package/dist/components/sdk.js +488 -0
- package/dist/components/snippets.d.ts +2 -0
- package/dist/components/snippets.js +184 -0
- package/dist/components/stl-sidebar.d.ts +2 -0
- package/dist/components/stl-sidebar.js +112 -0
- package/dist/contexts/component-generics.d.ts +2 -0
- package/dist/contexts/component-generics.js +2 -0
- package/dist/contexts/component-types.d.ts +6 -0
- package/dist/contexts/component-types.js +0 -0
- package/dist/contexts/component.d.ts +20 -0
- package/dist/contexts/component.js +21 -0
- package/dist/contexts/docs.d.ts +2 -0
- package/dist/contexts/docs.js +89 -0
- package/dist/contexts/index.d.ts +6 -0
- package/dist/contexts/index.js +43 -0
- package/dist/contexts/markdown.d.ts +2 -0
- package/dist/contexts/markdown.js +62 -0
- package/dist/contexts/navigation.d.ts +2 -0
- package/dist/contexts/navigation.js +21 -0
- package/dist/contexts/use-components.d.ts +5 -0
- package/dist/contexts/use-components.js +5 -0
- package/dist/docs-DSjdvCh5.d.ts +62 -0
- package/dist/index-DFr9Mesr.d.ts +1776 -0
- package/dist/index-gGDaf6FK.d.ts +464 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +8 -7542
- package/dist/languages/cli.d.ts +2 -0
- package/dist/languages/cli.js +165 -0
- package/dist/languages/csharp.d.ts +2 -0
- package/dist/languages/csharp.js +282 -0
- package/dist/languages/go.d.ts +2 -0
- package/dist/languages/go.js +302 -0
- package/dist/languages/http.d.ts +2 -0
- package/dist/languages/http.js +385 -0
- package/dist/languages/index.d.ts +2 -0
- package/dist/languages/index.js +31 -0
- package/dist/languages/java.d.ts +2 -0
- package/dist/languages/java.js +402 -0
- package/dist/languages/php.d.ts +2 -0
- package/dist/languages/php.js +311 -0
- package/dist/languages/python.d.ts +2 -0
- package/dist/languages/python.js +268 -0
- package/dist/languages/ruby.d.ts +2 -0
- package/dist/languages/ruby.js +386 -0
- package/dist/languages/terraform.d.ts +2 -0
- package/dist/languages/terraform.js +259 -0
- package/dist/languages/typescript.d.ts +2 -0
- package/dist/languages/typescript.js +448 -0
- package/dist/markdown/index.d.ts +11 -0
- package/dist/markdown/index.js +87 -0
- package/dist/markdown/md.d.ts +15 -0
- package/dist/markdown/md.js +39 -0
- package/dist/markdown/printer.d.ts +13 -0
- package/dist/markdown/printer.js +74 -0
- package/dist/markdown/utils.d.ts +28 -0
- package/dist/markdown/utils.js +31 -0
- package/dist/markdown-Cwdboi_V.d.ts +33 -0
- package/dist/method-CNRMOUfn.d.ts +59 -0
- package/dist/navigation-C9ckAfpV.d.ts +29 -0
- package/dist/overview-CDvh184n.d.ts +39 -0
- package/dist/primitives-DFE_4MvV.d.ts +107 -0
- package/dist/properties-CVwrzWVa.d.ts +54 -0
- package/dist/routing-yTSG7nWM.d.ts +61 -0
- package/dist/routing.d.ts +2 -0
- package/dist/routing.js +174 -150
- package/dist/sdk-BkW3MDco.d.ts +128 -0
- package/dist/sdk-sidebar-BpDlOMat.d.ts +15 -0
- package/dist/spec.d.ts +65 -0
- package/dist/spec.js +165 -0
- package/dist/stl-sidebar-CKrR5ZGs.d.ts +58 -0
- package/dist/style.d.ts +178 -0
- package/dist/style.js +178 -0
- package/dist/styles/main.css +765 -755
- package/dist/styles/primitives.css +359 -442
- package/dist/styles/resets.css +25 -41
- package/dist/styles/search.css +187 -270
- package/dist/styles/sidebar.css +155 -69
- package/dist/styles/variables.css +23 -89
- package/dist/styles.css +3171 -0
- package/dist/utils.d.ts +20 -0
- package/dist/utils.js +52 -0
- package/package.json +75 -22
- package/dist/mcp.js +0 -16003
- package/dist/styles/snippets.css +0 -132
- package/src/components/breadcrumbs.tsx +0 -94
- package/src/components/chat.tsx +0 -154
- package/src/components/dropdown.tsx +0 -91
- package/src/components/icons.tsx +0 -584
- package/src/components/index.ts +0 -9
- package/src/components/method.tsx +0 -146
- package/src/components/overview.tsx +0 -160
- package/src/components/primitives.tsx +0 -284
- package/src/components/properties.tsx +0 -130
- package/src/components/scripts/dropdown.ts +0 -78
- package/src/components/sdk.tsx +0 -403
- package/src/components/sidebar.tsx +0 -99
- package/src/components/snippets.tsx +0 -180
- package/src/contexts/component-generics.tsx +0 -48
- package/src/contexts/component-types.tsx +0 -5
- package/src/contexts/component.tsx +0 -32
- package/src/contexts/docs.tsx +0 -75
- package/src/contexts/index.tsx +0 -17
- package/src/contexts/markdown.tsx +0 -43
- package/src/contexts/navigation.tsx +0 -44
- package/src/contexts/search.tsx +0 -28
- package/src/contexts/use-components.tsx +0 -4
- package/src/index.ts +0 -6
- package/src/languages/go.tsx +0 -281
- package/src/languages/http.tsx +0 -321
- package/src/languages/index.ts +0 -26
- package/src/languages/java.tsx +0 -358
- package/src/languages/python.tsx +0 -255
- package/src/languages/ruby.tsx +0 -320
- package/src/languages/typescript.tsx +0 -393
- package/src/markdown/index.ts +0 -107
- package/src/markdown/md.ts +0 -45
- package/src/markdown/utils.ts +0 -49
- package/src/routing.ts +0 -238
- package/src/search/form.tsx +0 -127
- package/src/search/index.tsx +0 -1
- package/src/search/indexer.ts +0 -246
- package/src/search/mcp.ts +0 -61
- package/src/search/printer.tsx +0 -86
- package/src/search/providers/algolia.ts +0 -88
- package/src/search/providers/fuse.ts +0 -19
- package/src/search/providers/pagefind.ts +0 -17
- package/src/search/providers/walker.ts +0 -30
- package/src/search/results.tsx +0 -182
- package/src/search/state.ts +0 -64
- package/src/search/types.ts +0 -116
- package/src/style.ts +0 -196
- package/src/styles/main.css +0 -986
- package/src/styles/primitives.css +0 -580
- package/src/styles/resets.css +0 -39
- package/src/styles/search.css +0 -341
- package/src/styles/sidebar.css +0 -85
- package/src/styles/snippets.css +0 -130
- package/src/styles/variables.css +0 -86
- package/src/utils.ts +0 -41
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { h as Resource, u as LanguageDeclNodes, v as Spec, y as SpecLanguage } from "./index-DFr9Mesr.js";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/contexts/docs.d.ts
|
|
6
|
+
type ContentPanelLayout = 'double-pane' | 'single-pane';
|
|
7
|
+
type PropertySettingsType = {
|
|
8
|
+
types?: 'simple' | 'rich';
|
|
9
|
+
includeModelProperties?: boolean | 'method-page';
|
|
10
|
+
collapseDescription?: boolean | 'show-first-line';
|
|
11
|
+
showTitle?: boolean;
|
|
12
|
+
expandDepth?: number;
|
|
13
|
+
};
|
|
14
|
+
type DocsContextType = {
|
|
15
|
+
language: SpecLanguage;
|
|
16
|
+
spec: Spec | null;
|
|
17
|
+
settings?: {
|
|
18
|
+
properties?: PropertySettingsType;
|
|
19
|
+
contentPanelLayout?: ContentPanelLayout;
|
|
20
|
+
virtualExpanders?: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
declare function useDocs(): DocsContextType;
|
|
24
|
+
declare function useSpec(): Spec | null;
|
|
25
|
+
declare function useSettings(): {
|
|
26
|
+
properties?: PropertySettingsType;
|
|
27
|
+
contentPanelLayout?: ContentPanelLayout;
|
|
28
|
+
virtualExpanders?: boolean;
|
|
29
|
+
} | undefined;
|
|
30
|
+
declare function useSnippets(stainlessPath: string, language?: SpecLanguage): {
|
|
31
|
+
[key: `custom:${string}`]: {
|
|
32
|
+
content: string;
|
|
33
|
+
};
|
|
34
|
+
default: {
|
|
35
|
+
content: string;
|
|
36
|
+
};
|
|
37
|
+
} | undefined;
|
|
38
|
+
declare function useSnippetIds(stainlessPath: string, language?: SpecLanguage): SnippetId[] | undefined;
|
|
39
|
+
type SnippetId = keyof NonNullable<ReturnType<typeof useSnippets>>;
|
|
40
|
+
declare function useSnippet(stainlessPath: string, language?: SpecLanguage, snippetId?: SnippetId): string | undefined;
|
|
41
|
+
declare function useSnippetResponse(stainlessPath: string, snippetId?: SnippetId): {
|
|
42
|
+
status?: string;
|
|
43
|
+
content: string;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
type Declaration = LanguageDeclNodes[SpecLanguage];
|
|
46
|
+
declare function useDeclaration<Required extends boolean>(stainlessPath: string, required: Required, language?: SpecLanguage): (Required extends true ? never : undefined) | Declaration;
|
|
47
|
+
declare function useAvailableLanguages(stainlessPath: string): SpecLanguage[];
|
|
48
|
+
declare function useIgnoredResources(): string[];
|
|
49
|
+
declare function useResource(name: string): Resource | undefined;
|
|
50
|
+
declare function useLanguage(): "http" | "node" | "python" | "go" | "typescript" | "terraform" | "ruby" | "java" | "kotlin" | "csharp" | "php" | "cli";
|
|
51
|
+
declare function useContentPanelLayout(): ContentPanelLayout;
|
|
52
|
+
type DocsProviderProps = DocsContextType & {
|
|
53
|
+
children: React$1.ReactNode;
|
|
54
|
+
};
|
|
55
|
+
declare function DocsProvider({
|
|
56
|
+
spec,
|
|
57
|
+
language,
|
|
58
|
+
settings,
|
|
59
|
+
children
|
|
60
|
+
}: DocsProviderProps): react_jsx_runtime0.JSX.Element;
|
|
61
|
+
//#endregion
|
|
62
|
+
export { useSnippetResponse as _, DocsProviderProps as a, useContentPanelLayout as c, useIgnoredResources as d, useLanguage as f, useSnippetIds as g, useSnippet as h, DocsProvider as i, useDeclaration as l, useSettings as m, Declaration as n, PropertySettingsType as o, useResource as p, DocsContextType as r, useAvailableLanguages as s, ContentPanelLayout as t, useDocs as u, useSnippets as v, useSpec as y };
|