Socket
Socket
Sign inDemoInstall

@tinacms/core

Package Overview
Dependencies
Maintainers
10
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinacms/core - npm Package Compare versions

Comparing version 0.2.3 to 0.3.0-alpha.0

35

build/cms-forms/form.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc