revolutionary-ui
Version:
Revolutionary UI v3.0 - AI-Powered Interactive CLI with 10+ AI providers, website inspiration analyzer, and advanced code generation
76 lines (75 loc) • 2.18 kB
TypeScript
/**
* Marketplace Client for Revolutionary UI Factory
* Handles marketplace component browsing, search, and installation
*/
export interface MarketplaceComponent {
id: string;
name: string;
description: string;
category: ComponentCategory;
framework: string[];
styling: string[];
author: string;
downloads: number;
rating: number;
price: number;
screenshots: string[];
features: string[];
dependencies: string[];
version: string;
updatedAt: string;
tags: string[];
}
export type ComponentCategory = 'forms' | 'tables' | 'navigation' | 'layout' | 'data-display' | 'feedback' | 'overlay' | 'inputs' | 'media' | 'charts' | 'calendars' | 'maps' | 'editors' | 'ecommerce' | 'dashboards';
export interface SearchOptions {
query?: string;
category?: ComponentCategory;
framework?: string;
styling?: string;
priceRange?: {
min: number;
max: number;
};
sortBy?: 'downloads' | 'rating' | 'updated' | 'price';
page?: number;
limit?: number;
}
export interface InstallOptions {
outputDir?: string;
framework?: string;
styling?: string;
typescript?: boolean;
includeDemo?: boolean;
}
export declare class MarketplaceClient {
private cache;
/**
* Search marketplace components
*/
search(options?: SearchOptions): Promise<MarketplaceComponent[]>;
/**
* Get component details
*/
getComponent(componentId: string): Promise<MarketplaceComponent>;
/**
* Install a marketplace component
*/
install(componentId: string, options?: InstallOptions): Promise<void>;
/**
* Get popular components
*/
getPopular(limit?: number): Promise<MarketplaceComponent[]>;
/**
* Get recently updated components
*/
getRecent(limit?: number): Promise<MarketplaceComponent[]>;
/**
* Get components by category
*/
getByCategory(category: ComponentCategory, limit?: number): Promise<MarketplaceComponent[]>;
/**
* Get featured components
*/
getFeatured(): Promise<MarketplaceComponent[]>;
}
export declare const mockComponents: MarketplaceComponent[];