From 4a85e04fd96b6b12c4dcc02c3b1f8ac609e43dcc Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Mon, 16 Apr 2018 11:45:10 +0300 Subject: [PATCH] Add Final Form --- package.json | 4 +++ yarn.lock | 79 +++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 60 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index b0aed6af..38f071d5 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,8 @@ "express": "^4.16.3", "express-enforces-ssl": "^1.1.0", "express-sitemap": "^1.8.0", + "final-form": "^4.4.0", + "final-form-arrays": "^1.0.4", "helmet": "^3.12.0", "lodash": "^4.17.5", "moment": "^2.20.1", @@ -33,6 +35,8 @@ "react": "^16.3.1", "react-dates": "^16.0.0", "react-dom": "^16.3.1", + "react-final-form": "^3.1.5", + "react-final-form-arrays": "^1.0.4", "react-google-maps": "^9.4.5", "react-helmet": "^5.2.0", "react-intl": "^2.4.0", diff --git a/yarn.lock b/yarn.lock index c16fb713..c30b2d7d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -262,7 +262,7 @@ array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" -array-flatten@^2.1.0, array-flatten@^2.1.1: +array-flatten@^2.1.0: version "2.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.1.tgz#426bb9da84090c1838d812c8150af20a8331e296" @@ -306,6 +306,14 @@ array.prototype.find@^2.0.4: define-properties "^1.1.2" es-abstract "^1.7.0" +array.prototype.flatten@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/array.prototype.flatten/-/array.prototype.flatten-1.2.1.tgz#a77ae1b64524ce373b137fade324d12040d3c680" + dependencies: + define-properties "^1.1.2" + es-abstract "^1.10.0" + function-bind "^1.1.1" + arrify@^1.0.0, arrify@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" @@ -1846,7 +1854,7 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" -consolidated-events@^1.1.0: +consolidated-events@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/consolidated-events/-/consolidated-events-1.1.1.tgz#25395465b35e531395418b7bbecb5ecaf198d179" @@ -2562,6 +2570,16 @@ error-ex@^1.2.0: dependencies: is-arrayish "^0.2.1" +es-abstract@^1.10.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.11.0.tgz#cce87d518f0496893b1a30cd8461835535480681" + dependencies: + es-to-primitive "^1.1.1" + function-bind "^1.1.1" + has "^1.0.1" + is-callable "^1.1.3" + is-regex "^1.0.4" + es-abstract@^1.6.1, es-abstract@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.7.0.tgz#dfade774e01bfcd97f96180298c449c8623fb94c" @@ -3170,6 +3188,14 @@ fill-range@^4.0.0: repeat-string "^1.6.1" to-regex-range "^2.1.0" +final-form-arrays@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/final-form-arrays/-/final-form-arrays-1.0.4.tgz#74330cb4d64ce07bb1c4a9084d0b65afdac6bf72" + +final-form@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/final-form/-/final-form-4.4.0.tgz#3eaa1305d7b03d1e5698ace5ff361d4d20d44ac0" + finalhandler@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.1.tgz#eebf4ed840079c83f4249038c9d703008301b105" @@ -6798,7 +6824,7 @@ rc@^1.1.6, rc@^1.1.7: minimist "^1.2.0" strip-json-comments "~2.0.1" -react-addons-shallow-compare@^15.5.2: +react-addons-shallow-compare@^15.6.2: version "15.6.2" resolved "https://registry.yarnpkg.com/react-addons-shallow-compare/-/react-addons-shallow-compare-15.6.2.tgz#198a00b91fc37623db64a28fd17b596ba362702f" dependencies: @@ -6806,21 +6832,21 @@ react-addons-shallow-compare@^15.5.2: object-assign "^4.1.0" react-dates@^16.0.0: - version "16.0.1" - resolved "https://registry.yarnpkg.com/react-dates/-/react-dates-16.0.1.tgz#0522e65c57b1a5dd685160127e29dff8bb41e573" + version "16.6.0" + resolved "https://registry.yarnpkg.com/react-dates/-/react-dates-16.6.0.tgz#03cbd7ff308b0d709b87834b592088cf837bcc6e" dependencies: airbnb-prop-types "^2.8.1" - consolidated-events "^1.1.0" + consolidated-events "^1.1.1" is-touch-device "^1.0.1" lodash "^4.1.1" - object.assign "^4.0.4" + object.assign "^4.1.0" object.values "^1.0.4" - prop-types "^15.5.10" - react-addons-shallow-compare "^15.5.2" + prop-types "^15.6.0" + react-addons-shallow-compare "^15.6.2" react-moment-proptypes "^1.5.0" - react-portal "^4.1.0" - react-with-styles "^2.2.0" - react-with-styles-interface-css "^3.0.0" + react-portal "^4.1.2" + react-with-styles "^3.1.0" + react-with-styles-interface-css "^4.0.1" react-dev-utils@^5.0.0: version "5.0.1" @@ -6858,6 +6884,14 @@ react-error-overlay@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-4.0.0.tgz#d198408a85b4070937a98667f500c832f86bd5d4" +react-final-form-arrays@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/react-final-form-arrays/-/react-final-form-arrays-1.0.4.tgz#888b9b81a806844cf66d73f4e8b60e5f18fa2a11" + +react-final-form@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/react-final-form/-/react-final-form-3.1.5.tgz#6fa0e4c61e49b691b679ef4c8a5ad3fe92df0956" + react-google-maps@^9.4.5: version "9.4.5" resolved "https://registry.yarnpkg.com/react-google-maps/-/react-google-maps-9.4.5.tgz#920c199bdc925e0ce93880edffb09428d263aafa" @@ -6902,9 +6936,9 @@ react-moment-proptypes@^1.5.0: dependencies: moment ">=1.6.0" -react-portal@^4.1.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/react-portal/-/react-portal-4.1.2.tgz#7f28f3c8c2ed5c541907c0ed0f24e8996acf627f" +react-portal@^4.1.2: + version "4.1.4" + resolved "https://registry.yarnpkg.com/react-portal/-/react-portal-4.1.4.tgz#3fc3f3f3a0e81362ab1dc9afa3c4bb5a84ec76a3" dependencies: prop-types "^15.5.8" @@ -6988,20 +7022,19 @@ react-with-direction@^1.1.0: object.values "^1.0.4" prop-types "^15.6.0" -react-with-styles-interface-css@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/react-with-styles-interface-css/-/react-with-styles-interface-css-3.0.0.tgz#ebb000c23f75567f25af6792ab7a29089d798fda" +react-with-styles-interface-css@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/react-with-styles-interface-css/-/react-with-styles-interface-css-4.0.1.tgz#79d0a40bae388e11f15362d35aa52e8917982db0" dependencies: aphrodite "^1.2.5" - array-flatten "^2.1.1" + array.prototype.flatten "^1.2.1" global-cache "^1.2.1" -react-with-styles@^2.2.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/react-with-styles/-/react-with-styles-2.3.1.tgz#5cd54718cd21b188c6b5c1334e2d445251164e67" +react-with-styles@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/react-with-styles/-/react-with-styles-3.1.1.tgz#a2a86ed04b73fcadcd20cd30bf6a5111b6d852dc" dependencies: deepmerge "^1.5.2" - global-cache "^1.2.1" hoist-non-react-statics "^2.3.1" prop-types "^15.6.0" react-with-direction "^1.1.0"