@tinacms/core
Advanced tools
Comparing version 0.2.3 to 0.3.0-alpha.0
@@ -20,2 +20,20 @@ /** | ||
import { FormApi, Config, Unsubscribe } from 'final-form'; | ||
export interface FormOptions<S> extends Config<S> { | ||
id: any; | ||
label: string; | ||
fields: Field[]; | ||
reset?(): void; | ||
actions?: any[]; | ||
} | ||
export interface Field { | ||
name: string; | ||
label?: string; | ||
description?: string; | ||
component: React.FC<any> | string | null; | ||
parse?: (value: any, name: string, field: Field) => any; | ||
format?: (value: any, name: string, field: Field) => any; | ||
validate?(value: any, allValues: any, meta: any, field: Field): string | object | undefined; | ||
defaultValue?: any; | ||
fields?: Field[]; | ||
} | ||
interface FieldSubscription { | ||
@@ -49,19 +67,2 @@ path: string; | ||
} | ||
export interface FormOptions<S> extends Config<S> { | ||
id: any; | ||
label: string; | ||
fields: Field[]; | ||
reset?(): void; | ||
actions?: any[]; | ||
} | ||
export interface Field { | ||
name: string; | ||
label?: string; | ||
description?: string; | ||
component: React.FC<any> | string | null; | ||
parse?: (value: string, name: string) => any; | ||
format?: (value: string, name: string) => any; | ||
defaultValue?: any; | ||
fields?: Field[]; | ||
} | ||
export {}; |
@@ -6,2 +6,8 @@ # Change Log | ||
## [0.3.0-alpha.0](https://github.com/tinacms/tinacms/compare/@tinacms/core@0.1.1...@tinacms/core@0.3.0-alpha.0) (2019-10-21) | ||
### Features | ||
- **fields:** a validate function can be set on field definitions ([63f15fc](https://github.com/tinacms/tinacms/commit/63f15fc)) | ||
## [0.2.0-alpha.0](https://github.com/tinacms/tinacms/compare/@tinacms/core@0.1.1...@tinacms/core@0.2.0-alpha.0) (2019-10-07) | ||
@@ -8,0 +14,0 @@ |
{ | ||
"name": "@tinacms/core", | ||
"version": "0.2.3", | ||
"version": "0.3.0-alpha.0", | ||
"main": "build/index.js", | ||
@@ -30,3 +30,3 @@ "types": "build/index.d.ts", | ||
"devDependencies": { | ||
"@tinacms/scripts": "^0.1.5", | ||
"@tinacms/scripts": "^0.1.6-alpha.0", | ||
"@types/jest": "^24.0.15", | ||
@@ -45,3 +45,3 @@ "@types/react": "^16.8.23", | ||
}, | ||
"gitHead": "806e3f00b346e21bc3a27b708a4d9b2c433cd721" | ||
"gitHead": "113100a04c5e18ba3f878334183f87616b40befd" | ||
} |
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
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
30338
258
1