@panneau/form-auth 3.0.300 → 3.0.307

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 (2) hide show
  1. package/es/index.js +71 -71
  2. package/package.json +5 -5
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
2
- import { PropTypes as PropTypes$1 } from '@panneau/core';
2
+ import { PropTypes } from '@panneau/core';
3
3
  import Form from '@panneau/form';
4
- import PropTypes from 'prop-types';
4
+ import PropTypes$1 from 'prop-types';
5
5
  import React, { useCallback } from 'react';
6
6
  import { FormattedMessage } from 'react-intl';
7
7
  import Link from '@panneau/element-link';
@@ -9,13 +9,13 @@ import { postJSON, getCSRFHeaders } from '@folklore/fetch';
9
9
 
10
10
  var _excluded$8 = ["action", "fields", "size", "currentPasswordLabel", "passwordLabel", "passwordConfirmationLabel", "submitButtonLabel"];
11
11
  var propTypes$8 = {
12
- action: PropTypes.string,
13
- fields: PropTypes$1.fields,
14
- size: PropTypes.string,
15
- currentPasswordLabel: PropTypes$1.label,
16
- passwordLabel: PropTypes$1.label,
17
- passwordConfirmationLabel: PropTypes$1.label,
18
- submitButtonLabel: PropTypes$1.label
12
+ action: PropTypes$1.string,
13
+ fields: PropTypes.fields,
14
+ size: PropTypes$1.string,
15
+ currentPasswordLabel: PropTypes.label,
16
+ passwordLabel: PropTypes.label,
17
+ passwordConfirmationLabel: PropTypes.label,
18
+ submitButtonLabel: PropTypes.label
19
19
  };
20
20
  var defaultProps$8 = {
21
21
  action: '/user/password',
@@ -86,11 +86,11 @@ ChangePassword.defaultProps = defaultProps$8;
86
86
 
87
87
  var _excluded$7 = ["action", "fields", "size", "passwordLabel", "submitButtonLabel"];
88
88
  var propTypes$7 = {
89
- action: PropTypes.string,
90
- fields: PropTypes$1.fields,
91
- size: PropTypes.string,
92
- passwordLabel: PropTypes$1.label,
93
- submitButtonLabel: PropTypes$1.label
89
+ action: PropTypes$1.string,
90
+ fields: PropTypes.fields,
91
+ size: PropTypes$1.string,
92
+ passwordLabel: PropTypes.label,
93
+ submitButtonLabel: PropTypes.label
94
94
  };
95
95
  var defaultProps$7 = {
96
96
  action: '/user/confirm-password',
@@ -134,14 +134,14 @@ ConfirmPassword.defaultProps = defaultProps$7;
134
134
 
135
135
  var _excluded$6 = ["action", "fields", "emailLabel", "submitButtonLabel", "size", "withLoginLink", "loginLink", "loginLabel"];
136
136
  var propTypes$6 = {
137
- action: PropTypes.string,
138
- fields: PropTypes$1.fields,
139
- size: PropTypes.string,
140
- emailLabel: PropTypes$1.label,
141
- submitButtonLabel: PropTypes$1.label,
142
- withLoginLink: PropTypes.bool,
143
- loginLink: PropTypes.string,
144
- loginLabel: PropTypes$1.label
137
+ action: PropTypes$1.string,
138
+ fields: PropTypes.fields,
139
+ size: PropTypes$1.string,
140
+ emailLabel: PropTypes.label,
141
+ submitButtonLabel: PropTypes.label,
142
+ withLoginLink: PropTypes$1.bool,
143
+ loginLink: PropTypes$1.string,
144
+ loginLabel: PropTypes.label
145
145
  };
146
146
  var defaultProps$6 = {
147
147
  action: '/forgot-password',
@@ -201,16 +201,16 @@ ForgotPassword.defaultProps = defaultProps$6;
201
201
 
202
202
  var _excluded$5 = ["action", "postForm", "fields", "size", "emailLabel", "passwordLabel", "submitButtonLabel", "withForgotPassword", "forgotPasswordLink", "forgotPasswordLabel"];
203
203
  var propTypes$5 = {
204
- action: PropTypes.string,
205
- postForm: PropTypes.func,
206
- fields: PropTypes$1.fields,
207
- size: PropTypes.string,
208
- emailLabel: PropTypes$1.label,
209
- passwordLabel: PropTypes$1.label,
210
- submitButtonLabel: PropTypes$1.label,
211
- withForgotPassword: PropTypes.bool,
212
- forgotPasswordLink: PropTypes.string,
213
- forgotPasswordLabel: PropTypes$1.label
204
+ action: PropTypes$1.string,
205
+ postForm: PropTypes$1.func,
206
+ fields: PropTypes.fields,
207
+ size: PropTypes$1.string,
208
+ emailLabel: PropTypes.label,
209
+ passwordLabel: PropTypes.label,
210
+ submitButtonLabel: PropTypes.label,
211
+ withForgotPassword: PropTypes$1.bool,
212
+ forgotPasswordLink: PropTypes$1.string,
213
+ forgotPasswordLabel: PropTypes.label
214
214
  };
215
215
  var defaultProps$5 = {
216
216
  action: '/login',
@@ -286,17 +286,17 @@ Login.defaultProps = defaultProps$5;
286
286
 
287
287
  var _excluded$4 = ["action", "fields", "size", "nameLabel", "emailLabel", "passwordLabel", "passwordConfirmationLabel", "submitButtonLabel", "withLoginLink", "loginLink", "loginLabel"];
288
288
  var propTypes$4 = {
289
- action: PropTypes.string,
290
- fields: PropTypes$1.fields,
291
- size: PropTypes.string,
292
- nameLabel: PropTypes$1.label,
293
- emailLabel: PropTypes$1.label,
294
- passwordLabel: PropTypes$1.label,
295
- passwordConfirmationLabel: PropTypes$1.label,
296
- submitButtonLabel: PropTypes$1.label,
297
- withLoginLink: PropTypes.bool,
298
- loginLink: PropTypes.string,
299
- loginLabel: PropTypes$1.label
289
+ action: PropTypes$1.string,
290
+ fields: PropTypes.fields,
291
+ size: PropTypes$1.string,
292
+ nameLabel: PropTypes.label,
293
+ emailLabel: PropTypes.label,
294
+ passwordLabel: PropTypes.label,
295
+ passwordConfirmationLabel: PropTypes.label,
296
+ submitButtonLabel: PropTypes.label,
297
+ withLoginLink: PropTypes$1.bool,
298
+ loginLink: PropTypes$1.string,
299
+ loginLabel: PropTypes.label
300
300
  };
301
301
  var defaultProps$4 = {
302
302
  action: '/register',
@@ -395,13 +395,13 @@ Register.defaultProps = defaultProps$4;
395
395
 
396
396
  var _excluded$3 = ["action", "fields", "size", "emailLabel", "passwordLabel", "passwordConfirmationLabel", "submitButtonLabel"];
397
397
  var propTypes$3 = {
398
- action: PropTypes.string,
399
- fields: PropTypes$1.fields,
400
- size: PropTypes.string,
401
- emailLabel: PropTypes$1.label,
402
- passwordLabel: PropTypes$1.label,
403
- passwordConfirmationLabel: PropTypes$1.label,
404
- submitButtonLabel: PropTypes$1.label
398
+ action: PropTypes$1.string,
399
+ fields: PropTypes.fields,
400
+ size: PropTypes$1.string,
401
+ emailLabel: PropTypes.label,
402
+ passwordLabel: PropTypes.label,
403
+ passwordConfirmationLabel: PropTypes.label,
404
+ submitButtonLabel: PropTypes.label
405
405
  };
406
406
  var defaultProps$3 = {
407
407
  action: '/reset-password',
@@ -472,11 +472,11 @@ ResetPassword.defaultProps = defaultProps$3;
472
472
 
473
473
  var _excluded$2 = ["action", "fields", "size", "codeLabel", "submitButtonLabel"];
474
474
  var propTypes$2 = {
475
- action: PropTypes.string,
476
- fields: PropTypes$1.fields,
477
- size: PropTypes.string,
478
- codeLabel: PropTypes$1.label,
479
- submitButtonLabel: PropTypes$1.label
475
+ action: PropTypes$1.string,
476
+ fields: PropTypes.fields,
477
+ size: PropTypes$1.string,
478
+ codeLabel: PropTypes.label,
479
+ submitButtonLabel: PropTypes.label
480
480
  };
481
481
  var defaultProps$2 = {
482
482
  action: '/two-factor-challenge',
@@ -520,14 +520,14 @@ TwoFactorChallenge.defaultProps = defaultProps$2;
520
520
 
521
521
  var _excluded$1 = ["action", "fields", "explainationLabel", "submitButtonLabel", "size", "withCancelLink", "cancelLink", "cancelLabel"];
522
522
  var propTypes$1 = {
523
- action: PropTypes.string,
524
- fields: PropTypes$1.fields,
525
- size: PropTypes.string,
526
- explainationLabel: PropTypes$1.label,
527
- submitButtonLabel: PropTypes$1.label,
528
- withCancelLink: PropTypes.bool,
529
- cancelLink: PropTypes.string,
530
- cancelLabel: PropTypes$1.label
523
+ action: PropTypes$1.string,
524
+ fields: PropTypes.fields,
525
+ size: PropTypes$1.string,
526
+ explainationLabel: PropTypes.label,
527
+ submitButtonLabel: PropTypes.label,
528
+ withCancelLink: PropTypes$1.bool,
529
+ cancelLink: PropTypes$1.string,
530
+ cancelLabel: PropTypes.label
531
531
  };
532
532
  var defaultProps$1 = {
533
533
  action: '/user/two-factor-authentication',
@@ -589,14 +589,14 @@ TwoFactorDisable.defaultProps = defaultProps$1;
589
589
 
590
590
  var _excluded = ["action", "fields", "explainationLabel", "submitButtonLabel", "size", "withSkipLink", "skipLink", "skipLabel"];
591
591
  var propTypes = {
592
- action: PropTypes.string,
593
- fields: PropTypes$1.fields,
594
- size: PropTypes.string,
595
- explainationLabel: PropTypes$1.label,
596
- submitButtonLabel: PropTypes$1.label,
597
- withSkipLink: PropTypes.bool,
598
- skipLink: PropTypes.string,
599
- skipLabel: PropTypes$1.label
592
+ action: PropTypes$1.string,
593
+ fields: PropTypes.fields,
594
+ size: PropTypes$1.string,
595
+ explainationLabel: PropTypes.label,
596
+ submitButtonLabel: PropTypes.label,
597
+ withSkipLink: PropTypes$1.bool,
598
+ skipLink: PropTypes$1.string,
599
+ skipLabel: PropTypes.label
600
600
  };
601
601
  var defaultProps = {
602
602
  action: '/user/two-factor-authentication',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/form-auth",
3
- "version": "3.0.300",
3
+ "version": "3.0.307",
4
4
  "description": "Basic forgot password form",
5
5
  "keywords": [
6
6
  "javascript"
@@ -50,9 +50,9 @@
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.12.5",
52
52
  "@folklore/fetch": "^0.1.17",
53
- "@panneau/core": "^3.0.300",
54
- "@panneau/element-link": "^3.0.300",
55
- "@panneau/form": "^3.0.300",
53
+ "@panneau/core": "^3.0.307",
54
+ "@panneau/element-link": "^3.0.307",
55
+ "@panneau/form": "^3.0.307",
56
56
  "classnames": "^2.5.1",
57
57
  "lodash-es": "^4.17.21",
58
58
  "prop-types": "^15.7.2",
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "129cddc67f11d3d51bc309af4c161ed027ad425f"
64
+ "gitHead": "cbe5e8b1705d01c5653a4df617a06243344310d3"
65
65
  }