@mihaifanache/js-ui-sdk
Version:
JS-UI SDK - Complete editor components library for PublicAI
63 lines (53 loc) • 1.78 kB
TypeScript
/**
* JS-UI SDK Type Definitions
* Auto-generated TypeScript definitions for js-ui components
*/
export declare class SimpleCarouselEditor {
constructor(container: string | HTMLElement, options?: any);
render(): void;
destroy(): void;
getConfig(): any;
updateConfig(config: any): void;
}
export declare class SimpleCarouselClient {
constructor(container: string | HTMLElement, options?: any);
initialize(): void;
destroy(): void;
getState(): any;
setState(state: any): void;
}
export interface ComponentManifest {
name: string;
displayName: string;
description: string;
version: string;
category: string;
tags?: string[];
status?: string;
features?: string[];
props?: Record<string, any>;
}
export interface ComponentRegistryEntry {
name: string;
description: string;
category: string;
version: string;
editor: any;
client: any | null;
manifest: ComponentManifest;
}
export declare class JSUISDKManager {
components: Record<string, ComponentRegistryEntry>;
getComponents(): string[];
getComponent(name: string): ComponentRegistryEntry | null;
createEditor(componentName: string, container: string | HTMLElement, options?: any): any;
createClient(componentName: string, container: string | HTMLElement, options?: any): any;
getComponentsByCategory(category: string): ComponentRegistryEntry[];
searchComponents(query: string): ComponentRegistryEntry[];
}
export declare const COMPONENT_REGISTRY: Record<string, ComponentRegistryEntry>;
export declare const SDK_VERSION: string;
export declare const SDK_BUILD_DATE: string;
export declare const SDK_COMPONENTS_COUNT: number;
declare const _default: JSUISDKManager;
export default _default;