@maif/react-forms 1.3.1-rc.3 → 1.3.1-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.d.ts +3 -3
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -58,7 +58,7 @@ declare const test: (name: string, message: string | undefined, test: TestFuncti
58
58
  declare const when: (ref: string, test: TestFunction<any, object>, then?: Constraint[], otherwise?: Constraint[]) => (r: AnySchema, key: string, dependencies: any[]) => yup.AnySchema<any, any, any>;
59
59
  declare const oneOf: (arrayOfValues: any[], message?: string) => (r: AnySchema) => yup.AnySchema<any, any, any>;
60
60
  declare const blacklist: (arrayOfValues: any[], message?: string) => (r: AnySchema) => yup.AnySchema<any, any, any>;
61
- declare const ref: (ref: string) => Reference<unknown>;
61
+ declare const ref: <T>(ref: string) => Reference<T>;
62
62
  declare const jsonConstraints: Record<string, any>;
63
63
  declare type TConstraintType = keyof typeof jsonConstraints;
64
64
 
@@ -400,7 +400,7 @@ interface SchemaEntry {
400
400
  interface FlowObject {
401
401
  label: string;
402
402
  flow: Flow;
403
- collapse: boolean;
403
+ collapsed: boolean;
404
404
  }
405
405
  declare type Flow = Array<string | FlowObject>;
406
406
  interface Informations {
@@ -412,7 +412,7 @@ interface Informations {
412
412
 
413
413
  declare const Form: React$1.ForwardRefExoticComponent<{
414
414
  schema: Schema;
415
- flow: Array<string | FlowObject>;
415
+ flow?: (string | FlowObject)[] | undefined;
416
416
  value?: object | undefined;
417
417
  inputWrapper?: ((props: object) => JSX.Element) | undefined;
418
418
  onSubmit: (obj: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maif/react-forms",
3
3
  "description": "Build react safe forms as fast as possible",
4
- "version": "1.3.1-rc.3",
4
+ "version": "1.3.1-rc.6",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
7
7
  "source": "src/index.ts",