auto-views
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -89,3 +89,3 @@ "use strict"; | ||
})) == undefined; | ||
return React.createElement(form_entry_1.Entry, { "data-automation-id": form_entry_1.entrySelector(key), entryKey: key, title: property.title, displayMode: displayMode, type: property.type, value: formData[key], onChange: function (e) { return onEntryChange && onEntryChange(key, e); }, valid: isValid }); | ||
return React.createElement(form_entry_1.Entry, { "data-automation-id": form_entry_1.entrySelector(key), entryKey: key, title: property.title || "", displayMode: displayMode, type: property.type, value: formData[key], onChange: function (e) { return onEntryChange && onEntryChange(key, e); }, valid: isValid }); | ||
}; | ||
@@ -92,0 +92,0 @@ } |
export declare class SchemaProperty { | ||
title: string; | ||
type: string; | ||
title: string | undefined; | ||
[key: string]: any; | ||
constructor(title: string, type: string, additionalProps?: any); | ||
constructor(type: string, title?: string | undefined, additionalProps?: any); | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SchemaProperty = (function () { | ||
function SchemaProperty(title, type, additionalProps) { | ||
function SchemaProperty(type, title, additionalProps) { | ||
if (additionalProps === void 0) { additionalProps = {}; } | ||
this.type = type; | ||
this.title = title; | ||
this.type = type; | ||
for (var key in additionalProps) { | ||
@@ -9,0 +9,0 @@ if (additionalProps.hasOwnProperty(key)) { |
{ | ||
"name": "auto-views", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "Common, fully-tested, strictly-typed, Wix-styled, auto views library", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -1,7 +0,5 @@ | ||
import {Validator, Schema} from 'jsonschema'; | ||
export class SchemaProperty { | ||
[key:string]:any; | ||
constructor(public title:string, public type: string,additionalProps:any={}){ | ||
constructor(public type: string,public title?: string, additionalProps: any = {}){ | ||
for (let key in additionalProps){ | ||
@@ -8,0 +6,0 @@ if (additionalProps.hasOwnProperty(key)){ |
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
54549
707