@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.
Files changed (188) hide show
  1. package/dist/breadcrumbs-CZg0Fk4V.d.ts +20 -0
  2. package/dist/chunk-Bf_Gc_jT.js +18 -0
  3. package/dist/component-generics-BLXXX1dz.d.ts +30 -0
  4. package/dist/component-generics-D3ybuN5r.js +45 -0
  5. package/dist/components/breadcrumbs.d.ts +2 -0
  6. package/dist/components/breadcrumbs.js +15 -0
  7. package/dist/components/icons.d.ts +50 -0
  8. package/dist/components/icons.js +3 -0
  9. package/dist/components/index.d.ts +11 -0
  10. package/dist/components/index.js +15 -0
  11. package/dist/components/method.d.ts +2 -0
  12. package/dist/components/method.js +15 -0
  13. package/dist/components/overview.d.ts +2 -0
  14. package/dist/components/overview.js +15 -0
  15. package/dist/components/primitives.d.ts +2 -0
  16. package/dist/components/primitives.js +15 -0
  17. package/dist/components/properties.d.ts +2 -0
  18. package/dist/components/properties.js +15 -0
  19. package/dist/components/sdk.d.ts +3 -0
  20. package/dist/components/sdk.js +15 -0
  21. package/dist/components/sidebar.d.ts +2 -0
  22. package/dist/components/sidebar.js +15 -0
  23. package/dist/components/snippets.d.ts +4 -0
  24. package/dist/components/snippets.js +15 -0
  25. package/dist/contexts/component-generics.d.ts +2 -0
  26. package/dist/contexts/component-generics.js +3 -0
  27. package/dist/contexts/component-types.d.ts +17 -0
  28. package/dist/contexts/component-types.js +0 -0
  29. package/dist/contexts/component.d.ts +30 -0
  30. package/dist/contexts/component.js +15 -0
  31. package/dist/contexts/docs.d.ts +2 -0
  32. package/dist/contexts/docs.js +3 -0
  33. package/dist/contexts/index.d.ts +19 -0
  34. package/dist/contexts/index.js +15 -0
  35. package/dist/contexts/markdown.d.ts +2 -0
  36. package/dist/contexts/markdown.js +4 -0
  37. package/dist/contexts/navigation.d.ts +3 -0
  38. package/dist/contexts/navigation.js +3 -0
  39. package/dist/contexts/search.d.ts +4 -0
  40. package/dist/contexts/search.js +15 -0
  41. package/dist/contexts/use-components.d.ts +15 -0
  42. package/dist/contexts/use-components.js +4 -0
  43. package/dist/contexts-B-OYzYpz.js +3837 -0
  44. package/dist/docs-BeJaKOCE.d.ts +46 -0
  45. package/dist/docs-CopwX9a7.js +54 -0
  46. package/dist/icons-yb-Jhkmg.js +753 -0
  47. package/dist/index-CBi59jcw.d.ts +240 -0
  48. package/dist/index-DT1wzg21.d.ts +15 -0
  49. package/dist/index-DteYqCJO.d.ts +14 -0
  50. package/dist/index.d.ts +21 -0
  51. package/dist/index.js +15 -7542
  52. package/dist/languages/go.d.ts +12 -0
  53. package/dist/languages/go.js +15 -0
  54. package/dist/languages/http.d.ts +12 -0
  55. package/dist/languages/http.js +15 -0
  56. package/dist/languages/index.d.ts +12 -0
  57. package/dist/languages/index.js +15 -0
  58. package/dist/languages/java.d.ts +12 -0
  59. package/dist/languages/java.js +15 -0
  60. package/dist/languages/python.d.ts +12 -0
  61. package/dist/languages/python.js +15 -0
  62. package/dist/languages/ruby.d.ts +12 -0
  63. package/dist/languages/ruby.js +15 -0
  64. package/dist/languages/typescript.d.ts +12 -0
  65. package/dist/languages/typescript.js +15 -0
  66. package/dist/markdown/index.d.ts +12 -0
  67. package/dist/markdown/index.js +15 -0
  68. package/dist/markdown/md.d.ts +15 -0
  69. package/dist/markdown/md.js +3 -0
  70. package/dist/markdown/utils.d.ts +4 -0
  71. package/dist/markdown/utils.js +3 -0
  72. package/dist/markdown-DTVxnxGP.d.ts +22 -0
  73. package/dist/markdown-Diyg-eof.js +48 -0
  74. package/dist/md-DxiV1_vy.js +41 -0
  75. package/dist/method-DHjDGGA_.d.ts +71 -0
  76. package/dist/navigation-CGr5_w6z.js +24 -0
  77. package/dist/navigation-rt_B_1lt.d.ts +29 -0
  78. package/dist/overview-CKJV2xUO.d.ts +39 -0
  79. package/dist/pagefind-BaK1krMe.js +15 -0
  80. package/dist/primitives-CiVFjnRA.d.ts +99 -0
  81. package/dist/properties-Z45x-uLZ.d.ts +46 -0
  82. package/dist/routing-DNN8R6bZ.d.ts +54 -0
  83. package/dist/routing-qs2YNG9o.js +189 -0
  84. package/dist/routing.d.ts +2 -0
  85. package/dist/routing.js +3 -180
  86. package/dist/sdk-DDWWoPPD.d.ts +119 -0
  87. package/dist/search/index.d.ts +26 -0
  88. package/dist/search/index.js +334 -0
  89. package/dist/search/providers/algolia.d.ts +24 -0
  90. package/dist/search/providers/algolia.js +15 -0
  91. package/dist/search/providers/fuse.d.ts +18 -0
  92. package/dist/search/providers/fuse.js +30 -0
  93. package/dist/search/providers/pagefind.d.ts +7 -0
  94. package/dist/search/providers/pagefind.js +3 -0
  95. package/dist/search/providers/walker.d.ts +9 -0
  96. package/dist/search/providers/walker.js +34 -0
  97. package/dist/search/types.d.ts +3 -0
  98. package/dist/search/types.js +3 -0
  99. package/dist/search-CCDWCiAd.d.ts +21 -0
  100. package/dist/sidebar-DrtsF85U.d.ts +36 -0
  101. package/dist/snippets-B2EEG7AK.d.ts +46 -0
  102. package/dist/spec.d.ts +65 -0
  103. package/dist/spec.js +167 -0
  104. package/dist/style-BhhgPVF6.js +165 -0
  105. package/dist/style-p4qTfnmO.d.ts +164 -0
  106. package/dist/style.d.ts +2 -0
  107. package/dist/style.js +3 -0
  108. package/dist/styles/main.css +724 -754
  109. package/dist/styles/main.js +0 -0
  110. package/dist/styles/primitives.css +287 -466
  111. package/dist/styles/primitives.js +0 -0
  112. package/dist/styles/resets.css +31 -41
  113. package/dist/styles/resets.js +0 -0
  114. package/dist/styles/search.css +175 -274
  115. package/dist/styles/search.js +0 -0
  116. package/dist/styles/sidebar.css +59 -60
  117. package/dist/styles/sidebar.js +0 -0
  118. package/dist/styles/variables.css +26 -89
  119. package/dist/styles/variables.js +0 -0
  120. package/dist/styles.css +1753 -0
  121. package/dist/styles.mjs +1 -0
  122. package/dist/types-DNSz4kuM.d.ts +83 -0
  123. package/dist/types-__XoFvJ_.js +34 -0
  124. package/dist/use-components-BHEwm0mE.js +7 -0
  125. package/dist/utils-CA3mYNaX.d.ts +21 -0
  126. package/dist/utils-D43p_yTd.d.ts +14 -0
  127. package/dist/utils-FnJ4tyuN.js +32 -0
  128. package/dist/utils-Jo_o4DX9.js +31 -0
  129. package/dist/utils.d.ts +2 -0
  130. package/dist/utils.js +4 -0
  131. package/package.json +84 -19
  132. package/dist/mcp.js +0 -16003
  133. package/dist/styles/snippets.css +0 -132
  134. package/src/components/breadcrumbs.tsx +0 -94
  135. package/src/components/chat.tsx +0 -154
  136. package/src/components/dropdown.tsx +0 -91
  137. package/src/components/icons.tsx +0 -584
  138. package/src/components/index.ts +0 -9
  139. package/src/components/method.tsx +0 -144
  140. package/src/components/overview.tsx +0 -159
  141. package/src/components/primitives.tsx +0 -284
  142. package/src/components/properties.tsx +0 -130
  143. package/src/components/scripts/dropdown.ts +0 -78
  144. package/src/components/sdk.tsx +0 -402
  145. package/src/components/sidebar.tsx +0 -99
  146. package/src/components/snippets.tsx +0 -179
  147. package/src/contexts/component-generics.tsx +0 -48
  148. package/src/contexts/component-types.tsx +0 -5
  149. package/src/contexts/component.tsx +0 -32
  150. package/src/contexts/docs.tsx +0 -75
  151. package/src/contexts/index.tsx +0 -17
  152. package/src/contexts/markdown.tsx +0 -43
  153. package/src/contexts/navigation.tsx +0 -44
  154. package/src/contexts/search.tsx +0 -28
  155. package/src/contexts/use-components.tsx +0 -4
  156. package/src/index.ts +0 -6
  157. package/src/languages/go.tsx +0 -281
  158. package/src/languages/http.tsx +0 -321
  159. package/src/languages/index.ts +0 -26
  160. package/src/languages/java.tsx +0 -358
  161. package/src/languages/python.tsx +0 -255
  162. package/src/languages/ruby.tsx +0 -320
  163. package/src/languages/typescript.tsx +0 -393
  164. package/src/markdown/index.ts +0 -107
  165. package/src/markdown/md.ts +0 -45
  166. package/src/markdown/utils.ts +0 -49
  167. package/src/routing.ts +0 -238
  168. package/src/search/form.tsx +0 -127
  169. package/src/search/index.tsx +0 -1
  170. package/src/search/indexer.ts +0 -246
  171. package/src/search/mcp.ts +0 -61
  172. package/src/search/printer.tsx +0 -86
  173. package/src/search/providers/algolia.ts +0 -88
  174. package/src/search/providers/fuse.ts +0 -19
  175. package/src/search/providers/pagefind.ts +0 -17
  176. package/src/search/providers/walker.ts +0 -30
  177. package/src/search/results.tsx +0 -181
  178. package/src/search/state.ts +0 -64
  179. package/src/search/types.ts +0 -116
  180. package/src/style.ts +0 -197
  181. package/src/styles/main.css +0 -993
  182. package/src/styles/primitives.css +0 -572
  183. package/src/styles/resets.css +0 -47
  184. package/src/styles/search.css +0 -342
  185. package/src/styles/sidebar.css +0 -87
  186. package/src/styles/snippets.css +0 -132
  187. package/src/styles/variables.css +0 -90
  188. package/src/utils.ts +0 -41
@@ -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,7 @@
1
+ import { i as useComponents } from "./component-generics-D3ybuN5r.js";
2
+
3
+ //#region src/contexts/use-components.tsx
4
+ const useComponents$1 = () => useComponents();
5
+
6
+ //#endregion
7
+ export { useComponents$1 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 };
@@ -0,0 +1,2 @@
1
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-D43p_yTd.js";
2
+ export { flatResources, getResourceFromSpec, isResourceEmpty };
package/dist/utils.js ADDED
@@ -0,0 +1,4 @@
1
+ import "./routing-qs2YNG9o.js";
2
+ import { n as getResourceFromSpec, r as isResourceEmpty, t as flatResources } from "./utils-FnJ4tyuN.js";
3
+
4
+ export { flatResources, getResourceFromSpec, isResourceEmpty };
package/package.json CHANGED
@@ -1,38 +1,103 @@
1
1
  {
2
2
  "name": "@stainless-api/docs-ui",
3
- "version": "0.1.0-beta.4",
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.2",
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.544.0",
20
- "react": "^19.1.1",
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": "^24.4.0",
26
- "@types/react": "^19.1.13",
27
- "@types/react-dom": "^19.1.9",
28
- "dotenv": "17.2.2",
29
- "esbuild": "^0.25.4",
30
- "tsx": "^4.20.3",
31
- "@stainless/eslint-config": "0.0.0"
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
- "symlink": "node make-symlink.js",
35
- "build": "node build.js",
36
- "lint": "eslint ."
98
+ "build": "tsdown",
99
+ "clean": "rm -rf dist",
100
+ "lint": "eslint .",
101
+ "check:types": "tsc --noEmit"
37
102
  }
38
103
  }