@panneau/form-auth 1.0.0-alpha.246 → 1.0.0-alpha.247
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.
- package/es/index.js +17 -2
- package/lib/index.js +17 -2
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -266,7 +266,7 @@ var defaultProps$5 = {
|
|
|
266
266
|
}]
|
|
267
267
|
}),
|
|
268
268
|
withLoginLink: true,
|
|
269
|
-
loginLink: '/
|
|
269
|
+
loginLink: '/login',
|
|
270
270
|
loginLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
271
271
|
id: "wa783M",
|
|
272
272
|
defaultMessage: [{
|
|
@@ -324,11 +324,12 @@ var Register = function Register(_ref) {
|
|
|
324
324
|
Register.propTypes = propTypes$5;
|
|
325
325
|
Register.defaultProps = defaultProps$5;
|
|
326
326
|
|
|
327
|
-
var _excluded$4 = ["action", "fields", "size", "passwordLabel", "passwordConfirmationLabel", "submitButtonLabel"];
|
|
327
|
+
var _excluded$4 = ["action", "fields", "size", "emailLabel", "passwordLabel", "passwordConfirmationLabel", "submitButtonLabel"];
|
|
328
328
|
var propTypes$4 = {
|
|
329
329
|
action: PropTypes.string,
|
|
330
330
|
fields: PropTypes$1.fields,
|
|
331
331
|
size: PropTypes.string,
|
|
332
|
+
emailLabel: PropTypes$1.label,
|
|
332
333
|
passwordLabel: PropTypes$1.label,
|
|
333
334
|
passwordConfirmationLabel: PropTypes$1.label,
|
|
334
335
|
submitButtonLabel: PropTypes$1.label
|
|
@@ -337,6 +338,13 @@ var defaultProps$4 = {
|
|
|
337
338
|
action: '/reset-password',
|
|
338
339
|
fields: null,
|
|
339
340
|
size: 'lg',
|
|
341
|
+
emailLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
342
|
+
id: "LI0Gz4",
|
|
343
|
+
defaultMessage: [{
|
|
344
|
+
"type": 0,
|
|
345
|
+
"value": "Email"
|
|
346
|
+
}]
|
|
347
|
+
}),
|
|
340
348
|
passwordLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
341
349
|
id: "4yfet+",
|
|
342
350
|
defaultMessage: [{
|
|
@@ -364,6 +372,7 @@ var ResetPassword = function ResetPassword(_ref) {
|
|
|
364
372
|
var action = _ref.action,
|
|
365
373
|
fields = _ref.fields,
|
|
366
374
|
size = _ref.size,
|
|
375
|
+
emailLabel = _ref.emailLabel,
|
|
367
376
|
passwordLabel = _ref.passwordLabel,
|
|
368
377
|
passwordConfirmationLabel = _ref.passwordConfirmationLabel,
|
|
369
378
|
submitButtonLabel = _ref.submitButtonLabel,
|
|
@@ -372,6 +381,12 @@ var ResetPassword = function ResetPassword(_ref) {
|
|
|
372
381
|
return /*#__PURE__*/React.createElement(Form, Object.assign({
|
|
373
382
|
action: action,
|
|
374
383
|
fields: fields || [{
|
|
384
|
+
name: 'email',
|
|
385
|
+
type: 'email',
|
|
386
|
+
size: size,
|
|
387
|
+
label: emailLabel,
|
|
388
|
+
readOnly: true
|
|
389
|
+
}, {
|
|
375
390
|
name: 'password',
|
|
376
391
|
type: 'password',
|
|
377
392
|
size: size,
|
package/lib/index.js
CHANGED
|
@@ -277,7 +277,7 @@ var defaultProps$5 = {
|
|
|
277
277
|
}]
|
|
278
278
|
}),
|
|
279
279
|
withLoginLink: true,
|
|
280
|
-
loginLink: '/
|
|
280
|
+
loginLink: '/login',
|
|
281
281
|
loginLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
|
|
282
282
|
id: "wa783M",
|
|
283
283
|
defaultMessage: [{
|
|
@@ -335,11 +335,12 @@ var Register = function Register(_ref) {
|
|
|
335
335
|
Register.propTypes = propTypes$5;
|
|
336
336
|
Register.defaultProps = defaultProps$5;
|
|
337
337
|
|
|
338
|
-
var _excluded$4 = ["action", "fields", "size", "passwordLabel", "passwordConfirmationLabel", "submitButtonLabel"];
|
|
338
|
+
var _excluded$4 = ["action", "fields", "size", "emailLabel", "passwordLabel", "passwordConfirmationLabel", "submitButtonLabel"];
|
|
339
339
|
var propTypes$4 = {
|
|
340
340
|
action: PropTypes__default["default"].string,
|
|
341
341
|
fields: core.PropTypes.fields,
|
|
342
342
|
size: PropTypes__default["default"].string,
|
|
343
|
+
emailLabel: core.PropTypes.label,
|
|
343
344
|
passwordLabel: core.PropTypes.label,
|
|
344
345
|
passwordConfirmationLabel: core.PropTypes.label,
|
|
345
346
|
submitButtonLabel: core.PropTypes.label
|
|
@@ -348,6 +349,13 @@ var defaultProps$4 = {
|
|
|
348
349
|
action: '/reset-password',
|
|
349
350
|
fields: null,
|
|
350
351
|
size: 'lg',
|
|
352
|
+
emailLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
|
|
353
|
+
id: "LI0Gz4",
|
|
354
|
+
defaultMessage: [{
|
|
355
|
+
"type": 0,
|
|
356
|
+
"value": "Email"
|
|
357
|
+
}]
|
|
358
|
+
}),
|
|
351
359
|
passwordLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
|
|
352
360
|
id: "4yfet+",
|
|
353
361
|
defaultMessage: [{
|
|
@@ -375,6 +383,7 @@ var ResetPassword = function ResetPassword(_ref) {
|
|
|
375
383
|
var action = _ref.action,
|
|
376
384
|
fields = _ref.fields,
|
|
377
385
|
size = _ref.size,
|
|
386
|
+
emailLabel = _ref.emailLabel,
|
|
378
387
|
passwordLabel = _ref.passwordLabel,
|
|
379
388
|
passwordConfirmationLabel = _ref.passwordConfirmationLabel,
|
|
380
389
|
submitButtonLabel = _ref.submitButtonLabel,
|
|
@@ -383,6 +392,12 @@ var ResetPassword = function ResetPassword(_ref) {
|
|
|
383
392
|
return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
|
|
384
393
|
action: action,
|
|
385
394
|
fields: fields || [{
|
|
395
|
+
name: 'email',
|
|
396
|
+
type: 'email',
|
|
397
|
+
size: size,
|
|
398
|
+
label: emailLabel,
|
|
399
|
+
readOnly: true
|
|
400
|
+
}, {
|
|
386
401
|
name: 'password',
|
|
387
402
|
type: 'password',
|
|
388
403
|
size: size,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/form-auth",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.247",
|
|
4
4
|
"description": "Basic forgot password form",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "cd40162975fef5731ec4879cddd205d02a0ec9ef"
|
|
62
62
|
}
|