@ui-autotools/registry
Advanced tools
Comparing version 3.4.0 to 4.0.0
import * as React from 'react'; | ||
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo } from './types'; | ||
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo, IStaticResource } from './types'; | ||
export declare class ComponentMetadata<Props, State> implements IComponentMetadata<Props, State> { | ||
@@ -11,5 +11,7 @@ component: React.ComponentType<Props>; | ||
nonHydrationTestCompliant: boolean; | ||
path: string; | ||
exportName: string; | ||
baseStylePath: string; | ||
exportInfo: IExportInfo | null; | ||
staticResources: IStaticResource[]; | ||
customFields: { | ||
[key: string]: any; | ||
}; | ||
constructor(component: React.ComponentType<Props>); | ||
@@ -19,4 +21,4 @@ addSim(sim: ISimulation<Props, State>): void; | ||
simulationToJSX(simulation: ISimulation<Props, State>): JSX.Element; | ||
exportedFrom(compInfo: IExportInfo): void; | ||
addCustomField(key: string, field: any): void; | ||
} | ||
//# sourceMappingURL=component-metadata.d.ts.map |
@@ -21,5 +21,5 @@ "use strict"; | ||
this.nonHydrationTestCompliant = false; | ||
this.path = ''; | ||
this.exportName = ''; | ||
this.baseStylePath = ''; | ||
this.exportInfo = null; | ||
this.staticResources = []; | ||
this.customFields = {}; | ||
} | ||
@@ -52,7 +52,4 @@ addSim(sim) { | ||
} | ||
exportedFrom(compInfo) { | ||
const { path, exportName, baseStylePath } = compInfo; | ||
this.path = path; | ||
this.exportName = exportName; | ||
this.baseStylePath = baseStylePath; | ||
addCustomField(key, field) { | ||
this.customFields[key] = field; | ||
} | ||
@@ -59,0 +56,0 @@ } |
@@ -7,12 +7,4 @@ import { ComponentType, ComponentClass } from 'react'; | ||
} | ||
export interface ICompiledComponent { | ||
cssPath?: string; | ||
compPath: string; | ||
} | ||
export interface IComponentMetadata<Props, State> { | ||
component: ComponentType<Props> | ComponentClass<Props, State>; | ||
exportedFrom: (compInfo: IExportInfo) => void; | ||
path: string; | ||
exportName: string; | ||
baseStylePath: string; | ||
simulations: Array<ISimulation<Props, State>>; | ||
@@ -27,3 +19,8 @@ styles: Map<any, IStyleMetadata>; | ||
nonHydrationTestCompliant: boolean; | ||
compiledComponent?: ICompiledComponent; | ||
exportInfo: IExportInfo | null; | ||
staticResources: IStaticResource[]; | ||
addCustomField: (key: string, field: any) => void; | ||
customFields: { | ||
[key: string]: any; | ||
}; | ||
} | ||
@@ -33,4 +30,9 @@ export interface IExportInfo { | ||
exportName: string; | ||
baseStylePath: string; | ||
baseStylePath?: string; | ||
} | ||
export interface IStaticResource { | ||
path: string; | ||
url: string; | ||
mimeType: string; | ||
} | ||
export interface IMetadata { | ||
@@ -47,3 +49,4 @@ components: Map<ComponentType<any> | ComponentClass<any, any>, IComponentMetadata<any, any>>; | ||
state?: State; | ||
staticResources?: IStaticResource[]; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
import * as React from 'react'; | ||
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo } from './types'; | ||
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo, IStaticResource } from './types'; | ||
export declare class ComponentMetadata<Props, State> implements IComponentMetadata<Props, State> { | ||
@@ -11,5 +11,7 @@ component: React.ComponentType<Props>; | ||
nonHydrationTestCompliant: boolean; | ||
path: string; | ||
exportName: string; | ||
baseStylePath: string; | ||
exportInfo: IExportInfo | null; | ||
staticResources: IStaticResource[]; | ||
customFields: { | ||
[key: string]: any; | ||
}; | ||
constructor(component: React.ComponentType<Props>); | ||
@@ -19,4 +21,4 @@ addSim(sim: ISimulation<Props, State>): void; | ||
simulationToJSX(simulation: ISimulation<Props, State>): JSX.Element; | ||
exportedFrom(compInfo: IExportInfo): void; | ||
addCustomField(key: string, field: any): void; | ||
} | ||
//# sourceMappingURL=component-metadata.d.ts.map |
@@ -12,5 +12,5 @@ import * as React from 'react'; | ||
this.nonHydrationTestCompliant = false; | ||
this.path = ''; | ||
this.exportName = ''; | ||
this.baseStylePath = ''; | ||
this.exportInfo = null; | ||
this.staticResources = []; | ||
this.customFields = {}; | ||
} | ||
@@ -43,9 +43,6 @@ addSim(sim) { | ||
} | ||
exportedFrom(compInfo) { | ||
const { path, exportName, baseStylePath } = compInfo; | ||
this.path = path; | ||
this.exportName = exportName; | ||
this.baseStylePath = baseStylePath; | ||
addCustomField(key, field) { | ||
this.customFields[key] = field; | ||
} | ||
} | ||
//# sourceMappingURL=component-metadata.js.map |
@@ -7,12 +7,4 @@ import { ComponentType, ComponentClass } from 'react'; | ||
} | ||
export interface ICompiledComponent { | ||
cssPath?: string; | ||
compPath: string; | ||
} | ||
export interface IComponentMetadata<Props, State> { | ||
component: ComponentType<Props> | ComponentClass<Props, State>; | ||
exportedFrom: (compInfo: IExportInfo) => void; | ||
path: string; | ||
exportName: string; | ||
baseStylePath: string; | ||
simulations: Array<ISimulation<Props, State>>; | ||
@@ -27,3 +19,8 @@ styles: Map<any, IStyleMetadata>; | ||
nonHydrationTestCompliant: boolean; | ||
compiledComponent?: ICompiledComponent; | ||
exportInfo: IExportInfo | null; | ||
staticResources: IStaticResource[]; | ||
addCustomField: (key: string, field: any) => void; | ||
customFields: { | ||
[key: string]: any; | ||
}; | ||
} | ||
@@ -33,4 +30,9 @@ export interface IExportInfo { | ||
exportName: string; | ||
baseStylePath: string; | ||
baseStylePath?: string; | ||
} | ||
export interface IStaticResource { | ||
path: string; | ||
url: string; | ||
mimeType: string; | ||
} | ||
export interface IMetadata { | ||
@@ -47,3 +49,4 @@ components: Map<ComponentType<any> | ComponentClass<any, any>, IComponentMetadata<any, any>>; | ||
state?: State; | ||
staticResources?: IStaticResource[]; | ||
} | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@ui-autotools/registry", | ||
"version": "3.4.0", | ||
"version": "4.0.0", | ||
"main": "cjs/index.js", | ||
@@ -36,4 +36,3 @@ "module": "esm/index.js", | ||
"access": "public" | ||
}, | ||
"gitHead": "3081d6ac44da66e09a681f964e8ff2b2ac410b4d" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47085
500