@schirkan/reactron-interfaces
Advanced tools
Comparing version 0.5.1 to 0.6.0
{ | ||
"name": "@schirkan/reactron-interfaces", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"description": "interfaces for reactron modules", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,5 +9,2 @@ type IOptionDefinitionValueType = 'object' | 'number' | 'boolean' | 'string' | 'style' | 'webComponent'; | ||
export interface IFieldDefinition extends IObjectDefinition { | ||
// name: string; | ||
// displayName: string; | ||
// description?: string; | ||
valueType: IOptionDefinitionValueType; | ||
@@ -19,5 +16,6 @@ defaultValue?: any; | ||
values?: IOptionDefinitionValue[]; | ||
// fields?: IFieldDefinition[]; | ||
isArray?: boolean; | ||
textRows?: number; | ||
inputControl?: { module: string, component: string }; | ||
inputForm?: { module: string, component: string }; | ||
} | ||
@@ -30,4 +28,2 @@ | ||
fields?: IFieldDefinition[]; | ||
inputControl?: { module: string, component: string }; | ||
inputForm?: { module: string, component: string }; | ||
} |
import { IObjectDefinition } from "./IObjectDefinition"; | ||
type ComponentType = 'web' | 'input' | string; | ||
type ComponentType = 'content' | 'admin-input' | 'layout' | 'frame' | string; | ||
export interface IReactronComponentDefinition<TOptions = any> extends IObjectDefinition { | ||
component: new (props: TOptions) => React.Component<TOptions>; | ||
type?: ComponentType; // default = 'web' | ||
type?: ComponentType; // default = 'content' | ||
} |
15882
365