@sidecar-ai/cli 0.1.0-alpha.0
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/index.d.ts +19 -0
- package/dist/index.js +4922 -0
- package/dist/index.js.map +1 -0
- package/package.json +28 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/** Dispatches the requested CLI command. */
|
|
3
|
+
declare function main(argv: string[]): Promise<void>;
|
|
4
|
+
/** Component inventory rendered in the preview matrix. */
|
|
5
|
+
type ComponentPreviewSet = "representative" | "all";
|
|
6
|
+
/** Theme variants rendered by the preview matrix. */
|
|
7
|
+
type ComponentPreviewTheme = "light" | "dark";
|
|
8
|
+
/** Renders the static preview matrix used for human parity checks. */
|
|
9
|
+
declare function renderComponentPreviewHtml(host: string, compare: string, css: string, themes: readonly ComponentPreviewTheme[], componentSet: ComponentPreviewSet): string;
|
|
10
|
+
/** Renders one isolated theme frame so root host/theme selectors work normally. */
|
|
11
|
+
declare function renderComponentPreviewFrame(host: string, compare: string, css: string, theme: ComponentPreviewTheme, componentSet: ComponentPreviewSet): string;
|
|
12
|
+
/** Returns the components represented in a preview set. */
|
|
13
|
+
declare function previewComponentNames(componentSet: ComponentPreviewSet): string[];
|
|
14
|
+
/** Parses the component inventory selected for the preview command. */
|
|
15
|
+
declare function readPreviewComponentSet(value: string | undefined): ComponentPreviewSet;
|
|
16
|
+
/** Parses the theme set selected for the preview command. */
|
|
17
|
+
declare function readPreviewThemes(value: string | undefined): ComponentPreviewTheme[];
|
|
18
|
+
|
|
19
|
+
export { main, previewComponentNames, readPreviewComponentSet, readPreviewThemes, renderComponentPreviewFrame, renderComponentPreviewHtml };
|