docsui-cli 0.0.59
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/README.md +279 -0
- package/dist/commands/add.d.ts +5 -0
- package/dist/commands/add.js +254 -0
- package/dist/commands/doctor.d.ts +5 -0
- package/dist/commands/doctor.js +250 -0
- package/dist/commands/init.d.ts +5 -0
- package/dist/commands/init.js +548 -0
- package/dist/commands/list.d.ts +5 -0
- package/dist/commands/list.js +84 -0
- package/dist/commands/mcp.d.ts +3 -0
- package/dist/commands/mcp.js +1562 -0
- package/dist/commands/new.d.ts +5 -0
- package/dist/commands/new.js +113 -0
- package/dist/commands/remove.d.ts +5 -0
- package/dist/commands/remove.js +134 -0
- package/dist/commands/save.d.ts +5 -0
- package/dist/commands/save.js +60 -0
- package/dist/commands/update.d.ts +5 -0
- package/dist/commands/update.js +247 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +88 -0
- package/dist/latex-to-primitives.d.ts +59 -0
- package/dist/latex-to-primitives.js +1019 -0
- package/dist/lib/component-registry.d.ts +33 -0
- package/dist/lib/component-registry.js +843 -0
- package/dist/lib/css-tokens.d.ts +8 -0
- package/dist/lib/css-tokens.js +294 -0
- package/dist/metadata.d.ts +1 -0
- package/dist/metadata.js +4 -0
- package/dist/symbol-map.d.ts +30 -0
- package/dist/symbol-map.js +1607 -0
- package/dist/utils/detect-structure.d.ts +16 -0
- package/dist/utils/detect-structure.js +58 -0
- package/dist/utils/fetch-component.d.ts +13 -0
- package/dist/utils/fetch-component.js +81 -0
- package/dist/utils/get-config.d.ts +14 -0
- package/dist/utils/get-config.js +19 -0
- package/dist/utils/install-deps.d.ts +3 -0
- package/dist/utils/install-deps.js +23 -0
- package/dist/utils/save-mdx-page.d.ts +35 -0
- package/dist/utils/save-mdx-page.js +44 -0
- package/dist/utils/scan-mdx.d.ts +20 -0
- package/dist/utils/scan-mdx.js +106 -0
- package/dist/utils/telemetry.d.ts +3 -0
- package/dist/utils/telemetry.js +42 -0
- package/dist/utils/write-component.d.ts +7 -0
- package/dist/utils/write-component.js +25 -0
- package/dist/webview-bundle.js +3478 -0
- package/package.json +94 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface ComponentEntry {
|
|
2
|
+
/** Import path relative to componentsDir (e.g. "./alert") */
|
|
3
|
+
importFile: string;
|
|
4
|
+
/** Named exports to import (e.g. ["Alert", "AlertTitle"]) */
|
|
5
|
+
imports: string[];
|
|
6
|
+
/** HTML element → component overrides for mdx-components.tsx (e.g. { h1: "H1" }) */
|
|
7
|
+
elementMappings: Record<string, string>;
|
|
8
|
+
/** Files that make up this component (relative to componentsDir) */
|
|
9
|
+
files: string[];
|
|
10
|
+
/** npm packages required at runtime */
|
|
11
|
+
deps: string[];
|
|
12
|
+
/** Other docsui components that must be installed alongside this one */
|
|
13
|
+
registryDependencies?: string[];
|
|
14
|
+
/** Short description shown in list / add picker */
|
|
15
|
+
description: string;
|
|
16
|
+
}
|
|
17
|
+
declare const REGISTRY: Record<string, ComponentEntry>;
|
|
18
|
+
declare const COMPONENT_MDX_MAP: {
|
|
19
|
+
[k: string]: {
|
|
20
|
+
importFile: string;
|
|
21
|
+
imports: string[];
|
|
22
|
+
elementMappings: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
declare const COMPONENT_FILES: {
|
|
26
|
+
[k: string]: string[];
|
|
27
|
+
};
|
|
28
|
+
declare const FILE_TO_COMPONENT: Record<string, string>;
|
|
29
|
+
declare const COMPONENT_DEPS: {
|
|
30
|
+
[k: string]: string[];
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { COMPONENT_DEPS, COMPONENT_FILES, COMPONENT_MDX_MAP, type ComponentEntry, FILE_TO_COMPONENT, REGISTRY };
|