@docs-sdk-dev/solid 0.0.0-stage → 0.0.2

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.
@@ -0,0 +1,6 @@
1
+ declare module "virtual:docs-examples" {
2
+ import type { JSX } from "@solidjs/web"
3
+ /** Declared example sources mapped to their on-demand loaders, generated per build. */
4
+ const examples: Record<string, () => Promise<{ default: () => JSX.Element }>>
5
+ export default examples
6
+ }
@@ -0,0 +1,55 @@
1
+ import { type Entry, type ExampleControls, type ReadSource } from "@docs-sdk-dev/core";
2
+ import { type PropFact } from "@docs-sdk-dev/typescript";
3
+ export type { PropFact } from "@docs-sdk-dev/typescript";
4
+ type ComponentInput = {
5
+ source: string;
6
+ export: string;
7
+ example: string;
8
+ summary: string;
9
+ accessibility: string;
10
+ };
11
+ type Ids = {
12
+ component: string;
13
+ symbol: string;
14
+ example: string;
15
+ };
16
+ type ComponentData = ComponentInput & {
17
+ code: string;
18
+ props: PropFact[];
19
+ revision: string;
20
+ ids: Ids;
21
+ text: PresetText;
22
+ controls?: ExampleControls;
23
+ };
24
+ /**
25
+ * The text this preset writes inside sections, per locale. `{source}`, `{name}`, `{web}` and `{revision}` are filled in
26
+ * as inline code. Section titles are not here: entries name them with section overrides, like any template.
27
+ */
28
+ export declare const englishPresetText: {
29
+ installation: string;
30
+ preview: string;
31
+ source: string;
32
+ prop: string;
33
+ type: string;
34
+ required: string;
35
+ default: string;
36
+ description: string;
37
+ yes: string;
38
+ no: string;
39
+ deprecated: string;
40
+ };
41
+ export type PresetText = typeof englishPresetText;
42
+ /** The text for a locale: project overrides, then built-in text for the locale or its language, then English. */
43
+ export declare function presetTextFor(locale: string | undefined, overrides?: Record<string, Partial<PresetText>>): PresetText;
44
+ /** Props table projected from extracted facts. The facts, not this text, are the source of truth. */
45
+ export declare const propsTable: (props: readonly PropFact[], text?: PresetText) => string;
46
+ export declare function componentReference(options: {
47
+ id: string;
48
+ scope: string;
49
+ templateConfig?: string;
50
+ /** Where the entries are declared, recorded as their provenance. */
51
+ source?: string;
52
+ entries: readonly Entry<ComponentInput>[];
53
+ /** Replacements for the text the preset writes, by locale or language, such as `{ fr: { required: "Obligatoire" } }`. */
54
+ text?: Record<string, Partial<PresetText>>;
55
+ }, read: ReadSource): import("@docs-sdk-dev/core").Collection<ComponentData>;
@@ -0,0 +1,146 @@
1
+ import { createHash } from "node:crypto";
2
+ import { readFileSync } from "node:fs";
3
+ import { defineCollection, defineTemplate, DocsError, inlineCode, markdown } from "@docs-sdk-dev/core";
4
+ import { componentEntities, exampleProps, extractComponent } from "@docs-sdk-dev/typescript";
5
+ /**
6
+ * The text this preset writes inside sections, per locale. `{source}`, `{name}`, `{web}` and `{revision}` are filled in
7
+ * as inline code. Section titles are not here: entries name them with section overrides, like any template.
8
+ */
9
+ export const englishPresetText = {
10
+ installation: "Copy {source} into a Solid 2 project with {web}.",
11
+ preview: "The {name} example below demonstrates the component's default state and content.",
12
+ source: "{source} exports {name} at revision {revision}.",
13
+ prop: "Prop", type: "Type", required: "Required", default: "Default", description: "Description",
14
+ yes: "Yes", no: "No", deprecated: "Deprecated.",
15
+ };
16
+ const builtInText = {
17
+ en: englishPresetText,
18
+ fr: {
19
+ installation: "Copiez {source} dans un projet Solid 2 avec {web}.",
20
+ preview: "L’exemple {name} ci-dessous montre l’état et le contenu par défaut du composant.",
21
+ source: "{source} exporte {name} à la révision {revision}.",
22
+ prop: "Propriété", type: "Type", required: "Requise", default: "Par défaut", description: "Description",
23
+ yes: "Oui", no: "Non", deprecated: "Obsolète.",
24
+ },
25
+ };
26
+ /** The text for a locale: project overrides, then built-in text for the locale or its language, then English. */
27
+ export function presetTextFor(locale, overrides = {}) {
28
+ for (const [key, values] of Object.entries(overrides))
29
+ for (const name of Object.keys(values))
30
+ if (!Object.hasOwn(englishPresetText, name))
31
+ throw new DocsError("DOCS_TEMPLATE_INVALID_CONFIG", `text.${key}.${name} is not text this preset writes.`, { field: `text.${key}.${name}` });
32
+ const language = locale?.split("-")[0];
33
+ const base = (locale && builtInText[locale]) || (language && builtInText[language]) || englishPresetText;
34
+ return { ...base, ...(language ? overrides[language] : {}), ...(locale ? overrides[locale] : {}) };
35
+ }
36
+ const fill = (template, values) => template.replace(/\{(\w+)\}/g, (match, key) => key in values ? inlineCode(values[key]) : match);
37
+ const revision = createHash("sha256").update(readFileSync(new URL(import.meta.url))).digest("hex");
38
+ const quote = (text) => text.replaceAll("|", "\\|").replaceAll("\n", " ");
39
+ function codeFence(code) {
40
+ const fence = "`".repeat(Math.max(2, ...[...code.matchAll(/`+/g)].map(match => match[0].length)) + 1);
41
+ return `${fence}tsx\n${code.trim()}\n${fence}`;
42
+ }
43
+ /** Props table projected from extracted facts. The facts, not this text, are the source of truth. */
44
+ export const propsTable = (props, text = englishPresetText) => {
45
+ // The Default column appears only when some prop declares one, so tables without defaults stay as they were.
46
+ const defaults = props.some(prop => prop.default !== undefined);
47
+ const head = [text.prop, text.type, text.required, ...defaults ? [text.default] : [], text.description];
48
+ const describe = (prop) => prop.deprecated === undefined ? prop.description
49
+ : [`**${text.deprecated}**`, prop.deprecated, prop.description].filter(Boolean).join(" ");
50
+ return [`| ${head.join(" | ")} |`, `| ${head.map(() => "---").join(" | ")} |`, ...props.map(prop => `| ${[inlineCode(prop.name),
51
+ inlineCode(quote(prop.type)), prop.required ? text.yes : text.no, ...defaults ? [prop.default ? inlineCode(quote(prop.default)) : ""] : [],
52
+ quote(describe(prop))].join(" | ")} |`)].join("\n");
53
+ };
54
+ /**
55
+ * The props a reader can change in the preview: those whose type a control can edit, each starting from the example's
56
+ * value, then the documented default. Only an example that is one element of the component with literal props gets a
57
+ * playground, so the playground opens exactly as the example does.
58
+ */
59
+ function playground(props, example, input) {
60
+ if (!example)
61
+ return undefined;
62
+ const literal = (value) => {
63
+ if (value === undefined)
64
+ return undefined;
65
+ if (value === "true" || value === "false")
66
+ return value === "true";
67
+ if (/^-?\d+(\.\d+)?$/.test(value))
68
+ return Number(value);
69
+ const quoted = /^(["'`])(.*)\1$/.exec(value);
70
+ return quoted ? quoted[2] : undefined;
71
+ };
72
+ const controls = props.flatMap((prop) => {
73
+ const type = prop.type.replace(/\s*\|\s*undefined$/, "").trim();
74
+ const value = example[prop.name] ?? literal(prop.default);
75
+ const base = { name: prop.name, ...prop.description ? { description: prop.description } : {} };
76
+ if (type === "boolean")
77
+ return [{ ...base, kind: "boolean", value: typeof value === "boolean" ? value : false }];
78
+ if (type === "number")
79
+ return typeof value === "number" || value === undefined ? [{ ...base, kind: "number", ...value !== undefined ? { value } : {} }] : [];
80
+ if (type === "string")
81
+ return [{ ...base, kind: "string", value: typeof value === "string" ? value : "" }];
82
+ const options = type.split("|").map(item => /^\s*"([^"]*)"\s*$/.exec(item)?.[1]);
83
+ if (options.length > 1 && options.every(option => option !== undefined))
84
+ return [{ ...base, kind: "select", options: options, ...typeof value === "string" && options.includes(value) ? { value } : {} }];
85
+ // Children that the example gives as text can be edited as text.
86
+ if (prop.name === "children" && typeof value === "string")
87
+ return [{ ...base, kind: "text", value }];
88
+ return [];
89
+ });
90
+ // Without a control for a required prop, changing the others could not render the component.
91
+ if (props.some(prop => prop.required && !controls.some(control => control.name === prop.name) && example[prop.name] === undefined))
92
+ return undefined;
93
+ const fixed = Object.fromEntries(Object.entries(example).filter(([name]) => !controls.some(control => control.name === name)));
94
+ return controls.length ? { source: input.source, export: input.export, props: controls, ...Object.keys(fixed).length ? { fixed } : {} } : undefined;
95
+ }
96
+ async function extract(scope, entry, input, read, text) {
97
+ const [component, example] = await Promise.all([extractComponent(read, input), read(input.example)]);
98
+ // Component facts do not vary by locale; every other dimension of the entry scopes them.
99
+ const context = Object.fromEntries(Object.entries(entry.dimensions ?? {}).filter(([key]) => key !== "locale"));
100
+ const extracted = componentEntities(component, { id: `component:${scope}/${entry.id}`, context });
101
+ const ids = { component: extracted.ids.component, symbol: extracted.ids.symbol, example: `example:${input.example}` };
102
+ const entities = [...extracted.entities,
103
+ { id: ids.example, type: "example", context, data: { file: input.example, framework: "solid", component: input.export },
104
+ provenance: [{ source: input.example, revision: example.revision, evidence: "declared" }],
105
+ relations: [{ type: "demonstrates", target: ids.component }] }];
106
+ const props = component.props.map(({ range: _range, ...prop }) => prop);
107
+ const controls = playground(props, exampleProps(example.text, input.example, input.export), input);
108
+ return { data: { ...input, code: example.text, revision: component.revision, props, ids, text, ...controls ? { controls } : {} }, entities };
109
+ }
110
+ const component = defineTemplate({
111
+ id: "component-reference", source: "@docs-sdk-dev/solid/component-reference", revision,
112
+ sections: [
113
+ { id: "overview", required: true, build: ({ data, source }) => ({ ...markdown(data.summary, source), derivedFrom: [data.ids.component] }) },
114
+ { id: "installation", title: "Installation", build: ({ data }) => markdown(fill(data.text.installation, { source: data.source, web: "@solidjs/web" })) },
115
+ { id: "preview", title: "Preview", build: ({ data }) => ({
116
+ markdown: data.text.preview.replace("{name}", data.export),
117
+ source: data.example, example: { id: data.export, source: data.example, ...data.controls ? { controls: data.controls } : {} },
118
+ derivedFrom: [data.ids.example],
119
+ }) },
120
+ { id: "usage", title: "Usage", build: ({ data }) => ({
121
+ ...markdown(codeFence(`import { ${data.export} } from "./${data.source.split("/").at(-1)}"`), data.source),
122
+ derivedFrom: [data.ids.symbol]
123
+ }) },
124
+ { id: "examples", title: "Examples", build: ({ data }) => ({ ...markdown(codeFence(data.code), data.example), derivedFrom: [data.ids.example] }) },
125
+ { id: "props", title: "Props", required: true, build: ({ data }) => ({ ...markdown(propsTable(data.props, data.text), data.source), derivedFrom: [data.ids.component] }) },
126
+ { id: "accessibility", title: "Accessibility", build: ({ data, source }) => ({ ...markdown(data.accessibility, source), derivedFrom: [data.ids.component] }) },
127
+ { id: "source", title: "Source", build: ({ data }) => ({
128
+ ...markdown(fill(data.text.source, { source: data.source, name: data.export, revision: data.revision.slice(0, 12) }), data.source),
129
+ derivedFrom: [data.ids.symbol]
130
+ }) },
131
+ ],
132
+ });
133
+ export function componentReference(options, read) {
134
+ presetTextFor(undefined, options.text);
135
+ return defineCollection({
136
+ id: options.id, scope: options.scope, templateConfig: options.templateConfig, template: component, source: options.source,
137
+ async load() {
138
+ return Promise.all(options.entries.map(async (entry) => {
139
+ if (entry.replace !== undefined)
140
+ return entry;
141
+ const { data, entities } = await extract(options.scope, entry, entry.data, read, presetTextFor(entry.dimensions?.locale, options.text));
142
+ return { ...entry, data, entities: [...entry.entities ?? [], ...entities] };
143
+ }));
144
+ },
145
+ });
146
+ }
@@ -0,0 +1,49 @@
1
+ import { type Document, type SearchRecord } from "@docs-sdk-dev/core";
2
+ type Assets = {
3
+ script: string;
4
+ styles: string[];
5
+ };
6
+ /**
7
+ * `site.title` names the site in page titles and the header. `site.root` is the validated site URL without a trailing
8
+ * slash; with it, pages name absolute canonical and hreflang links.
9
+ */
10
+ type Render = (document: Document, documents: Document[], revision: string, assets: Assets, site: {
11
+ root?: string;
12
+ title: string;
13
+ labels?: Record<string, Record<string, string>>;
14
+ search?: Record<string, string>;
15
+ editUrl?: string;
16
+ image?: string;
17
+ sidebar?: "all" | "section";
18
+ titles?: Record<string, import("@docs-sdk-dev/core").LocalizedText>;
19
+ dimensions?: readonly string[];
20
+ editions?: import("@docs-sdk-dev/core").EditionPolicy;
21
+ }) => string;
22
+ /**
23
+ * Build the Solid renderer and client bundle into `stage`. With `cache`, a previous build is reused when the toolchain
24
+ * revision, this adapter, the declared examples and every bundled source module are unchanged; any edit to a bundled
25
+ * file is a miss. The stylesheet is written after reuse, so it never affects the cache.
26
+ */
27
+ export declare function buildSite(root: string, stage: string, css?: string, examples?: readonly string[], cache?: {
28
+ directory: string;
29
+ toolchain: string;
30
+ }): Promise<{
31
+ render: Render;
32
+ assets: {
33
+ script: string;
34
+ styles: string[];
35
+ };
36
+ examples: Set<string>;
37
+ cache: "hit" | "miss" | "off";
38
+ identity: string;
39
+ search: typeof searchFiles;
40
+ }>;
41
+ /** The fields the site's search reads, and the weight each counts for, shared by the index and the search box. */
42
+ export declare const searchFields: readonly ["title", "heading", "subheadingText", "description", "text"];
43
+ /**
44
+ * The site's search index for a set of search records, as Lenso Docs builds it: ZBSearch's static shards, so the search
45
+ * box fetches only the dictionary and the shards a query needs instead of the whole index. Records keep only what a
46
+ * result shows; agents read the full index (search.json) instead.
47
+ */
48
+ export declare function searchFiles(records: readonly SearchRecord[]): Promise<Map<string, Uint8Array<ArrayBufferLike>>>;
49
+ export {};
package/dist/index.js ADDED
@@ -0,0 +1,158 @@
1
+ import { createHash, randomUUID } from "node:crypto";
2
+ import { cp, mkdir, readdir, readFile, rename, rm, stat, writeFile } from "node:fs/promises";
3
+ import { isAbsolute, join } from "node:path";
4
+ import { fileURLToPath, pathToFileURL } from "node:url";
5
+ import { DocsError } from "@docs-sdk-dev/core";
6
+ import { buildStaticIndex } from "@zbsearch/static";
7
+ const virtualExamples = "virtual:docs-examples";
8
+ /**
9
+ * Bundle exactly the examples that documents declare, each as its own on-demand chunk. Paths are project-relative;
10
+ * the client maps an example's declared source to its loader.
11
+ */
12
+ function examplesPlugin(examples) {
13
+ for (const file of examples) {
14
+ if (file.startsWith("/") || file.split("/").includes("..") || !/\.[jt]sx?$/.test(file))
15
+ throw new DocsError("DOCS_EXAMPLE_INVALID", "Examples must be project-relative JavaScript or TypeScript modules.", { source: file });
16
+ }
17
+ const resolved = "\0" + virtualExamples;
18
+ return {
19
+ name: "docs-sdk-examples",
20
+ resolveId: source => source === virtualExamples ? resolved : undefined,
21
+ load: id => id === resolved ? `export default {${[...new Set(examples)].sort()
22
+ .map(file => `${JSON.stringify(file)}: () => import(${JSON.stringify("/" + file)})`).join(",\n")}}` : undefined,
23
+ };
24
+ }
25
+ const digest = (bytes) => createHash("sha256").update(bytes).digest("hex");
26
+ const adapterRevision = digest(await readFile(new URL(import.meta.url)));
27
+ /** Record every source module a build bundled, so a cached build can prove its inputs are unchanged. */
28
+ function modulesPlugin(modules) {
29
+ return {
30
+ name: "docs-sdk-modules",
31
+ generateBundle(_options, bundle) {
32
+ for (const output of Object.values(bundle)) {
33
+ if (output.type !== "chunk")
34
+ continue;
35
+ for (const id of output.moduleIds) {
36
+ const file = id.split("?")[0];
37
+ // node_modules is covered by the lockfile revision in the cache key; virtual modules by the example list.
38
+ if (isAbsolute(file) && !file.includes("/node_modules/"))
39
+ modules.add(file);
40
+ }
41
+ }
42
+ },
43
+ };
44
+ }
45
+ async function unchanged(modules) {
46
+ for (const [file, expected] of Object.entries(modules)) {
47
+ const actual = await readFile(file).then(digest, () => null);
48
+ if (actual !== expected)
49
+ return false;
50
+ }
51
+ return true;
52
+ }
53
+ /** Keep the newest few entries in a directory; older ones belong to sources or toolchains no longer in use. */
54
+ async function prune(directory, keep) {
55
+ const entries = await Promise.all((await readdir(directory).catch(() => [])).filter(name => /^[0-9a-f]{64}$/.test(name))
56
+ .map(async (name) => ({ name, time: (await stat(join(directory, name))).mtimeMs })));
57
+ for (const { name } of entries.sort((left, right) => right.time - left.time).slice(keep))
58
+ await rm(join(directory, name), { recursive: true, force: true });
59
+ }
60
+ /** Entries under one key differ only by source contents; return the first whose recorded modules all still match. */
61
+ async function lookup(directory) {
62
+ for (const name of await readdir(directory).catch(() => [])) {
63
+ if (!/^[0-9a-f]{64}$/.test(name))
64
+ continue;
65
+ const meta = await readFile(join(directory, name, "meta.json"), "utf8").then(text => JSON.parse(text), () => null);
66
+ if (meta && await unchanged(meta.modules))
67
+ return join(directory, name);
68
+ }
69
+ return null;
70
+ }
71
+ /**
72
+ * Build the Solid renderer and client bundle into `stage`. With `cache`, a previous build is reused when the toolchain
73
+ * revision, this adapter, the declared examples and every bundled source module are unchanged; any edit to a bundled
74
+ * file is a miss. The stylesheet is written after reuse, so it never affects the cache.
75
+ */
76
+ export async function buildSite(root, stage, css, examples = [], cache) {
77
+ const server = join(stage, "server");
78
+ const output = join(stage, "public");
79
+ const renderer = fileURLToPath(new URL("../assets/render.tsx", import.meta.url));
80
+ const client = fileURLToPath(new URL("../assets/client.tsx", import.meta.url));
81
+ const common = { root, configFile: false, logLevel: "silent", publicDir: false };
82
+ const key = cache && digest(JSON.stringify({ format: 1, adapter: adapterRevision, toolchain: cache.toolchain, root,
83
+ examples: [...new Set(examples)].sort() }));
84
+ const slot = cache && key ? join(cache.directory, key) : undefined;
85
+ let status = cache ? "miss" : "off";
86
+ const found = slot ? await lookup(slot) : null;
87
+ if (found) {
88
+ await cp(join(found, "server"), server, { recursive: true });
89
+ await cp(join(found, "public"), output, { recursive: true });
90
+ status = "hit";
91
+ }
92
+ else {
93
+ // Vite and the Solid plugin load only on a miss; importing them costs about as much as a small build.
94
+ const [{ build }, { default: solid }] = await Promise.all([import("vite"), import("@solidjs/vite-plugin")]);
95
+ const modules = new Set();
96
+ await build({ ...common, plugins: [solid(), modulesPlugin(modules)], build: {
97
+ outDir: server, ssr: renderer, minify: false,
98
+ } });
99
+ await build({ ...common, plugins: [solid(), examplesPlugin(examples), modulesPlugin(modules)], build: {
100
+ outDir: output, manifest: true, rolldownOptions: { input: client },
101
+ } });
102
+ if (slot && cache) {
103
+ // Write a complete entry beside the cache, then rename it into place, so readers never see half an entry.
104
+ // Entries are named by their recorded sources, so reverting an edit or switching branches finds the old build.
105
+ const temporary = join(cache.directory, `.tmp-${randomUUID()}`);
106
+ try {
107
+ await mkdir(temporary, { recursive: true });
108
+ await cp(server, join(temporary, "server"), { recursive: true });
109
+ await cp(output, join(temporary, "public"), { recursive: true });
110
+ const recorded = Object.fromEntries(await Promise.all([...modules].sort().map(async (file) => [file, digest(await readFile(file))])));
111
+ await writeFile(join(temporary, "meta.json"), JSON.stringify({ modules: recorded }));
112
+ const entry = join(slot, digest(JSON.stringify(recorded)));
113
+ await mkdir(slot, { recursive: true });
114
+ await rm(entry, { recursive: true, force: true });
115
+ await rename(temporary, entry);
116
+ await prune(slot, 4);
117
+ await prune(cache.directory, 4);
118
+ }
119
+ finally {
120
+ await rm(temporary, { recursive: true, force: true });
121
+ }
122
+ }
123
+ }
124
+ const { htmlPage } = await import(pathToFileURL(join(server, "render.js")).href);
125
+ const manifest = JSON.parse(await readFile(join(output, ".vite/manifest.json"), "utf8"));
126
+ const clientEntry = Object.values(manifest).find(chunk => chunk.isEntry);
127
+ if (!clientEntry)
128
+ throw new Error("Missing Solid client entry in the Vite manifest.");
129
+ const styles = css ?? await readFile(new URL("../assets/style.css", import.meta.url), "utf8");
130
+ const hash = createHash("sha256").update(styles).digest("hex").slice(0, 12);
131
+ const style = `/assets/docs-${hash}.css`;
132
+ await writeFile(join(output, style), styles);
133
+ const built = new Set(Object.entries(manifest).filter(([, chunk]) => chunk.isDynamicEntry).map(([file]) => file));
134
+ // What this build ships besides the content: the page renderer, every client chunk (named by its hash) and the
135
+ // stylesheet. Hosts fold it into the build revision, so a changed renderer, script or style is a new revision.
136
+ const identity = digest(JSON.stringify([digest(await readFile(join(server, "render.js"))), manifest, hash]));
137
+ return { render: htmlPage, assets: { script: "/" + clientEntry.file, styles: [style] }, examples: built, cache: status, identity,
138
+ search: searchFiles };
139
+ }
140
+ /** The fields the site's search reads, and the weight each counts for, shared by the index and the search box. */
141
+ export const searchFields = ["title", "heading", "subheadingText", "description", "text"];
142
+ /**
143
+ * The site's search index for a set of search records, as Lenso Docs builds it: ZBSearch's static shards, so the search
144
+ * box fetches only the dictionary and the shards a query needs instead of the whole index. Records keep only what a
145
+ * result shows; agents read the full index (search.json) instead.
146
+ */
147
+ export async function searchFiles(records) {
148
+ const { files } = await buildStaticIndex({
149
+ records: records.map(record => ({
150
+ title: record.title, ...(record.heading ? { heading: record.heading } : {}),
151
+ subheadingText: (record.subheadings ?? []).map(subheading => subheading.text).join(" "),
152
+ ...(record.description ? { description: record.description } : {}), text: record.text,
153
+ route: record.route, snippet: record.snippet, context: record.context, ...(record.subheadings ? { subheadings: record.subheadings } : {}),
154
+ })),
155
+ schema: Object.fromEntries(searchFields.map(field => [field, "string"])),
156
+ });
157
+ return files;
158
+ }
package/package.json CHANGED
@@ -1,6 +1,40 @@
1
1
  {
2
2
  "name": "@docs-sdk-dev/solid",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.2",
4
+ "description": "Solid 2 static site adapter and component reference preset for Docs SDK",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "engines": {
8
+ "node": ">=22.12.0"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
12
+ },
13
+ "files": [
14
+ "dist/*.js",
15
+ "dist/*.d.ts",
16
+ "assets"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./component-reference": {
24
+ "types": "./dist/component-reference.d.ts",
25
+ "default": "./dist/component-reference.js"
26
+ }
27
+ },
28
+ "dependencies": {
29
+ "@docs-sdk-dev/core": "0.0.2",
30
+ "@docs-sdk-dev/typescript": "0.0.2",
31
+ "@pierre/highlights": "0.5.2",
32
+ "@solidjs/vite-plugin": "3.0.1",
33
+ "@solidjs/web": "2.0.3",
34
+ "@ui-sdk/core": "0.1.0-beta.16",
35
+ "@ui-sdk/solid": "0.1.0-beta.16",
36
+ "@zbsearch/static": "4.0.4",
37
+ "solid-js": "2.0.3",
38
+ "vite": "8.3.8"
39
+ }
40
+ }