@hadyfayed/filament-react-wrapper
Version:
Enterprise React integration for Laravel/Filament - Smart asset loading, 90%+ React-PHP function mapping, no-plugin Filament integration
16 lines • 1.09 kB
TypeScript
import { default as React } from 'react';
export interface SimpleComponentConfig {
lazy?: boolean;
category?: string;
props?: Record<string, any>;
middleware?: string[];
}
export declare function Component(name: string, config?: SimpleComponentConfig): <T extends React.ComponentType<any>>(target: T) => T;
export declare const registerComponent: <T extends React.ComponentType<any>>(name: string, component: T, config?: SimpleComponentConfig) => void;
export declare const getComponent: (name: string) => import('..').IComponentDefinition | undefined;
export declare const listComponents: (category?: string) => Record<string, any> | Map<string, import('..').IComponentDefinition>;
export declare const mountIsland: (selector: string, componentName: string, props?: any) => void;
export declare const autoMountIslands: () => void;
export declare const createComponent: (name: string, render: React.FC<any>) => React.FC<any>;
export declare const registerComponents: (components: Record<string, React.ComponentType<any>>) => void;
//# sourceMappingURL=SimpleRegistration.d.ts.map