@stainless-api/docs-ui 0.1.0-beta.4 → 0.1.0-beta.40
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-CZg0Fk4V.d.ts +20 -0
- package/dist/chunk-Bf_Gc_jT.js +18 -0
- package/dist/component-generics-BLXXX1dz.d.ts +30 -0
- package/dist/component-generics-D3ybuN5r.js +45 -0
- package/dist/components/breadcrumbs.d.ts +2 -0
- package/dist/components/breadcrumbs.js +15 -0
- package/dist/components/icons.d.ts +50 -0
- package/dist/components/icons.js +3 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/components/index.js +15 -0
- package/dist/components/method.d.ts +2 -0
- package/dist/components/method.js +15 -0
- package/dist/components/overview.d.ts +2 -0
- package/dist/components/overview.js +15 -0
- package/dist/components/primitives.d.ts +2 -0
- package/dist/components/primitives.js +15 -0
- package/dist/components/properties.d.ts +2 -0
- package/dist/components/properties.js +15 -0
- package/dist/components/sdk.d.ts +3 -0
- package/dist/components/sdk.js +15 -0
- package/dist/components/sidebar.d.ts +2 -0
- package/dist/components/sidebar.js +15 -0
- package/dist/components/snippets.d.ts +4 -0
- package/dist/components/snippets.js +15 -0
- package/dist/contexts/component-generics.d.ts +2 -0
- package/dist/contexts/component-generics.js +3 -0
- package/dist/contexts/component-types.d.ts +17 -0
- package/dist/contexts/component-types.js +0 -0
- package/dist/contexts/component.d.ts +30 -0
- package/dist/contexts/component.js +15 -0
- package/dist/contexts/docs.d.ts +2 -0
- package/dist/contexts/docs.js +3 -0
- package/dist/contexts/index.d.ts +19 -0
- package/dist/contexts/index.js +15 -0
- package/dist/contexts/markdown.d.ts +2 -0
- package/dist/contexts/markdown.js +4 -0
- package/dist/contexts/navigation.d.ts +3 -0
- package/dist/contexts/navigation.js +3 -0
- package/dist/contexts/search.d.ts +4 -0
- package/dist/contexts/search.js +15 -0
- package/dist/contexts/use-components.d.ts +15 -0
- package/dist/contexts/use-components.js +4 -0
- package/dist/contexts-B-OYzYpz.js +3837 -0
- package/dist/docs-BeJaKOCE.d.ts +46 -0
- package/dist/docs-CopwX9a7.js +54 -0
- package/dist/icons-yb-Jhkmg.js +753 -0
- package/dist/index-CBi59jcw.d.ts +240 -0
- package/dist/index-DT1wzg21.d.ts +15 -0
- package/dist/index-DteYqCJO.d.ts +14 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +15 -7542
- package/dist/languages/go.d.ts +12 -0
- package/dist/languages/go.js +15 -0
- package/dist/languages/http.d.ts +12 -0
- package/dist/languages/http.js +15 -0
- package/dist/languages/index.d.ts +12 -0
- package/dist/languages/index.js +15 -0
- package/dist/languages/java.d.ts +12 -0
- package/dist/languages/java.js +15 -0
- package/dist/languages/python.d.ts +12 -0
- package/dist/languages/python.js +15 -0
- package/dist/languages/ruby.d.ts +12 -0
- package/dist/languages/ruby.js +15 -0
- package/dist/languages/typescript.d.ts +12 -0
- package/dist/languages/typescript.js +15 -0
- package/dist/markdown/index.d.ts +12 -0
- package/dist/markdown/index.js +15 -0
- package/dist/markdown/md.d.ts +15 -0
- package/dist/markdown/md.js +3 -0
- package/dist/markdown/utils.d.ts +4 -0
- package/dist/markdown/utils.js +3 -0
- package/dist/markdown-DTVxnxGP.d.ts +22 -0
- package/dist/markdown-Diyg-eof.js +48 -0
- package/dist/md-DxiV1_vy.js +41 -0
- package/dist/method-DHjDGGA_.d.ts +71 -0
- package/dist/navigation-CGr5_w6z.js +24 -0
- package/dist/navigation-rt_B_1lt.d.ts +29 -0
- package/dist/overview-CKJV2xUO.d.ts +39 -0
- package/dist/pagefind-BaK1krMe.js +15 -0
- package/dist/primitives-CiVFjnRA.d.ts +99 -0
- package/dist/properties-Z45x-uLZ.d.ts +46 -0
- package/dist/routing-DNN8R6bZ.d.ts +54 -0
- package/dist/routing-qs2YNG9o.js +189 -0
- package/dist/routing.d.ts +2 -0
- package/dist/routing.js +3 -180
- package/dist/sdk-DDWWoPPD.d.ts +119 -0
- package/dist/search/index.d.ts +26 -0
- package/dist/search/index.js +334 -0
- package/dist/search/providers/algolia.d.ts +24 -0
- package/dist/search/providers/algolia.js +15 -0
- package/dist/search/providers/fuse.d.ts +18 -0
- package/dist/search/providers/fuse.js +30 -0
- package/dist/search/providers/pagefind.d.ts +7 -0
- package/dist/search/providers/pagefind.js +3 -0
- package/dist/search/providers/walker.d.ts +9 -0
- package/dist/search/providers/walker.js +34 -0
- package/dist/search/types.d.ts +3 -0
- package/dist/search/types.js +3 -0
- package/dist/search-CCDWCiAd.d.ts +21 -0
- package/dist/sidebar-DrtsF85U.d.ts +36 -0
- package/dist/snippets-B2EEG7AK.d.ts +46 -0
- package/dist/spec.d.ts +65 -0
- package/dist/spec.js +167 -0
- package/dist/style-BhhgPVF6.js +165 -0
- package/dist/style-p4qTfnmO.d.ts +164 -0
- package/dist/style.d.ts +2 -0
- package/dist/style.js +3 -0
- package/dist/styles/main.css +724 -754
- package/dist/styles/main.js +0 -0
- package/dist/styles/primitives.css +287 -466
- package/dist/styles/primitives.js +0 -0
- package/dist/styles/resets.css +31 -41
- package/dist/styles/resets.js +0 -0
- package/dist/styles/search.css +175 -274
- package/dist/styles/search.js +0 -0
- package/dist/styles/sidebar.css +59 -60
- package/dist/styles/sidebar.js +0 -0
- package/dist/styles/variables.css +26 -89
- package/dist/styles/variables.js +0 -0
- package/dist/styles.css +1753 -0
- package/dist/styles.mjs +1 -0
- package/dist/types-DNSz4kuM.d.ts +83 -0
- package/dist/types-__XoFvJ_.js +34 -0
- package/dist/use-components-BHEwm0mE.js +7 -0
- package/dist/utils-CA3mYNaX.d.ts +21 -0
- package/dist/utils-D43p_yTd.d.ts +14 -0
- package/dist/utils-FnJ4tyuN.js +32 -0
- package/dist/utils-Jo_o4DX9.js +31 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +4 -0
- package/package.json +84 -19
- 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 -144
- package/src/components/overview.tsx +0 -159
- 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 -402
- package/src/components/sidebar.tsx +0 -99
- package/src/components/snippets.tsx +0 -179
- 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 -181
- package/src/search/state.ts +0 -64
- package/src/search/types.ts +0 -116
- package/src/style.ts +0 -197
- package/src/styles/main.css +0 -993
- package/src/styles/primitives.css +0 -572
- package/src/styles/resets.css +0 -47
- package/src/styles/search.css +0 -342
- package/src/styles/sidebar.css +0 -87
- package/src/styles/snippets.css +0 -132
- package/src/styles/variables.css +0 -90
- package/src/utils.ts +0 -41
package/dist/styles.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
|
|
2
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
3
|
+
|
|
4
|
+
//#region src/search/types.d.ts
|
|
5
|
+
type SearchSettings = {
|
|
6
|
+
appId: string;
|
|
7
|
+
searchKey: string;
|
|
8
|
+
indexName: string;
|
|
9
|
+
assistant?: string;
|
|
10
|
+
};
|
|
11
|
+
type SearchParams = {
|
|
12
|
+
query: string;
|
|
13
|
+
language?: DocsLanguage | null;
|
|
14
|
+
kind?: QueryKindsType | null;
|
|
15
|
+
};
|
|
16
|
+
declare const QueryKinds: readonly ["all", "resource", "http_method", "model", "property", "guide"];
|
|
17
|
+
type QueryKindsType = (typeof QueryKinds)[number];
|
|
18
|
+
type IndexModel = {
|
|
19
|
+
kind: 'model';
|
|
20
|
+
title: string;
|
|
21
|
+
children?: string[];
|
|
22
|
+
ident?: string;
|
|
23
|
+
};
|
|
24
|
+
type IndexProperty = {
|
|
25
|
+
kind: 'property';
|
|
26
|
+
docstring?: string;
|
|
27
|
+
type?: string;
|
|
28
|
+
};
|
|
29
|
+
type IndexResource = {
|
|
30
|
+
kind: 'resource';
|
|
31
|
+
title: string;
|
|
32
|
+
Name: string;
|
|
33
|
+
QualifiedName: string;
|
|
34
|
+
};
|
|
35
|
+
type IndexMethod = Pick<SDKJSON.Method, 'kind' | 'summary' | 'description' | 'endpoint' | 'httpMethod'> & {
|
|
36
|
+
title: string;
|
|
37
|
+
qualified?: string;
|
|
38
|
+
ident?: string;
|
|
39
|
+
};
|
|
40
|
+
declare const SearchableAttributes: readonly ["name", "title", "ident", "Name", "qualified", "QualifiedName", "endpoint", "summary", "description", "docstring"];
|
|
41
|
+
declare const SearchableAttributesChat: string[];
|
|
42
|
+
type SearchAttributeNames = (typeof SearchableAttributes)[number];
|
|
43
|
+
type RoutableJsonNode = SDKJSON.Method | SDKJSON.Model | SDKJSON.Resource;
|
|
44
|
+
type IndexEntry = Pick<RoutableJsonNode, 'name' | 'stainlessPath'> & (IndexProperty | IndexModel | IndexResource | IndexMethod) & {
|
|
45
|
+
language: DocsLanguage;
|
|
46
|
+
priority: number;
|
|
47
|
+
crumbs: string[];
|
|
48
|
+
};
|
|
49
|
+
type ResultRecordType = IndexEntry & {
|
|
50
|
+
objectID: string;
|
|
51
|
+
_highlightResult: Record<SearchAttributeNames, {
|
|
52
|
+
value: string;
|
|
53
|
+
}>;
|
|
54
|
+
};
|
|
55
|
+
type ResultType = {
|
|
56
|
+
hits: ResultRecordType[];
|
|
57
|
+
facets?: Record<string, Record<string, number>>;
|
|
58
|
+
nbHits: number;
|
|
59
|
+
};
|
|
60
|
+
type GuideResultType = {
|
|
61
|
+
id: string;
|
|
62
|
+
score: number;
|
|
63
|
+
words: number[];
|
|
64
|
+
data: {
|
|
65
|
+
excerpt: string;
|
|
66
|
+
url: string;
|
|
67
|
+
word_count: number;
|
|
68
|
+
meta: {
|
|
69
|
+
title: string;
|
|
70
|
+
};
|
|
71
|
+
sub_results: {
|
|
72
|
+
url: string;
|
|
73
|
+
title: string;
|
|
74
|
+
excerpt: string;
|
|
75
|
+
}[];
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
type ResultData = {
|
|
79
|
+
items: Array<ResultRecordType | GuideResultType>;
|
|
80
|
+
counts: Partial<Record<QueryKindsType, number>>;
|
|
81
|
+
};
|
|
82
|
+
//#endregion
|
|
83
|
+
export { SearchableAttributesChat as _, IndexProperty as a, QueryKindsType as c, ResultType as d, RoutableJsonNode as f, SearchableAttributes as g, SearchSettings as h, IndexModel as i, ResultData as l, SearchParams as m, IndexEntry as n, IndexResource as o, SearchAttributeNames as p, IndexMethod as r, QueryKinds as s, GuideResultType as t, ResultRecordType as u };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
//#region src/search/types.ts
|
|
2
|
+
const QueryKinds = [
|
|
3
|
+
"all",
|
|
4
|
+
"resource",
|
|
5
|
+
"http_method",
|
|
6
|
+
"model",
|
|
7
|
+
"property",
|
|
8
|
+
"guide"
|
|
9
|
+
];
|
|
10
|
+
const SearchableAttributes = [
|
|
11
|
+
"name",
|
|
12
|
+
"title",
|
|
13
|
+
"ident",
|
|
14
|
+
"Name",
|
|
15
|
+
"qualified",
|
|
16
|
+
"QualifiedName",
|
|
17
|
+
"endpoint",
|
|
18
|
+
"summary",
|
|
19
|
+
"description",
|
|
20
|
+
"docstring"
|
|
21
|
+
];
|
|
22
|
+
const SearchableAttributesChat = [
|
|
23
|
+
"title",
|
|
24
|
+
"name",
|
|
25
|
+
"endpoint",
|
|
26
|
+
"summary",
|
|
27
|
+
"description",
|
|
28
|
+
"qualified",
|
|
29
|
+
"ident",
|
|
30
|
+
"content"
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { SearchableAttributes as n, SearchableAttributesChat as r, QueryKinds as t };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as DocsLanguage } from "./routing-DNN8R6bZ.js";
|
|
2
|
+
import { C as TransformRequestSnippetFn } from "./sdk-DDWWoPPD.js";
|
|
3
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
4
|
+
|
|
5
|
+
//#region src/markdown/utils.d.ts
|
|
6
|
+
type EnvironmentType = {
|
|
7
|
+
spec: SDKJSON.Spec;
|
|
8
|
+
language: DocsLanguage;
|
|
9
|
+
transforms?: {
|
|
10
|
+
transformRequestSnippet?: TransformRequestSnippetFn;
|
|
11
|
+
};
|
|
12
|
+
options: {
|
|
13
|
+
renderNestedResources?: boolean;
|
|
14
|
+
includeModelProperties?: boolean;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
declare function getDecl(env: EnvironmentType, path: string): SDKJSON.LanguageDeclNodes[SDKJSON.SpecLanguage] | undefined;
|
|
18
|
+
declare function getSnippet(env: EnvironmentType, path: string): string | undefined;
|
|
19
|
+
declare function stripMarkup(content: string): string;
|
|
20
|
+
//#endregion
|
|
21
|
+
export { stripMarkup as i, getDecl as n, getSnippet as r, EnvironmentType as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as SDKJSON from "@stainless/sdk-json";
|
|
2
|
+
|
|
3
|
+
//#region src/utils.d.ts
|
|
4
|
+
declare namespace utils_d_exports {
|
|
5
|
+
export { flatResources, getResourceFromSpec, isResourceEmpty };
|
|
6
|
+
}
|
|
7
|
+
declare function flatResources(resources: Record<string, SDKJSON.Resource> | undefined, parents: SDKJSON.Resource[]): {
|
|
8
|
+
resource: SDKJSON.Resource;
|
|
9
|
+
parents: SDKJSON.Resource[];
|
|
10
|
+
}[];
|
|
11
|
+
declare function getResourceFromSpec(stainlessPath: string | string[], spec: SDKJSON.Spec): SDKJSON.Resource | null;
|
|
12
|
+
declare function isResourceEmpty(resource: SDKJSON.Resource): boolean;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { utils_d_exports as i, getResourceFromSpec as n, isResourceEmpty as r, flatResources as t };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { t as __export } from "./chunk-Bf_Gc_jT.js";
|
|
2
|
+
import { f as parseStainlessPath } from "./routing-qs2YNG9o.js";
|
|
3
|
+
|
|
4
|
+
//#region src/utils.ts
|
|
5
|
+
var utils_exports = /* @__PURE__ */ __export({
|
|
6
|
+
flatResources: () => flatResources,
|
|
7
|
+
getResourceFromSpec: () => getResourceFromSpec,
|
|
8
|
+
isResourceEmpty: () => isResourceEmpty
|
|
9
|
+
});
|
|
10
|
+
function flatResources(resources, parents) {
|
|
11
|
+
return Object.keys(resources ?? {}).flatMap((key) => {
|
|
12
|
+
const resource = resources[key];
|
|
13
|
+
return [{
|
|
14
|
+
resource,
|
|
15
|
+
parents
|
|
16
|
+
}, ...resource.subresources ? flatResources(resource.subresources, [...parents, resource]) : []];
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function getResourceFromSpec(stainlessPath, spec) {
|
|
20
|
+
if (typeof stainlessPath === "string") {
|
|
21
|
+
const parsed = parseStainlessPath(stainlessPath);
|
|
22
|
+
if (!parsed?.resource) return null;
|
|
23
|
+
stainlessPath = parsed.resource;
|
|
24
|
+
}
|
|
25
|
+
return stainlessPath.slice(1).reduce((acc, cur) => acc?.subresources?.[cur], spec.resources[stainlessPath[0]]) ?? null;
|
|
26
|
+
}
|
|
27
|
+
function isResourceEmpty(resource) {
|
|
28
|
+
return !(Object.values(resource.methods).length > 0 || Object.values(resource.models).length > 0 || Object.values(resource.subresources).length > 0);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { utils_exports as i, getResourceFromSpec as n, isResourceEmpty as r, flatResources as t };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Parser } from "htmlparser2";
|
|
2
|
+
|
|
3
|
+
//#region src/markdown/utils.ts
|
|
4
|
+
function getDecl(env, path) {
|
|
5
|
+
const decl = env.spec?.decls?.[env.language]?.[path];
|
|
6
|
+
if (decl?.kind?.endsWith("Reference")) {
|
|
7
|
+
const refId = "type" in decl && typeof decl["type"] === "object" && "$ref" in decl["type"] ? decl["type"]["$ref"] : null;
|
|
8
|
+
if (refId === path) return decl;
|
|
9
|
+
if (refId) return getDecl(env, refId);
|
|
10
|
+
}
|
|
11
|
+
return decl;
|
|
12
|
+
}
|
|
13
|
+
function getSnippet(env, path) {
|
|
14
|
+
const lang = env.language === "http" ? "http.curl" : `${env.language}.default`;
|
|
15
|
+
let snippet = env.spec?.snippets?.[lang]?.[path];
|
|
16
|
+
if (typeof snippet === "string" && env.transforms?.transformRequestSnippet) snippet = env.transforms.transformRequestSnippet({
|
|
17
|
+
snippet,
|
|
18
|
+
language: env.language
|
|
19
|
+
});
|
|
20
|
+
return snippet;
|
|
21
|
+
}
|
|
22
|
+
function stripMarkup(content) {
|
|
23
|
+
let output = "";
|
|
24
|
+
new Parser({ ontext(content$1) {
|
|
25
|
+
output += content$1;
|
|
26
|
+
} }).parseComplete(content);
|
|
27
|
+
return output;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export { getSnippet as n, stripMarkup as r, getDecl as t };
|
package/dist/utils.d.ts
ADDED
package/dist/utils.js
ADDED
package/package.json
CHANGED
|
@@ -1,38 +1,103 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stainless-api/docs-ui",
|
|
3
|
-
"
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.0-beta.40",
|
|
4
5
|
"publishConfig": {
|
|
5
6
|
"access": "public"
|
|
6
7
|
},
|
|
7
8
|
"type": "module",
|
|
8
9
|
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
"src"
|
|
10
|
+
"dist"
|
|
11
11
|
],
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"react": ">=19.0.0",
|
|
14
|
+
"react-dom": ">=19.0.0"
|
|
15
|
+
},
|
|
12
16
|
"dependencies": {
|
|
13
17
|
"@algolia/client-search": "^5.25.0",
|
|
14
|
-
"@markdoc/markdoc": "^0.5.
|
|
15
|
-
"ai": "4.3.19",
|
|
18
|
+
"@markdoc/markdoc": "^0.5.4",
|
|
16
19
|
"clsx": "^2.1.1",
|
|
17
20
|
"fuse.js": "^7.1.0",
|
|
18
21
|
"htmlparser2": "^10.0.0",
|
|
19
|
-
"lucide-react": "^0.
|
|
20
|
-
"
|
|
21
|
-
"react-dom": "^19.1.1",
|
|
22
|
-
"@stainless-api/ui-primitives": "0.1.0-beta.5"
|
|
22
|
+
"lucide-react": "^0.554.0",
|
|
23
|
+
"@stainless-api/ui-primitives": "0.1.0-beta.29"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@types/node": "
|
|
26
|
-
"@types/react": "^19.
|
|
27
|
-
"@types/react-dom": "^19.
|
|
28
|
-
"dotenv": "17.2.
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
26
|
+
"@types/node": "24.10.1",
|
|
27
|
+
"@types/react": "^19.2.7",
|
|
28
|
+
"@types/react-dom": "^19.2.3",
|
|
29
|
+
"dotenv": "17.2.3",
|
|
30
|
+
"react": "^19.2.0",
|
|
31
|
+
"react-dom": "^19.2.0",
|
|
32
|
+
"tsdown": "^0.16.7",
|
|
33
|
+
"tsx": "^4.20.6",
|
|
34
|
+
"typescript": "5.9.3",
|
|
35
|
+
"@stainless/eslint-config": "0.1.0-beta.0",
|
|
36
|
+
"@stainless/sdk-json": "^0.1.0-beta.0"
|
|
37
|
+
},
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"default": "./dist/index.js"
|
|
41
|
+
},
|
|
42
|
+
"./routing": {
|
|
43
|
+
"default": "./dist/routing.js"
|
|
44
|
+
},
|
|
45
|
+
"./utils": {
|
|
46
|
+
"default": "./dist/utils.js"
|
|
47
|
+
},
|
|
48
|
+
"./components": {
|
|
49
|
+
"default": "./dist/components/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./components/scripts/*": {
|
|
52
|
+
"default": "./dist/components/scripts/*.js"
|
|
53
|
+
},
|
|
54
|
+
"./components/*": {
|
|
55
|
+
"default": "./dist/components/*.js"
|
|
56
|
+
},
|
|
57
|
+
"./languages": {
|
|
58
|
+
"default": "./dist/languages/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./languages/*": {
|
|
61
|
+
"default": "./dist/languages/*.js"
|
|
62
|
+
},
|
|
63
|
+
"./contexts": {
|
|
64
|
+
"default": "./dist/contexts/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./contexts/*": {
|
|
67
|
+
"default": "./dist/contexts/*.js"
|
|
68
|
+
},
|
|
69
|
+
"./style": {
|
|
70
|
+
"default": "./dist/style.js"
|
|
71
|
+
},
|
|
72
|
+
"./styles/*": {
|
|
73
|
+
"default": "./dist/styles/*"
|
|
74
|
+
},
|
|
75
|
+
"./styles.css": {
|
|
76
|
+
"default": "./dist/styles.css"
|
|
77
|
+
},
|
|
78
|
+
"./markdown": {
|
|
79
|
+
"default": "./dist/markdown/index.js"
|
|
80
|
+
},
|
|
81
|
+
"./markdown/*": {
|
|
82
|
+
"default": "./dist/markdown/*.js"
|
|
83
|
+
},
|
|
84
|
+
"./search": {
|
|
85
|
+
"default": "./dist/search/index.js"
|
|
86
|
+
},
|
|
87
|
+
"./search/types": {
|
|
88
|
+
"default": "./dist/search/types.js"
|
|
89
|
+
},
|
|
90
|
+
"./search/providers/*": {
|
|
91
|
+
"default": "./dist/search/providers/*.js"
|
|
92
|
+
},
|
|
93
|
+
"./spec": {
|
|
94
|
+
"default": "./dist/spec.js"
|
|
95
|
+
}
|
|
32
96
|
},
|
|
33
97
|
"scripts": {
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"lint": "eslint ."
|
|
98
|
+
"build": "tsdown",
|
|
99
|
+
"clean": "rm -rf dist",
|
|
100
|
+
"lint": "eslint .",
|
|
101
|
+
"check:types": "tsc --noEmit"
|
|
37
102
|
}
|
|
38
103
|
}
|