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

react-form-with-constraints-tools

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-form-with-constraints-tools - npm Package Compare versions

Comparing version 0.8.0-beta.7 to 0.8.0-beta.8

2

dist/react-form-with-constraints-tools.development.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('react-dom'), require('prop-types'), require('react-form-with-constraints')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'react-dom', 'prop-types', 'react-form-with-constraints'], factory) :
(factory((global.ReactFormWithConstraintsTools = {}),global.React,global.ReactDOM,global.PropTypes,global.ReactFormWithConstraints));
(factory((global.ReactFormWithConstraintsTools = {}),global.React,null,global.PropTypes,global.ReactFormWithConstraints));
}(this, (function (exports,React,ReactDOM,PropTypes,reactFormWithConstraints) { 'use strict';

@@ -6,0 +6,0 @@

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("prop-types"),require("react-form-with-constraints")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","prop-types","react-form-with-constraints"],t):t(e.ReactFormWithConstraintsTools={},e.React,e.ReactDOM,e.PropTypes,e.ReactFormWithConstraints)}(this,function(e,t,r,n,o){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r,n=n&&n.hasOwnProperty("default")?n.default:n;var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};function l(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(e){function r(t){var r=e.call(this,t)||this;return r.reRender=r.reRender.bind(r),r}return l(r,e),r.prototype.componentWillMount=function(){var e=this.context.form;e.fieldsStore.addListener(o.FieldEvent.Added,this.reRender),e.fieldsStore.addListener(o.FieldEvent.Removed,this.reRender),e.addFieldDidValidateEventListener(this.reRender),e.addResetEventListener(this.reRender)},r.prototype.componentWillUnmount=function(){var e=this.context.form;e.fieldsStore.removeListener(o.FieldEvent.Added,this.reRender),e.fieldsStore.removeListener(o.FieldEvent.Removed,this.reRender),e.removeFieldDidValidateEventListener(this.reRender),e.removeResetEventListener(this.reRender)},r.prototype.reRender=function(){this.forceUpdate()},r.prototype.render=function(){var e=function(e,t){var r=JSON.stringify(e,function(e,t){return void 0===t?"__undefined__":t},t);return r=(r=r.replace(/"__undefined__"/g,"undefined")).replace(/"([^"]+)":/g,"$1:")}(this.context.form.fieldsStore.fields,2);return e=e.replace(/{\s+key: (.*),\s+type: (.*),\s+show: (.*)\s+}/g,"{ key: $1, type: $2, show: $3 }"),t.createElement("pre",{style:{fontSize:"small"}},"Fields = ",e)},r.contextTypes={form:n.object.isRequired},r}(t.Component);var a=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return l(r,e),r.prototype.render=function(){var r=this.props,n=r.for,o=r.stop,i="";return n&&(i+='for="'+n+'" '),i+='stop="'+o+'"',t.createElement(t.Fragment,null,t.createElement("li",null,'key="',this.key,'" ',i),t.createElement("ul",null,e.prototype.render.call(this)))},r}(o.FieldFeedbacks),c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return l(n,e),n.prototype.getTextDecoration=function(){var e="";switch(this.state.validation.show){case!1:e="line-through";break;case void 0:e="line-through dotted"}return e},n.prototype.render=function(){var r=this.state.validation,n=r.key,o=r.type;return t.createElement("li",null,t.createElement("span",{style:{textDecoration:this.getTextDecoration()}},'key="',n,'" type="',o,'"')," ",e.prototype.render.call(this))},n.prototype.componentDidUpdate=function(){var e=r.findDOMNode(this),t=e.querySelectorAll("[data-feedback]");try{for(var n=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(t),i=n.next();!i.done;i=n.next()){i.value.style.display="inline"}}catch(e){l={error:e}}finally{try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(l)throw l.error}}var l,s,a=e.closest("li.async");null!==a&&(a.querySelector("span[style]").style.textDecoration=this.getTextDecoration());if(this.state.validation.type===o.FieldFeedbackType.WhenValid){var c=e.querySelector("span[style]"),d=e.querySelector("div."+this.context.form.props.fieldFeedbackClassNames.valid);c.style.textDecoration=null!==d?"":"line-through"}},n}(o.FieldFeedback),d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return l(n,e),n.prototype.getTextDecoration=function(){return"line-through dotted"},n.prototype.componentWillUpdate=function(){r.findDOMNode(this).querySelector("span[style]").style.textDecoration=this.getTextDecoration()},n.prototype.render=function(){return t.createElement("li",{className:"async"},t.createElement("span",{style:{textDecoration:this.getTextDecoration()}},"Async"),t.createElement("ul",null,e.prototype.render.call(this)))},n}(o.Async);e.FormWithConstraints=o.FormWithConstraints,e.DisplayFields=s,e.FieldFeedbacks=a,e.FieldFeedback=c,e.Async=d,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("react-dom"),require("prop-types"),require("react-form-with-constraints")):"function"==typeof define&&define.amd?define(["exports","react","react-dom","prop-types","react-form-with-constraints"],t):t(e.ReactFormWithConstraintsTools={},e.React,null,e.PropTypes,e.ReactFormWithConstraints)}(this,function(e,t,r,n,o){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r,n=n&&n.hasOwnProperty("default")?n.default:n;var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};function l(e,t){function r(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(e){function r(t){var r=e.call(this,t)||this;return r.reRender=r.reRender.bind(r),r}return l(r,e),r.prototype.componentWillMount=function(){var e=this.context.form;e.fieldsStore.addListener(o.FieldEvent.Added,this.reRender),e.fieldsStore.addListener(o.FieldEvent.Removed,this.reRender),e.addFieldDidValidateEventListener(this.reRender),e.addResetEventListener(this.reRender)},r.prototype.componentWillUnmount=function(){var e=this.context.form;e.fieldsStore.removeListener(o.FieldEvent.Added,this.reRender),e.fieldsStore.removeListener(o.FieldEvent.Removed,this.reRender),e.removeFieldDidValidateEventListener(this.reRender),e.removeResetEventListener(this.reRender)},r.prototype.reRender=function(){this.forceUpdate()},r.prototype.render=function(){var e=function(e,t){var r=JSON.stringify(e,function(e,t){return void 0===t?"__undefined__":t},t);return r=(r=r.replace(/"__undefined__"/g,"undefined")).replace(/"([^"]+)":/g,"$1:")}(this.context.form.fieldsStore.fields,2);return e=e.replace(/{\s+key: (.*),\s+type: (.*),\s+show: (.*)\s+}/g,"{ key: $1, type: $2, show: $3 }"),t.createElement("pre",{style:{fontSize:"small"}},"Fields = ",e)},r.contextTypes={form:n.object.isRequired},r}(t.Component);var a=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return l(r,e),r.prototype.render=function(){var r=this.props,n=r.for,o=r.stop,i="";return n&&(i+='for="'+n+'" '),i+='stop="'+o+'"',t.createElement(t.Fragment,null,t.createElement("li",null,'key="',this.key,'" ',i),t.createElement("ul",null,e.prototype.render.call(this)))},r}(o.FieldFeedbacks),d=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return l(n,e),n.prototype.getTextDecoration=function(){var e="";switch(this.state.validation.show){case!1:e="line-through";break;case void 0:e="line-through dotted"}return e},n.prototype.render=function(){var r=this.state.validation,n=r.key,o=r.type;return t.createElement("li",null,t.createElement("span",{style:{textDecoration:this.getTextDecoration()}},'key="',n,'" type="',o,'"')," ",e.prototype.render.call(this))},n.prototype.componentDidUpdate=function(){var e=r.findDOMNode(this),t=e.querySelectorAll("[data-feedback]");try{for(var n=function(e){var t="function"==typeof Symbol&&e[Symbol.iterator],r=0;return t?t.call(e):{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}(t),i=n.next();!i.done;i=n.next()){i.value.style.display="inline"}}catch(e){l={error:e}}finally{try{i&&!i.done&&(s=n.return)&&s.call(n)}finally{if(l)throw l.error}}var l,s,a=e.closest("li.async");null!==a&&(a.querySelector("span[style]").style.textDecoration=this.getTextDecoration());if(this.state.validation.type===o.FieldFeedbackType.WhenValid){var d=e.querySelector("span[style]"),c=e.querySelector("div."+this.context.form.props.fieldFeedbackClassNames.valid);d.style.textDecoration=null!==c?"":"line-through"}},n}(o.FieldFeedback),c=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return l(n,e),n.prototype.getTextDecoration=function(){return"line-through dotted"},n.prototype.componentWillUpdate=function(){r.findDOMNode(this).querySelector("span[style]").style.textDecoration=this.getTextDecoration()},n.prototype.render=function(){return t.createElement("li",{className:"async"},t.createElement("span",{style:{textDecoration:this.getTextDecoration()}},"Async"),t.createElement("ul",null,e.prototype.render.call(this)))},n}(o.Async);e.FormWithConstraints=o.FormWithConstraints,e.DisplayFields=s,e.FieldFeedbacks=a,e.FieldFeedback=d,e.Async=c,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=react-form-with-constraints-tools.production.min.js.map
{
"name": "react-form-with-constraints-tools",
"version": "0.8.0-beta.7",
"version": "0.8.0-beta.8",
"repository": {

@@ -43,3 +43,3 @@ "type": "git",

"react-dom": "latest",
"react-form-with-constraints": "^0.8.0-beta.7",
"react-form-with-constraints": "^0.8.0-beta.8",
"rollup": "latest",

@@ -46,0 +46,0 @@ "rollup-plugin-filesize": "latest",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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