@tinacms/form-builder
Advanced tools
Comparing version 0.1.0-alpha.3 to 0.1.0-alpha.4
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@tinacms/react-tinacms"),require("react-final-form")):"function"==typeof define&&define.amd?define(["exports","react","@tinacms/react-tinacms","react-final-form"],t):t((e=e||self)["@tinacms/form-builder"]={},e.React,e.reactTinacms,e.reactFinalForm)}(this,function(e,a,r,o){"use strict";var c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=o.Form;e.FieldsBuilder=function(e){var t=e.form,n=r.useCMS();return a.createElement(a.Fragment,null,t.fields.map(function(r){var e,i=n.fields.find(r.component);return i&&i.type&&(e=i.type),a.createElement(o.Field,{name:r.name,key:r.name,type:e,validate:function(e,t,n){if(i&&i.validate)return i.validate(e,t,n,r)}},function(e){return"string"!=typeof r.component?a.createElement(r.component,c({},e,{field:r})):i?a.createElement(i.Component,c({},e,{field:r})):a.createElement("p",null,"Unrecognized field type")})}))},e.FormBuilder=function(e){var t=e.form,n=e.children;return a.createElement(i,{form:t.finalForm,key:t.name},n)},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@tinacms/react-tinacms"),require("react-final-form")):"function"==typeof define&&define.amd?define(["exports","react","@tinacms/react-tinacms","react-final-form"],t):t((e=e||self)["@tinacms/form-builder"]={},e.React,e.reactTinacms,e.reactFinalForm)}(this,function(e,i,n,o){"use strict";var f=function(){return(f=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)},a=o.Form;e.FieldsBuilder=function(e){var t=e.form,r=n.useCMS();return i.createElement(i.Fragment,null,t.fields.map(function(n){var e,a=r.fields.find(n.component);return a&&a.type&&(e=a.type),i.createElement(o.Field,{name:n.name,key:n.name,type:e,parse:n.parse,format:n.format,validate:function(e,t,r){if(a&&a.validate)return a.validate(e,t,r,n)}},function(e){return"string"!=typeof n.component?i.createElement(n.component,f({},e,{form:t.finalForm,field:n})):a?i.createElement(a.Component,f({},e,{form:t.finalForm,field:n})):i.createElement("p",null,"Unrecognized field type")})}))},e.FormBuilder=function(e){var t=e.form,r=e.children;return i.createElement(a,{form:t.finalForm,key:t.name},r)},Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "@tinacms/form-builder", | ||
"version": "0.1.0-alpha.3", | ||
"version": "0.1.0-alpha.4", | ||
"main": "build/index.js", | ||
@@ -22,8 +22,8 @@ "types": "build/index.d.ts", | ||
"dependencies": { | ||
"@tinacms/core": "^0.1.0-alpha.3", | ||
"@tinacms/react-tinacms": "^0.1.0-alpha.3", | ||
"@tinacms/core": "^0.1.0-alpha.4", | ||
"@tinacms/react-tinacms": "^0.1.0-alpha.4", | ||
"final-form": "^4.18.2", | ||
"react-final-form": "^6.3.0" | ||
}, | ||
"gitHead": "20addeeee8ac66c3985c9c83ca0bb9a49ddf4a80" | ||
"gitHead": "b8044321ec42afdf322626ff322e2c76e0255fe5" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2777
19