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.1 to 0.0.0-alpha.2

4

es/Form.d.ts

@@ -12,2 +12,6 @@ import * as React from 'react';

validateMessages?: ValidateMessages;
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__?: {
NOT_CONTAIN_FORM?: boolean;
HOOK_MARK: string;
};
onValuesChange?: Callbacks['onValuesChange'];

@@ -14,0 +18,0 @@ onFieldsChange?: Callbacks['onFieldsChange'];

@@ -32,3 +32,4 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }

onFinish = _ref.onFinish,
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish"]);
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ = _ref.__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__,
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish", "__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__"]);

@@ -99,2 +100,9 @@ var formContext = React.useContext(FormContext); // We customize handle event since Context will makes all the consumer re-render:

prevFieldsRef.current = fields;
if (__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.NOT_CONTAIN_FORM && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.HOOK_MARK === 'asdihasiodhaohdioahfoihsoefhisihifhsiofhiosfd') {
return React.createElement(FieldContext.Provider, {
value: formInstance
}, childrenNode);
}
return React.createElement("form", Object.assign({}, restProps, {

@@ -101,0 +109,0 @@ onSubmit: function onSubmit(event) {

@@ -12,2 +12,6 @@ import * as React from 'react';

validateMessages?: ValidateMessages;
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__?: {
NOT_CONTAIN_FORM?: boolean;
HOOK_MARK: string;
};
onValuesChange?: Callbacks['onValuesChange'];

@@ -14,0 +18,0 @@ onFieldsChange?: Callbacks['onFieldsChange'];

@@ -46,3 +46,4 @@ "use strict";

onFinish = _ref.onFinish,
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish"]);
__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ = _ref.__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__,
restProps = _objectWithoutProperties(_ref, ["name", "initialValues", "fields", "form", "children", "validateMessages", "onValuesChange", "onFieldsChange", "onFinish", "__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__"]);

@@ -113,2 +114,9 @@ var formContext = React.useContext(_FormContext.default); // We customize handle event since Context will makes all the consumer re-render:

prevFieldsRef.current = fields;
if (__COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__ && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.NOT_CONTAIN_FORM && __COMPATIBILITY_USAGE_OR_YOU_WILL_BE_FIRED__.HOOK_MARK === 'asdihasiodhaohdioahfoihsoefhisihifhsiofhiosfd') {
return React.createElement(_FieldContext.default.Provider, {
value: formInstance
}, childrenNode);
}
return React.createElement("form", Object.assign({}, restProps, {

@@ -115,0 +123,0 @@ onSubmit: function onSubmit(event) {

2

package.json
{
"name": "rc-field-form",
"version": "0.0.0-alpha.1",
"version": "0.0.0-alpha.2",
"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