@panneau/form-auth 2.0.11 → 2.0.14
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 +6 -2
- package/lib/index.js +6 -2
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -199,9 +199,10 @@ var ForgotPassword = function ForgotPassword(_ref) {
|
|
|
199
199
|
ForgotPassword.propTypes = propTypes$6;
|
|
200
200
|
ForgotPassword.defaultProps = defaultProps$6;
|
|
201
201
|
|
|
202
|
-
var _excluded$5 = ["action", "fields", "size", "emailLabel", "passwordLabel", "submitButtonLabel", "withForgotPassword", "forgotPasswordLink", "forgotPasswordLabel"];
|
|
202
|
+
var _excluded$5 = ["action", "postForm", "fields", "size", "emailLabel", "passwordLabel", "submitButtonLabel", "withForgotPassword", "forgotPasswordLink", "forgotPasswordLabel"];
|
|
203
203
|
var propTypes$5 = {
|
|
204
204
|
action: PropTypes.string,
|
|
205
|
+
postForm: PropTypes.func,
|
|
205
206
|
fields: PropTypes$1.fields,
|
|
206
207
|
size: PropTypes.string,
|
|
207
208
|
emailLabel: PropTypes$1.label,
|
|
@@ -213,6 +214,7 @@ var propTypes$5 = {
|
|
|
213
214
|
};
|
|
214
215
|
var defaultProps$5 = {
|
|
215
216
|
action: '/login',
|
|
217
|
+
postForm: null,
|
|
216
218
|
fields: null,
|
|
217
219
|
size: 'lg',
|
|
218
220
|
emailLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
@@ -236,7 +238,7 @@ var defaultProps$5 = {
|
|
|
236
238
|
"value": "Log in"
|
|
237
239
|
}]
|
|
238
240
|
}),
|
|
239
|
-
withForgotPassword:
|
|
241
|
+
withForgotPassword: false,
|
|
240
242
|
forgotPasswordLink: '/forgot-password',
|
|
241
243
|
forgotPasswordLabel: /*#__PURE__*/React.createElement(FormattedMessage, {
|
|
242
244
|
id: "ZBNqY2",
|
|
@@ -248,6 +250,7 @@ var defaultProps$5 = {
|
|
|
248
250
|
};
|
|
249
251
|
var Login = function Login(_ref) {
|
|
250
252
|
var action = _ref.action,
|
|
253
|
+
postForm = _ref.postForm,
|
|
251
254
|
fields = _ref.fields,
|
|
252
255
|
size = _ref.size,
|
|
253
256
|
emailLabel = _ref.emailLabel,
|
|
@@ -259,6 +262,7 @@ var Login = function Login(_ref) {
|
|
|
259
262
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
260
263
|
return /*#__PURE__*/React.createElement(Form, Object.assign({
|
|
261
264
|
action: action,
|
|
265
|
+
postForm: postForm,
|
|
262
266
|
fields: fields || [{
|
|
263
267
|
name: 'email',
|
|
264
268
|
type: 'email',
|
package/lib/index.js
CHANGED
|
@@ -210,9 +210,10 @@ var ForgotPassword = function ForgotPassword(_ref) {
|
|
|
210
210
|
ForgotPassword.propTypes = propTypes$6;
|
|
211
211
|
ForgotPassword.defaultProps = defaultProps$6;
|
|
212
212
|
|
|
213
|
-
var _excluded$5 = ["action", "fields", "size", "emailLabel", "passwordLabel", "submitButtonLabel", "withForgotPassword", "forgotPasswordLink", "forgotPasswordLabel"];
|
|
213
|
+
var _excluded$5 = ["action", "postForm", "fields", "size", "emailLabel", "passwordLabel", "submitButtonLabel", "withForgotPassword", "forgotPasswordLink", "forgotPasswordLabel"];
|
|
214
214
|
var propTypes$5 = {
|
|
215
215
|
action: PropTypes__default["default"].string,
|
|
216
|
+
postForm: PropTypes__default["default"].func,
|
|
216
217
|
fields: core.PropTypes.fields,
|
|
217
218
|
size: PropTypes__default["default"].string,
|
|
218
219
|
emailLabel: core.PropTypes.label,
|
|
@@ -224,6 +225,7 @@ var propTypes$5 = {
|
|
|
224
225
|
};
|
|
225
226
|
var defaultProps$5 = {
|
|
226
227
|
action: '/login',
|
|
228
|
+
postForm: null,
|
|
227
229
|
fields: null,
|
|
228
230
|
size: 'lg',
|
|
229
231
|
emailLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
|
|
@@ -247,7 +249,7 @@ var defaultProps$5 = {
|
|
|
247
249
|
"value": "Log in"
|
|
248
250
|
}]
|
|
249
251
|
}),
|
|
250
|
-
withForgotPassword:
|
|
252
|
+
withForgotPassword: false,
|
|
251
253
|
forgotPasswordLink: '/forgot-password',
|
|
252
254
|
forgotPasswordLabel: /*#__PURE__*/React__default["default"].createElement(reactIntl.FormattedMessage, {
|
|
253
255
|
id: "ZBNqY2",
|
|
@@ -259,6 +261,7 @@ var defaultProps$5 = {
|
|
|
259
261
|
};
|
|
260
262
|
var Login = function Login(_ref) {
|
|
261
263
|
var action = _ref.action,
|
|
264
|
+
postForm = _ref.postForm,
|
|
262
265
|
fields = _ref.fields,
|
|
263
266
|
size = _ref.size,
|
|
264
267
|
emailLabel = _ref.emailLabel,
|
|
@@ -270,6 +273,7 @@ var Login = function Login(_ref) {
|
|
|
270
273
|
props = _objectWithoutProperties__default["default"](_ref, _excluded$5);
|
|
271
274
|
return /*#__PURE__*/React__default["default"].createElement(Form__default["default"], Object.assign({
|
|
272
275
|
action: action,
|
|
276
|
+
postForm: postForm,
|
|
273
277
|
fields: fields || [{
|
|
274
278
|
name: 'email',
|
|
275
279
|
type: 'email',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/form-auth",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.14",
|
|
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": "^2.0.
|
|
51
|
-
"@panneau/form": "^2.0.
|
|
50
|
+
"@panneau/core": "^2.0.14",
|
|
51
|
+
"@panneau/form": "^2.0.14",
|
|
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": "
|
|
61
|
+
"gitHead": "79bf4785d664187a578822e02dd66c12d6e4d243"
|
|
62
62
|
}
|