Commit Graph

45 Commits

Author SHA1 Message Date
Vsevolod Ivanov db6e68ad4c fix resetmodel binding 2017-10-21 21:44:01 -07:00
Aesop Wolf 42e39cbc8f Chore/tweaks for v1 (#473)
* Rename HOC/Wrapper export to `withFormsy`

This is more in alignment with community practices.

* Migrate from npm to yarn

* Update package.json

Use order listed on https://yarnpkg.com/en/docs/package-json

* Update README.md

New examples, and small copy/whitespace changes

* Remove CHANGES.md

We will use github release from now on

* Fix test suite

Replace all references to  with

* Add ESLint

* Update dependencies

* Upgrade babel dependencies

* Upgrade jsdom

* Upgrade nodeunit and sinon

* Upgrade webpack and webpack-dev-server

* Fix examples

* Convert to ES6 classes

* Fix ESLint errors and warnings (WIP)

* Fix more ESLint errors and warnings (WIP)

* Move runRules to utils.js

* Fix more ESLint errors and warnings (WIP)

* Fix more ESLint errors and warnings (WIP)

* Fix more ESLint errors and warnings (WIP)

* Use less complex regex's for url and email

* Change grammar in README

* Change export pattern

* Use ES6 export for utils and validationRules

* Fix login example

* Reorder methods alphabetically and remove "magical" `validate` feature

* Remove `validate` from API docs (and general cleanup of file)

* Update examples (removes `validate` feature)

* Rename webpack file and remove json loader

* Fix code samples in README

* Update reset-values example (WIP)

* Cleanup reset-values example

* Fix prop type for Wrapper value

* Handle onReset event

* Update reset-value example to support `<button type="reset">`

* Update dynamic form fields example
2017-08-29 16:35:17 -07:00
Tom B b413f9db77 A few changes to API for better Wrapped component support (#472)
* Add propTypes to API docs; move innerRef doc to match location in table of contents

* Change HOC to Wrapper (be consistent everywhere)

* Inject defaultProps.value from wrapped component into Formsy.Wrapper

This way users can provide a default value for their form field.
Previously, this was possible because mixins were on the same level as the actual component.

* Add optional parameter to setState to disable validation

* Update prepublish script to clean `lib`; rebuild release folder
2017-08-11 11:53:00 -07:00
Tom B 98525a4b64 Major update/cleanup to Formsy API; React v15+; No more mixins (#470)
* Up node to 8.2.1; only allow React v15+

* Update HOC to ES6 component; kill Mixin and decorator

* Update all tests; ES6ify everything!

* Update examples to ES6 classes

* Update API docs

* Fix broken/commented test case

* Move peer dep to regular dep since peer is deprecated
2017-08-08 22:09:11 -07:00
Aesop Wolf ebd84bb026 Fix warning about isMounted being deprecated 2017-06-17 19:30:05 -07:00
Aesop Wolf 7dc68fc633 Migrate from React.createClass to create-react-class 2017-06-16 14:28:30 -07:00
Aesop Wolf a20da5b7cd Migrate from React.PropTypes to prop-types 2017-06-15 20:10:13 -07:00
Aesop Wolf c5dfa4b31a v0.19.2 2017-01-23 19:18:56 -08:00
Aesop Wolf 57f97cb045 v0.19.1 2017-01-18 13:32:55 -08:00
David Blurton 73dd46b5e3 Fix crash when comparing array with null (#404) 2016-12-10 09:20:21 -08:00
Aesop Wolf c56e8c3328 0.19.0 2016-12-08 22:34:08 -08:00
Semigradsky 6b167cbfe1 0.18.1 2016-07-05 11:52:41 +03:00
Semigradsky 112819f699 Update dependencies. Some minor changes. 2016-04-19 11:12:14 +03:00
Semigradsky d5268a4eef Added mapping to `getModel()` 2015-12-08 13:10:48 +03:00
Semigradsky dcac495d79 Renamed `this.updateModel` to `this.getModel` 2015-12-07 13:56:47 +03:00
Semigradsky c4fa202ebf Fix `component[Will|Did]Update` behavior. Build release. 2015-12-02 16:50:06 +03:00
Christian Alfoni 2be44f1b32 React 0.14 support 2015-10-08 09:31:59 +02:00
Christian Alfoni 2846f0fadd Refactored tests and made React 0.14 friendly 2015-10-04 17:40:58 +02:00
Ryan Blakeley 7f6ab4f52c add built files, fix #196 2015-09-04 10:48:06 -06:00
Bret Little b1275d813e Add built files 2015-09-03 18:16:16 -06:00
David Blurton 2a1be46ffe Add release files 2015-08-31 13:49:21 +00:00
Garbin Huang 958bd98223 * Fixed mapModel issue when input name is nested 2015-07-01 12:36:45 +08:00
christianalfoni d7e7dfc55e Reverted passing of all props, only added autoComplete 2015-05-22 16:20:34 +02:00
christianalfoni 4fcb74f8d8 Bumped version and created release 2015-05-22 14:47:32 +02:00
christianalfoni 37018b10fa Merged pull, fixed equality bug and added tests 2015-04-29 14:57:51 +02:00
Semigradsky 9a7bff0e03 Removed 'required' check from validations 2015-04-27 12:29:23 +03:00
christianalfoni a7ac20ba41 Bumped new version and added release 2015-04-25 12:21:41 +02:00
christianalfoni 8acaeadaee Fixed value bug and configured deploy new version script 2015-04-25 12:14:15 +02:00
Semigradsky b18b4e8c79 Clean up 2015-04-22 19:06:53 +03:00
christianalfoni f64d2443b9 releasing 0.12.6 2015-04-22 16:54:46 +02:00
christianalfoni 4267c40f3b Fixed validation errors using callback 2015-04-17 19:36:28 +02:00
christianalfoni aaac6d0618 Fixed bug with comparing validations. Removed dynamic validations 2015-04-16 17:19:01 +02:00
christianalfoni 1475dbb88b Fixed required bug 2015-04-15 20:12:40 +02:00
christianalfoni d0af1375a2 Fixed callbacks for onInvalidSubmit and onValidSubmit 2015-04-15 07:28:39 +02:00
christianalfoni 1fb4461121 Removed noValidate and added formNoValidate to readme 2015-04-14 21:31:41 +02:00
christianalfoni 54a857638a Release 0.12.0 2015-04-14 19:01:59 +02:00
christianalfoni 785ac0ca54 Fixed equalsField rule 2015-04-14 08:10:48 +02:00
christianalfoni 8b42fd254a Added string returns error for rules 2015-04-13 19:15:10 +02:00
christianalfoni b0738a5032 Added validation objects and required validation 2015-04-13 18:29:23 +02:00
christianalfoni ad83a10894 Fixed bugs with isValidValue and isValidForm 2015-04-07 07:24:19 +02:00
christianalfoni 47dd80b67f Bumped to release 0.9.0 2015-03-29 13:39:52 +02:00
christianalfoni 86aec656df Fixed dynamic validations, disable form, dynamic value update etc. 2015-03-07 12:51:15 +01:00
christianalfoni 385263c383 Merged two pull requests 2015-02-23 08:55:36 +01:00
Christian Alfoni 86ba085cc4 onChange, dynamic form elements and bug fix 2015-02-03 15:03:55 +01:00
Christian Alfoni 15b6df9526 Pristine, mapping and tests 2015-01-21 15:16:27 +01:00