Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-field-form

Package Overview
Dependencies
Maintainers
2
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-field-form - npm Package Compare versions

Comparing version 0.0.0-alpha.5 to 0.0.0-alpha.6

16

es/Field.js

@@ -132,2 +132,4 @@ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

_this.refresh();
return;
}

@@ -151,2 +153,4 @@

_this.refresh();
return;
}

@@ -165,2 +169,4 @@

_this.reRender();
return;
}

@@ -182,2 +188,4 @@

_this.reRender();
return;
}

@@ -197,4 +205,6 @@

return containsNamePath(namePathList, getNamePath(dependency));
}) || shouldUpdate === true || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) {
}) || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) {
_this.reRender();
return;
}

@@ -204,2 +214,6 @@

}
if (shouldUpdate === true) {
_this.reRender();
}
};

@@ -206,0 +220,0 @@

7

es/interface.d.ts

@@ -0,1 +1,2 @@

import { ReactElement } from 'react';
import { ReducerAction } from './useForm';

@@ -28,3 +29,3 @@ export declare type InternalNamePath = (string | number)[];

max?: number;
message?: string;
message?: string | ReactElement;
min?: number;

@@ -105,3 +106,2 @@ pattern?: RegExp;

}
export declare type IsFieldsTouched = ((allFieldsTouched?: boolean) => boolean) | ((nameList: NamePath[], allFieldsTouched?: boolean) => boolean);
export interface FormInstance {

@@ -112,3 +112,4 @@ getFieldValue: (name: NamePath) => StoreValue;

getFieldsError: (nameList?: NamePath[]) => FieldError[];
isFieldsTouched: IsFieldsTouched;
isFieldsTouched(nameList?: NamePath[], allFieldsTouched?: boolean): boolean;
isFieldsTouched(allFieldsTouched?: boolean): boolean;
isFieldTouched: (name: NamePath) => boolean;

@@ -115,0 +116,0 @@ isFieldValidating: (name: NamePath) => boolean;

@@ -149,2 +149,4 @@ "use strict";

_this.refresh();
return;
}

@@ -168,2 +170,4 @@

_this.refresh();
return;
}

@@ -182,2 +186,4 @@

_this.reRender();
return;
}

@@ -199,2 +205,4 @@

_this.reRender();
return;
}

@@ -214,4 +222,6 @@

return (0, _valueUtil.containsNamePath)(namePathList, (0, _valueUtil.getNamePath)(dependency));
}) || shouldUpdate === true || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) {
}) || (typeof shouldUpdate === 'function' ? shouldUpdate(prevStore, values, info) : prevValue !== curValue)) {
_this.reRender();
return;
}

@@ -221,2 +231,6 @@

}
if (shouldUpdate === true) {
_this.reRender();
}
};

@@ -223,0 +237,0 @@

@@ -0,1 +1,2 @@

import { ReactElement } from 'react';
import { ReducerAction } from './useForm';

@@ -28,3 +29,3 @@ export declare type InternalNamePath = (string | number)[];

max?: number;
message?: string;
message?: string | ReactElement;
min?: number;

@@ -105,3 +106,2 @@ pattern?: RegExp;

}
export declare type IsFieldsTouched = ((allFieldsTouched?: boolean) => boolean) | ((nameList: NamePath[], allFieldsTouched?: boolean) => boolean);
export interface FormInstance {

@@ -112,3 +112,4 @@ getFieldValue: (name: NamePath) => StoreValue;

getFieldsError: (nameList?: NamePath[]) => FieldError[];
isFieldsTouched: IsFieldsTouched;
isFieldsTouched(nameList?: NamePath[], allFieldsTouched?: boolean): boolean;
isFieldsTouched(allFieldsTouched?: boolean): boolean;
isFieldTouched: (name: NamePath) => boolean;

@@ -115,0 +116,0 @@ isFieldValidating: (name: NamePath) => boolean;

{
"name": "rc-field-form",
"version": "0.0.0-alpha.5",
"version": "0.0.0-alpha.6",
"description": "React Form Component",

@@ -5,0 +5,0 @@ "keywords": [

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