@ui-autotools/registry
Advanced tools
Comparing version 2.1.0 to 3.0.0
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo } from './types'; | ||
@@ -7,7 +7,8 @@ export declare class ComponentMetadata<Props, State> implements IComponentMetadata<Props, State> { | ||
styles: Map<any, IStyleMetadata>; | ||
reactStrictModeCompliant: boolean; | ||
nonReactStrictModeCompliant: boolean; | ||
nonA11yCompliant: boolean; | ||
nonEventListenerTestCompliant: boolean; | ||
path: string; | ||
exportName: string; | ||
baseStylePath: string; | ||
a11yCompliant: boolean; | ||
constructor(component: React.ComponentType<Props>); | ||
@@ -14,0 +15,0 @@ addSim(sim: ISimulation<Props, State>): void; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const react_1 = __importDefault(require("react")); | ||
const React = __importStar(require("react")); | ||
const utils_1 = require("../utils"); | ||
@@ -13,7 +17,8 @@ class ComponentMetadata { | ||
this.styles = new Map(); | ||
this.reactStrictModeCompliant = true; | ||
this.nonReactStrictModeCompliant = false; | ||
this.nonA11yCompliant = false; | ||
this.nonEventListenerTestCompliant = false; | ||
this.path = ''; | ||
this.exportName = ''; | ||
this.baseStylePath = ''; | ||
this.a11yCompliant = true; | ||
} | ||
@@ -43,3 +48,3 @@ addSim(sim) { | ||
else { | ||
return react_1.default.createElement(Comp, Object.assign({}, simulation.props)); | ||
return React.createElement(Comp, Object.assign({}, simulation.props)); | ||
} | ||
@@ -46,0 +51,0 @@ } |
@@ -18,4 +18,5 @@ import { ComponentType, ComponentClass } from 'react'; | ||
simulationToJSX: (sim: ISimulation<Props, State>) => JSX.Element; | ||
reactStrictModeCompliant: boolean; | ||
a11yCompliant: boolean; | ||
nonReactStrictModeCompliant: boolean; | ||
nonA11yCompliant: boolean; | ||
nonEventListenerTestCompliant: boolean; | ||
} | ||
@@ -22,0 +23,0 @@ export interface IExportInfo { |
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { ISimulation } from '../registry'; | ||
export declare function getCompWithState(Comp: React.ComponentClass<any>, simulation: ISimulation<any, any>): JSX.Element; | ||
//# sourceMappingURL=get-comp-with-state.d.ts.map |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; | ||
result["default"] = mod; | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const react_1 = __importDefault(require("react")); | ||
const React = __importStar(require("react")); | ||
function getCompWithState(Comp, simulation) { | ||
@@ -34,5 +38,5 @@ // Override the requested component's setState | ||
} | ||
return react_1.default.createElement(Wrapped, Object.assign({}, simulation.props)); | ||
return React.createElement(Wrapped, Object.assign({}, simulation.props)); | ||
} | ||
exports.getCompWithState = getCompWithState; | ||
//# sourceMappingURL=get-comp-with-state.js.map |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { IComponentMetadata, ISimulation, IStyleMetadata, IExportInfo } from './types'; | ||
@@ -7,7 +7,8 @@ export declare class ComponentMetadata<Props, State> implements IComponentMetadata<Props, State> { | ||
styles: Map<any, IStyleMetadata>; | ||
reactStrictModeCompliant: boolean; | ||
nonReactStrictModeCompliant: boolean; | ||
nonA11yCompliant: boolean; | ||
nonEventListenerTestCompliant: boolean; | ||
path: string; | ||
exportName: string; | ||
baseStylePath: string; | ||
a11yCompliant: boolean; | ||
constructor(component: React.ComponentType<Props>); | ||
@@ -14,0 +15,0 @@ addSim(sim: ISimulation<Props, State>): void; |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { isValidSimulationTitle, getCompWithState } from '../utils'; | ||
@@ -8,7 +8,8 @@ export class ComponentMetadata { | ||
this.styles = new Map(); | ||
this.reactStrictModeCompliant = true; | ||
this.nonReactStrictModeCompliant = false; | ||
this.nonA11yCompliant = false; | ||
this.nonEventListenerTestCompliant = false; | ||
this.path = ''; | ||
this.exportName = ''; | ||
this.baseStylePath = ''; | ||
this.a11yCompliant = true; | ||
} | ||
@@ -15,0 +16,0 @@ addSim(sim) { |
@@ -18,4 +18,5 @@ import { ComponentType, ComponentClass } from 'react'; | ||
simulationToJSX: (sim: ISimulation<Props, State>) => JSX.Element; | ||
reactStrictModeCompliant: boolean; | ||
a11yCompliant: boolean; | ||
nonReactStrictModeCompliant: boolean; | ||
nonA11yCompliant: boolean; | ||
nonEventListenerTestCompliant: boolean; | ||
} | ||
@@ -22,0 +23,0 @@ export interface IExportInfo { |
@@ -1,4 +0,4 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
import { ISimulation } from '../registry'; | ||
export declare function getCompWithState(Comp: React.ComponentClass<any>, simulation: ISimulation<any, any>): JSX.Element; | ||
//# sourceMappingURL=get-comp-with-state.d.ts.map |
@@ -1,2 +0,2 @@ | ||
import React from 'react'; | ||
import * as React from 'react'; | ||
export function getCompWithState(Comp, simulation) { | ||
@@ -3,0 +3,0 @@ // Override the requested component's setState |
{ | ||
"name": "@ui-autotools/registry", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"main": "cjs/index.js", | ||
@@ -33,3 +33,3 @@ "module": "esm/index.js", | ||
}, | ||
"gitHead": "b44a238d1a57a2ecc95a0c0ce2ab3ebae5f82105" | ||
"gitHead": "424bd5bdcc74db1a38c8e8891ece6a02fc844918" | ||
} |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
45770
480
0