Commit 41be764
Custom form fields (#760)
* feat: add input component as types, simplify event handlers - emailpassword recipe (#752)
* Add inputComponent to exposed types
* Add inputComponent to normalised fields
* For testing only - use custom type definition for inputComponent
* Input component already present in FormFieldThemeProps
* Testing if git package is getting installed correctly
* Run build for previous commits
* Remove inputComp from NormalizedFormField
* Add tests for custom fields
* Remove testing ele
* Move the custom fields tests into existing describe
* Update dropdown values to avoid confusion
* Add helper func to set dropdown, better test title, use existing describe hooks
* Use strict equal
* Update request
* A seperate func to fetch custom comp not required
* Move inputComponent to signup types
* Cleanup unwanted imports
* Move inputComponent to signup types
* Clean types
* Update build files
* Use explicit values in validate func
* Minor cleanup of types
* Better type names
* Props suggestions working for inputComponent
* Enforce strict string check on form values, now onChange function for fields only needs value, no need to supply name or id
* Update based on the new onChange func
* Ability to add default value with getDefaultValue prop
* Handle if getDefaultValue is not a function
* instead of form submit apply type test within onChange function itself
* Add tests for default value
* Remove unwanted abort
* Testing email-verification workflow
* Reverting onChange changes
* onChange function to accept only values
* Initialize fieldstates at the start
* Remove useEffect
* Fix race conditions when setting default value
* Add custom default fields to typescript example, plus add tests to show custom error message
* Add tests for incorrect default props in formFields
* Add tests for incorrect usage of onChange prop
* Add change log
* Wrap ternary opeators into seperate func for better readibility
* Wrap inputComponent in a serperate component to avoid unecessary rerenders
* Add change log feedbacks
* Better variable names, include formfields directly in typescript example
* Add more tests for default & onChange func, updated typescript file to show the latest changes
* Add more test, which intercepts request payload
* Cleanup comments
* Minor formatting
* Minor fix
* Clean up helper
* Update change log & versions
* feat: add getDefaultValue to signin & signup form fields (#756)
* Add getDefaultValue to signin, hence shuffle the existing types
* Add tests for default signin feature
* Add default feature to typescript
* Fix failed test
* Reset password now supports getDefaultValue
* Add tests for resetPassword email field
* Revert "Add tests for resetPassword email field"
This reverts commit 363b575.
* Revert "Reset password now supports getDefaultValue"
This reverts commit be4c00a.
* feat: add nonOptionalErrorMsg props (#757)
* Add nonOptionalErr types
* Now supports nonOptionalErrorMsg attribute
* Add tests and fix signin types to include nonOptionalMsg
* Enforce no api request are made on blank forms
* Clean up signup
* Throw error if invalid nonOptionalErrorMsg, add tests for the same
* Better error message
* Handle incorrect optional flag
* fixes redundant normalisation
---------
Co-authored-by: rishabhpoddar <[email protected]>
* Add test for thirdparty signup - new features
* Add tests for thirdparty signin - new features
* Run build-pretty
* Set correct flag
* fix: display required indicator only for non-empty labels and Improve test structure (#762)
* Show required sign only if label is valid
* Better func names & consistent return type
* Use assert instead of throw error
* Consistent tests description
* Remove unecessary code
* Add correct version number
* Update changelog, add thirdparty example
* Minor fox
* Read from testContext
* Refactor tests to ensure its easy to maintain different configurations
* Update third party tests
* Clean up
* Minor copy update
* Trim the label text
* Add build
* Handle if label is not supplied
* Highlight var in changelog, minor update
* Update custom payload to test for trimmed-version label
* Use page.select for changing dropdown values
* Handle react 16 tests for new features (#764)
---------
Co-authored-by: Amit Badala <[email protected]>1 parent 78dc12e commit 41be764
File tree
31 files changed
+1927
-687
lines changed- examples/for-tests/src
- lib
- build
- recipe/emailpassword
- components
- library
- themes
- resetPasswordUsingToken
- signInAndUp
- ts
- recipe
- emailpassword
- components/library
- passwordless/components/themes/signInUp
- test
- end-to-end
- with-typescript/src
31 files changed
+1927
-687
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
8 | 83 | | |
9 | 84 | | |
10 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
171 | 332 | | |
172 | 333 | | |
173 | 334 | | |
| |||
552 | 713 | | |
553 | 714 | | |
554 | 715 | | |
555 | | - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
556 | 761 | | |
557 | 762 | | |
558 | 763 | | |
| |||
632 | 837 | | |
633 | 838 | | |
634 | 839 | | |
| 840 | + | |
635 | 841 | | |
636 | 842 | | |
637 | 843 | | |
638 | 844 | | |
639 | 845 | | |
640 | | - | |
| 846 | + | |
641 | 847 | | |
642 | 848 | | |
643 | 849 | | |
| |||
981 | 1187 | | |
982 | 1188 | | |
983 | 1189 | | |
984 | | - | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
985 | 1196 | | |
986 | 1197 | | |
987 | 1198 | | |
| |||
1160 | 1371 | | |
1161 | 1372 | | |
1162 | 1373 | | |
1163 | | - | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
1164 | 1377 | | |
1165 | | - | |
| 1378 | + | |
1166 | 1379 | | |
1167 | 1380 | | |
1168 | 1381 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments