From 028d2d8203163859882dde1e9e972f05449fb6e0 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Sun, 26 Feb 2017 16:06:31 +0100 Subject: [PATCH 1/2] Add noHtml5Validate prop to react-jsonschema-form The `noHtml5Validate` prop was added to react-jsonschema-form
component. Update typings to reflect this new optional prop. --- react-jsonschema-form/index.d.ts | 1 + react-jsonschema-form/react-jsonschema-form-tests.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/react-jsonschema-form/index.d.ts b/react-jsonschema-form/index.d.ts index 6786862ea8..dafee87e9f 100644 --- a/react-jsonschema-form/index.d.ts +++ b/react-jsonschema-form/index.d.ts @@ -14,6 +14,7 @@ declare module "react-jsonschema-form" { widgets?: {}; fields?: {}; noValidate?: boolean; + noHtml5Validate?: boolean; showErrorList?: boolean; validate?: (formData: any, errors: any) => any; onChange?: (e: IChangeEvent) => any; diff --git a/react-jsonschema-form/react-jsonschema-form-tests.tsx b/react-jsonschema-form/react-jsonschema-form-tests.tsx index 9f2c05086d..c8d49a7628 100644 --- a/react-jsonschema-form/react-jsonschema-form-tests.tsx +++ b/react-jsonschema-form/react-jsonschema-form-tests.tsx @@ -78,6 +78,7 @@ export class Example extends React.Component { uiSchema={uiSchema} showErrorList={false} noValidate={false} + noHtml5Validate={false} formData={this.state} onChange={(formData) => this.setState({formData})} /> } From 46d11bc6ab4a0a9b711b403662dceefb67ebb575 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Sun, 26 Feb 2017 16:21:37 +0100 Subject: [PATCH 2/2] Update version info, update authorship --- react-jsonschema-form/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-jsonschema-form/index.d.ts b/react-jsonschema-form/index.d.ts index dafee87e9f..6ac5f40109 100644 --- a/react-jsonschema-form/index.d.ts +++ b/react-jsonschema-form/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for react-jsonschema-form 0.38.1 +// Type definitions for react-jsonschema-form 0.43.0 // Project: https://github.com/mozilla-services/react-jsonschema-form -// Definitions by: Dan Fox +// Definitions by: Dan Fox , Jon Surrell // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1