@panneau/form-auth 1.0.3-alpha.1 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/es/index.js +68 -95
  2. package/lib/index.js +68 -95
  3. package/package.json +4 -4
package/es/index.js CHANGED
@@ -50,17 +50,15 @@ var defaultProps$8 = {
50
50
  }]
51
51
  })
52
52
  };
53
-
54
53
  var ChangePassword = function ChangePassword(_ref) {
55
54
  var action = _ref.action,
56
- fields = _ref.fields,
57
- size = _ref.size,
58
- currentPasswordLabel = _ref.currentPasswordLabel,
59
- passwordLabel = _ref.passwordLabel,
60
- passwordConfirmationLabel = _ref.passwordConfirmationLabel,
61
- submitButtonLabel = _ref.submitButtonLabel,
62
- props = _objectWithoutProperties(_ref, _excluded$8);
63
-
55
+ fields = _ref.fields,
56
+ size = _ref.size,
57
+ currentPasswordLabel = _ref.currentPasswordLabel,
58
+ passwordLabel = _ref.passwordLabel,
59
+ passwordConfirmationLabel = _ref.passwordConfirmationLabel,
60
+ submitButtonLabel = _ref.submitButtonLabel,
61
+ props = _objectWithoutProperties(_ref, _excluded$8);
64
62
  return /*#__PURE__*/React.createElement(Form, Object.assign({
65
63
  action: action,
66
64
  method: "PUT",
@@ -83,7 +81,6 @@ var ChangePassword = function ChangePassword(_ref) {
83
81
  submitButtonLabel: submitButtonLabel
84
82
  }, props));
85
83
  };
86
-
87
84
  ChangePassword.propTypes = propTypes$8;
88
85
  ChangePassword.defaultProps = defaultProps$8;
89
86
 
@@ -114,15 +111,13 @@ var defaultProps$7 = {
114
111
  }]
115
112
  })
116
113
  };
117
-
118
114
  var ConfirmPassword = function ConfirmPassword(_ref) {
119
115
  var action = _ref.action,
120
- fields = _ref.fields,
121
- size = _ref.size,
122
- passwordLabel = _ref.passwordLabel,
123
- submitButtonLabel = _ref.submitButtonLabel,
124
- props = _objectWithoutProperties(_ref, _excluded$7);
125
-
116
+ fields = _ref.fields,
117
+ size = _ref.size,
118
+ passwordLabel = _ref.passwordLabel,
119
+ submitButtonLabel = _ref.submitButtonLabel,
120
+ props = _objectWithoutProperties(_ref, _excluded$7);
126
121
  return /*#__PURE__*/React.createElement(Form, Object.assign({
127
122
  action: action,
128
123
  fields: fields || [{
@@ -134,7 +129,6 @@ var ConfirmPassword = function ConfirmPassword(_ref) {
134
129
  submitButtonLabel: submitButtonLabel
135
130
  }, props));
136
131
  };
137
-
138
132
  ConfirmPassword.propTypes = propTypes$7;
139
133
  ConfirmPassword.defaultProps = defaultProps$7;
140
134
 
@@ -177,18 +171,16 @@ var defaultProps$6 = {
177
171
  }]
178
172
  })
179
173
  };
180
-
181
174
  var ForgotPassword = function ForgotPassword(_ref) {
182
175
  var action = _ref.action,
183
- fields = _ref.fields,
184
- emailLabel = _ref.emailLabel,
185
- submitButtonLabel = _ref.submitButtonLabel,
186
- size = _ref.size,
187
- withLoginLink = _ref.withLoginLink,
188
- loginLink = _ref.loginLink,
189
- loginLabel = _ref.loginLabel,
190
- props = _objectWithoutProperties(_ref, _excluded$6);
191
-
176
+ fields = _ref.fields,
177
+ emailLabel = _ref.emailLabel,
178
+ submitButtonLabel = _ref.submitButtonLabel,
179
+ size = _ref.size,
180
+ withLoginLink = _ref.withLoginLink,
181
+ loginLink = _ref.loginLink,
182
+ loginLabel = _ref.loginLabel,
183
+ props = _objectWithoutProperties(_ref, _excluded$6);
192
184
  return /*#__PURE__*/React.createElement(Form, Object.assign({
193
185
  action: action,
194
186
  fields: fields || [{
@@ -204,7 +196,6 @@ var ForgotPassword = function ForgotPassword(_ref) {
204
196
  }, loginLabel) : null
205
197
  }, props));
206
198
  };
207
-
208
199
  ForgotPassword.propTypes = propTypes$6;
209
200
  ForgotPassword.defaultProps = defaultProps$6;
210
201
 
@@ -255,19 +246,17 @@ var defaultProps$5 = {
255
246
  }]
256
247
  })
257
248
  };
258
-
259
249
  var Login = function Login(_ref) {
260
250
  var action = _ref.action,
261
- fields = _ref.fields,
262
- size = _ref.size,
263
- emailLabel = _ref.emailLabel,
264
- passwordLabel = _ref.passwordLabel,
265
- submitButtonLabel = _ref.submitButtonLabel,
266
- withForgotPassword = _ref.withForgotPassword,
267
- forgotPasswordLink = _ref.forgotPasswordLink,
268
- forgotPasswordLabel = _ref.forgotPasswordLabel,
269
- props = _objectWithoutProperties(_ref, _excluded$5);
270
-
251
+ fields = _ref.fields,
252
+ size = _ref.size,
253
+ emailLabel = _ref.emailLabel,
254
+ passwordLabel = _ref.passwordLabel,
255
+ submitButtonLabel = _ref.submitButtonLabel,
256
+ withForgotPassword = _ref.withForgotPassword,
257
+ forgotPasswordLink = _ref.forgotPasswordLink,
258
+ forgotPasswordLabel = _ref.forgotPasswordLabel,
259
+ props = _objectWithoutProperties(_ref, _excluded$5);
271
260
  return /*#__PURE__*/React.createElement(Form, Object.assign({
272
261
  action: action,
273
262
  fields: fields || [{
@@ -288,7 +277,6 @@ var Login = function Login(_ref) {
288
277
  }, forgotPasswordLabel) : null
289
278
  }, props));
290
279
  };
291
-
292
280
  Login.propTypes = propTypes$5;
293
281
  Login.defaultProps = defaultProps$5;
294
282
 
@@ -355,21 +343,19 @@ var defaultProps$4 = {
355
343
  }]
356
344
  })
357
345
  };
358
-
359
346
  var Register = function Register(_ref) {
360
347
  var action = _ref.action,
361
- fields = _ref.fields,
362
- size = _ref.size,
363
- nameLabel = _ref.nameLabel,
364
- emailLabel = _ref.emailLabel,
365
- passwordLabel = _ref.passwordLabel,
366
- passwordConfirmationLabel = _ref.passwordConfirmationLabel,
367
- submitButtonLabel = _ref.submitButtonLabel,
368
- withLoginLink = _ref.withLoginLink,
369
- loginLink = _ref.loginLink,
370
- loginLabel = _ref.loginLabel,
371
- props = _objectWithoutProperties(_ref, _excluded$4);
372
-
348
+ fields = _ref.fields,
349
+ size = _ref.size,
350
+ nameLabel = _ref.nameLabel,
351
+ emailLabel = _ref.emailLabel,
352
+ passwordLabel = _ref.passwordLabel,
353
+ passwordConfirmationLabel = _ref.passwordConfirmationLabel,
354
+ submitButtonLabel = _ref.submitButtonLabel,
355
+ withLoginLink = _ref.withLoginLink,
356
+ loginLink = _ref.loginLink,
357
+ loginLabel = _ref.loginLabel,
358
+ props = _objectWithoutProperties(_ref, _excluded$4);
373
359
  return /*#__PURE__*/React.createElement(Form, Object.assign({
374
360
  action: action,
375
361
  fields: fields || [{
@@ -400,7 +386,6 @@ var Register = function Register(_ref) {
400
386
  }, loginLabel) : null
401
387
  }, props));
402
388
  };
403
-
404
389
  Register.propTypes = propTypes$4;
405
390
  Register.defaultProps = defaultProps$4;
406
391
 
@@ -447,17 +432,15 @@ var defaultProps$3 = {
447
432
  }]
448
433
  })
449
434
  };
450
-
451
435
  var ResetPassword = function ResetPassword(_ref) {
452
436
  var action = _ref.action,
453
- fields = _ref.fields,
454
- size = _ref.size,
455
- emailLabel = _ref.emailLabel,
456
- passwordLabel = _ref.passwordLabel,
457
- passwordConfirmationLabel = _ref.passwordConfirmationLabel,
458
- submitButtonLabel = _ref.submitButtonLabel,
459
- props = _objectWithoutProperties(_ref, _excluded$3);
460
-
437
+ fields = _ref.fields,
438
+ size = _ref.size,
439
+ emailLabel = _ref.emailLabel,
440
+ passwordLabel = _ref.passwordLabel,
441
+ passwordConfirmationLabel = _ref.passwordConfirmationLabel,
442
+ submitButtonLabel = _ref.submitButtonLabel,
443
+ props = _objectWithoutProperties(_ref, _excluded$3);
461
444
  return /*#__PURE__*/React.createElement(Form, Object.assign({
462
445
  action: action,
463
446
  fields: fields || [{
@@ -480,7 +463,6 @@ var ResetPassword = function ResetPassword(_ref) {
480
463
  submitButtonLabel: submitButtonLabel
481
464
  }, props));
482
465
  };
483
-
484
466
  ResetPassword.propTypes = propTypes$3;
485
467
  ResetPassword.defaultProps = defaultProps$3;
486
468
 
@@ -511,15 +493,13 @@ var defaultProps$2 = {
511
493
  }]
512
494
  })
513
495
  };
514
-
515
496
  var TwoFactorChallenge = function TwoFactorChallenge(_ref) {
516
497
  var action = _ref.action,
517
- fields = _ref.fields,
518
- size = _ref.size,
519
- codeLabel = _ref.codeLabel,
520
- submitButtonLabel = _ref.submitButtonLabel,
521
- props = _objectWithoutProperties(_ref, _excluded$2);
522
-
498
+ fields = _ref.fields,
499
+ size = _ref.size,
500
+ codeLabel = _ref.codeLabel,
501
+ submitButtonLabel = _ref.submitButtonLabel,
502
+ props = _objectWithoutProperties(_ref, _excluded$2);
523
503
  return /*#__PURE__*/React.createElement(Form, Object.assign({
524
504
  action: action,
525
505
  fields: fields || [{
@@ -531,7 +511,6 @@ var TwoFactorChallenge = function TwoFactorChallenge(_ref) {
531
511
  submitButtonLabel: submitButtonLabel
532
512
  }, props));
533
513
  };
534
-
535
514
  TwoFactorChallenge.propTypes = propTypes$2;
536
515
  TwoFactorChallenge.defaultProps = defaultProps$2;
537
516
 
@@ -574,18 +553,16 @@ var defaultProps$1 = {
574
553
  }]
575
554
  })
576
555
  };
577
-
578
556
  var TwoFactorDisable = function TwoFactorDisable(_ref) {
579
557
  var action = _ref.action;
580
- _ref.fields;
581
- var explainationLabel = _ref.explainationLabel,
582
- submitButtonLabel = _ref.submitButtonLabel;
583
- _ref.size;
584
- var withCancelLink = _ref.withCancelLink,
585
- cancelLink = _ref.cancelLink,
586
- cancelLabel = _ref.cancelLabel,
587
- props = _objectWithoutProperties(_ref, _excluded$1);
588
-
558
+ _ref.fields;
559
+ var explainationLabel = _ref.explainationLabel,
560
+ submitButtonLabel = _ref.submitButtonLabel;
561
+ _ref.size;
562
+ var withCancelLink = _ref.withCancelLink,
563
+ cancelLink = _ref.cancelLink,
564
+ cancelLabel = _ref.cancelLabel,
565
+ props = _objectWithoutProperties(_ref, _excluded$1);
589
566
  var defaultPostForm = useCallback(function (act, data) {
590
567
  return postJSON(act, data, {
591
568
  credentials: 'include',
@@ -603,7 +580,6 @@ var TwoFactorDisable = function TwoFactorDisable(_ref) {
603
580
  postForm: defaultPostForm
604
581
  }, props), /*#__PURE__*/React.createElement("p", null, explainationLabel));
605
582
  };
606
-
607
583
  TwoFactorDisable.propTypes = propTypes$1;
608
584
  TwoFactorDisable.defaultProps = defaultProps$1;
609
585
 
@@ -646,18 +622,16 @@ var defaultProps = {
646
622
  }]
647
623
  })
648
624
  };
649
-
650
625
  var TwoFactorEnable = function TwoFactorEnable(_ref) {
651
626
  var action = _ref.action;
652
- _ref.fields;
653
- var explainationLabel = _ref.explainationLabel,
654
- submitButtonLabel = _ref.submitButtonLabel;
655
- _ref.size;
656
- var withSkipLink = _ref.withSkipLink,
657
- skipLink = _ref.skipLink,
658
- skipLabel = _ref.skipLabel,
659
- props = _objectWithoutProperties(_ref, _excluded);
660
-
627
+ _ref.fields;
628
+ var explainationLabel = _ref.explainationLabel,
629
+ submitButtonLabel = _ref.submitButtonLabel;
630
+ _ref.size;
631
+ var withSkipLink = _ref.withSkipLink,
632
+ skipLink = _ref.skipLink,
633
+ skipLabel = _ref.skipLabel,
634
+ props = _objectWithoutProperties(_ref, _excluded);
661
635
  return /*#__PURE__*/React.createElement(Form, Object.assign({
662
636
  action: action,
663
637
  submitButtonLabel: submitButtonLabel,
@@ -667,7 +641,6 @@ var TwoFactorEnable = function TwoFactorEnable(_ref) {
667
641
  }, skipLabel) : null
668
642
  }, props), /*#__PURE__*/React.createElement("p", null, explainationLabel));
669
643
  };
670
-
671
644
  TwoFactorEnable.propTypes = propTypes;
672
645
  TwoFactorEnable.defaultProps = defaultProps;
673
646
 
package/lib/index.js CHANGED
@@ -61,17 +61,15 @@ var defaultProps$8 = {
61
61
  }]
62
62
  })
63
63
  };
64
-
65
64
  var ChangePassword = function ChangePassword(_ref) {
66
65
  var action = _ref.action,
67
- fields = _ref.fields,
68
- size = _ref.size,
69
- currentPasswordLabel = _ref.currentPasswordLabel,
70
- passwordLabel = _ref.passwordLabel,
71
- passwordConfirmationLabel = _ref.passwordConfirmationLabel,
72
- submitButtonLabel = _ref.submitButtonLabel,
73
- props = _objectWithoutProperties__default["default"](_ref, _excluded$8);
74
-
66
+ fields = _ref.fields,
67
+ size = _ref.size,
68
+ currentPasswordLabel = _ref.currentPasswordLabel,
69
+ passwordLabel = _ref.passwordLabel,
70
+ passwordConfirmationLabel = _ref.passwordConfirmationLabel,
71
+ submitButtonLabel = _ref.submitButtonLabel,
72
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$8);
75
73
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
76
74
  action: action,
77
75
  method: "PUT",
@@ -94,7 +92,6 @@ var ChangePassword = function ChangePassword(_ref) {
94
92
  submitButtonLabel: submitButtonLabel
95
93
  }, props));
96
94
  };
97
-
98
95
  ChangePassword.propTypes = propTypes$8;
99
96
  ChangePassword.defaultProps = defaultProps$8;
100
97
 
@@ -125,15 +122,13 @@ var defaultProps$7 = {
125
122
  }]
126
123
  })
127
124
  };
128
-
129
125
  var ConfirmPassword = function ConfirmPassword(_ref) {
130
126
  var action = _ref.action,
131
- fields = _ref.fields,
132
- size = _ref.size,
133
- passwordLabel = _ref.passwordLabel,
134
- submitButtonLabel = _ref.submitButtonLabel,
135
- props = _objectWithoutProperties__default["default"](_ref, _excluded$7);
136
-
127
+ fields = _ref.fields,
128
+ size = _ref.size,
129
+ passwordLabel = _ref.passwordLabel,
130
+ submitButtonLabel = _ref.submitButtonLabel,
131
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$7);
137
132
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
138
133
  action: action,
139
134
  fields: fields || [{
@@ -145,7 +140,6 @@ var ConfirmPassword = function ConfirmPassword(_ref) {
145
140
  submitButtonLabel: submitButtonLabel
146
141
  }, props));
147
142
  };
148
-
149
143
  ConfirmPassword.propTypes = propTypes$7;
150
144
  ConfirmPassword.defaultProps = defaultProps$7;
151
145
 
@@ -188,18 +182,16 @@ var defaultProps$6 = {
188
182
  }]
189
183
  })
190
184
  };
191
-
192
185
  var ForgotPassword = function ForgotPassword(_ref) {
193
186
  var action = _ref.action,
194
- fields = _ref.fields,
195
- emailLabel = _ref.emailLabel,
196
- submitButtonLabel = _ref.submitButtonLabel,
197
- size = _ref.size,
198
- withLoginLink = _ref.withLoginLink,
199
- loginLink = _ref.loginLink,
200
- loginLabel = _ref.loginLabel,
201
- props = _objectWithoutProperties__default["default"](_ref, _excluded$6);
202
-
187
+ fields = _ref.fields,
188
+ emailLabel = _ref.emailLabel,
189
+ submitButtonLabel = _ref.submitButtonLabel,
190
+ size = _ref.size,
191
+ withLoginLink = _ref.withLoginLink,
192
+ loginLink = _ref.loginLink,
193
+ loginLabel = _ref.loginLabel,
194
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$6);
203
195
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
204
196
  action: action,
205
197
  fields: fields || [{
@@ -215,7 +207,6 @@ var ForgotPassword = function ForgotPassword(_ref) {
215
207
  }, loginLabel) : null
216
208
  }, props));
217
209
  };
218
-
219
210
  ForgotPassword.propTypes = propTypes$6;
220
211
  ForgotPassword.defaultProps = defaultProps$6;
221
212
 
@@ -266,19 +257,17 @@ var defaultProps$5 = {
266
257
  }]
267
258
  })
268
259
  };
269
-
270
260
  var Login = function Login(_ref) {
271
261
  var action = _ref.action,
272
- fields = _ref.fields,
273
- size = _ref.size,
274
- emailLabel = _ref.emailLabel,
275
- passwordLabel = _ref.passwordLabel,
276
- submitButtonLabel = _ref.submitButtonLabel,
277
- withForgotPassword = _ref.withForgotPassword,
278
- forgotPasswordLink = _ref.forgotPasswordLink,
279
- forgotPasswordLabel = _ref.forgotPasswordLabel,
280
- props = _objectWithoutProperties__default["default"](_ref, _excluded$5);
281
-
262
+ fields = _ref.fields,
263
+ size = _ref.size,
264
+ emailLabel = _ref.emailLabel,
265
+ passwordLabel = _ref.passwordLabel,
266
+ submitButtonLabel = _ref.submitButtonLabel,
267
+ withForgotPassword = _ref.withForgotPassword,
268
+ forgotPasswordLink = _ref.forgotPasswordLink,
269
+ forgotPasswordLabel = _ref.forgotPasswordLabel,
270
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$5);
282
271
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
283
272
  action: action,
284
273
  fields: fields || [{
@@ -299,7 +288,6 @@ var Login = function Login(_ref) {
299
288
  }, forgotPasswordLabel) : null
300
289
  }, props));
301
290
  };
302
-
303
291
  Login.propTypes = propTypes$5;
304
292
  Login.defaultProps = defaultProps$5;
305
293
 
@@ -366,21 +354,19 @@ var defaultProps$4 = {
366
354
  }]
367
355
  })
368
356
  };
369
-
370
357
  var Register = function Register(_ref) {
371
358
  var action = _ref.action,
372
- fields = _ref.fields,
373
- size = _ref.size,
374
- nameLabel = _ref.nameLabel,
375
- emailLabel = _ref.emailLabel,
376
- passwordLabel = _ref.passwordLabel,
377
- passwordConfirmationLabel = _ref.passwordConfirmationLabel,
378
- submitButtonLabel = _ref.submitButtonLabel,
379
- withLoginLink = _ref.withLoginLink,
380
- loginLink = _ref.loginLink,
381
- loginLabel = _ref.loginLabel,
382
- props = _objectWithoutProperties__default["default"](_ref, _excluded$4);
383
-
359
+ fields = _ref.fields,
360
+ size = _ref.size,
361
+ nameLabel = _ref.nameLabel,
362
+ emailLabel = _ref.emailLabel,
363
+ passwordLabel = _ref.passwordLabel,
364
+ passwordConfirmationLabel = _ref.passwordConfirmationLabel,
365
+ submitButtonLabel = _ref.submitButtonLabel,
366
+ withLoginLink = _ref.withLoginLink,
367
+ loginLink = _ref.loginLink,
368
+ loginLabel = _ref.loginLabel,
369
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$4);
384
370
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
385
371
  action: action,
386
372
  fields: fields || [{
@@ -411,7 +397,6 @@ var Register = function Register(_ref) {
411
397
  }, loginLabel) : null
412
398
  }, props));
413
399
  };
414
-
415
400
  Register.propTypes = propTypes$4;
416
401
  Register.defaultProps = defaultProps$4;
417
402
 
@@ -458,17 +443,15 @@ var defaultProps$3 = {
458
443
  }]
459
444
  })
460
445
  };
461
-
462
446
  var ResetPassword = function ResetPassword(_ref) {
463
447
  var action = _ref.action,
464
- fields = _ref.fields,
465
- size = _ref.size,
466
- emailLabel = _ref.emailLabel,
467
- passwordLabel = _ref.passwordLabel,
468
- passwordConfirmationLabel = _ref.passwordConfirmationLabel,
469
- submitButtonLabel = _ref.submitButtonLabel,
470
- props = _objectWithoutProperties__default["default"](_ref, _excluded$3);
471
-
448
+ fields = _ref.fields,
449
+ size = _ref.size,
450
+ emailLabel = _ref.emailLabel,
451
+ passwordLabel = _ref.passwordLabel,
452
+ passwordConfirmationLabel = _ref.passwordConfirmationLabel,
453
+ submitButtonLabel = _ref.submitButtonLabel,
454
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$3);
472
455
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
473
456
  action: action,
474
457
  fields: fields || [{
@@ -491,7 +474,6 @@ var ResetPassword = function ResetPassword(_ref) {
491
474
  submitButtonLabel: submitButtonLabel
492
475
  }, props));
493
476
  };
494
-
495
477
  ResetPassword.propTypes = propTypes$3;
496
478
  ResetPassword.defaultProps = defaultProps$3;
497
479
 
@@ -522,15 +504,13 @@ var defaultProps$2 = {
522
504
  }]
523
505
  })
524
506
  };
525
-
526
507
  var TwoFactorChallenge = function TwoFactorChallenge(_ref) {
527
508
  var action = _ref.action,
528
- fields = _ref.fields,
529
- size = _ref.size,
530
- codeLabel = _ref.codeLabel,
531
- submitButtonLabel = _ref.submitButtonLabel,
532
- props = _objectWithoutProperties__default["default"](_ref, _excluded$2);
533
-
509
+ fields = _ref.fields,
510
+ size = _ref.size,
511
+ codeLabel = _ref.codeLabel,
512
+ submitButtonLabel = _ref.submitButtonLabel,
513
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$2);
534
514
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
535
515
  action: action,
536
516
  fields: fields || [{
@@ -542,7 +522,6 @@ var TwoFactorChallenge = function TwoFactorChallenge(_ref) {
542
522
  submitButtonLabel: submitButtonLabel
543
523
  }, props));
544
524
  };
545
-
546
525
  TwoFactorChallenge.propTypes = propTypes$2;
547
526
  TwoFactorChallenge.defaultProps = defaultProps$2;
548
527
 
@@ -585,18 +564,16 @@ var defaultProps$1 = {
585
564
  }]
586
565
  })
587
566
  };
588
-
589
567
  var TwoFactorDisable = function TwoFactorDisable(_ref) {
590
568
  var action = _ref.action;
591
- _ref.fields;
592
- var explainationLabel = _ref.explainationLabel,
593
- submitButtonLabel = _ref.submitButtonLabel;
594
- _ref.size;
595
- var withCancelLink = _ref.withCancelLink,
596
- cancelLink = _ref.cancelLink,
597
- cancelLabel = _ref.cancelLabel,
598
- props = _objectWithoutProperties__default["default"](_ref, _excluded$1);
599
-
569
+ _ref.fields;
570
+ var explainationLabel = _ref.explainationLabel,
571
+ submitButtonLabel = _ref.submitButtonLabel;
572
+ _ref.size;
573
+ var withCancelLink = _ref.withCancelLink,
574
+ cancelLink = _ref.cancelLink,
575
+ cancelLabel = _ref.cancelLabel,
576
+ props = _objectWithoutProperties__default["default"](_ref, _excluded$1);
600
577
  var defaultPostForm = React.useCallback(function (act, data) {
601
578
  return fetch.postJSON(act, data, {
602
579
  credentials: 'include',
@@ -614,7 +591,6 @@ var TwoFactorDisable = function TwoFactorDisable(_ref) {
614
591
  postForm: defaultPostForm
615
592
  }, props), /*#__PURE__*/React__default["default"].createElement("p", null, explainationLabel));
616
593
  };
617
-
618
594
  TwoFactorDisable.propTypes = propTypes$1;
619
595
  TwoFactorDisable.defaultProps = defaultProps$1;
620
596
 
@@ -657,18 +633,16 @@ var defaultProps = {
657
633
  }]
658
634
  })
659
635
  };
660
-
661
636
  var TwoFactorEnable = function TwoFactorEnable(_ref) {
662
637
  var action = _ref.action;
663
- _ref.fields;
664
- var explainationLabel = _ref.explainationLabel,
665
- submitButtonLabel = _ref.submitButtonLabel;
666
- _ref.size;
667
- var withSkipLink = _ref.withSkipLink,
668
- skipLink = _ref.skipLink,
669
- skipLabel = _ref.skipLabel,
670
- props = _objectWithoutProperties__default["default"](_ref, _excluded);
671
-
638
+ _ref.fields;
639
+ var explainationLabel = _ref.explainationLabel,
640
+ submitButtonLabel = _ref.submitButtonLabel;
641
+ _ref.size;
642
+ var withSkipLink = _ref.withSkipLink,
643
+ skipLink = _ref.skipLink,
644
+ skipLabel = _ref.skipLabel,
645
+ props = _objectWithoutProperties__default["default"](_ref, _excluded);
672
646
  return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
673
647
  action: action,
674
648
  submitButtonLabel: submitButtonLabel,
@@ -678,7 +652,6 @@ var TwoFactorEnable = function TwoFactorEnable(_ref) {
678
652
  }, skipLabel) : null
679
653
  }, props), /*#__PURE__*/React__default["default"].createElement("p", null, explainationLabel));
680
654
  };
681
-
682
655
  TwoFactorEnable.propTypes = propTypes;
683
656
  TwoFactorEnable.defaultProps = defaultProps;
684
657
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/form-auth",
3
- "version": "1.0.3-alpha.1",
3
+ "version": "1.0.3",
4
4
  "description": "Basic forgot password form",
5
5
  "keywords": [
6
6
  "javascript"
@@ -47,8 +47,8 @@
47
47
  "dependencies": {
48
48
  "@babel/runtime": "^7.12.5",
49
49
  "@folklore/fetch": "^0.1.15",
50
- "@panneau/core": "^1.0.3-alpha.1",
51
- "@panneau/form": "^1.0.3-alpha.1",
50
+ "@panneau/core": "^1.0.3",
51
+ "@panneau/form": "^1.0.3",
52
52
  "classnames": "^2.2.6",
53
53
  "lodash": "^4.17.21",
54
54
  "prop-types": "^15.7.2",
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "e04e663c7f1eb692f89a0136f2e8f45024fbe355"
61
+ "gitHead": "59e6842b1a768acb6fa826e6a6396d09e239c955"
62
62
  }