@panneau/app 2.0.14 → 2.0.16
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/assets/css/styles.css +3 -3
- package/es/index.js +4 -3
- package/lib/index.js +4 -3
- package/package.json +26 -26
package/es/index.js
CHANGED
@@ -37,7 +37,6 @@ import _toPropertyKey from '@babel/runtime/helpers/toPropertyKey';
|
|
37
37
|
import { faUndo } from '@fortawesome/free-solid-svg-icons';
|
38
38
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
39
39
|
import FormGroup from '@panneau/element-form-group';
|
40
|
-
import { Login } from '@panneau/form-auth';
|
41
40
|
|
42
41
|
var _excluded$6 = ["resource", "action", "previous", "status", "value", "onSubmit", "errors", "generalError", "className"];
|
43
42
|
var propTypes$m = {
|
@@ -1219,7 +1218,9 @@ var LoginForm = function LoginForm(_ref) {
|
|
1219
1218
|
password = _ref2.password;
|
1220
1219
|
return login(email, password);
|
1221
1220
|
}, [login]);
|
1222
|
-
|
1221
|
+
var FormComponents = useFormsComponents();
|
1222
|
+
var FormComponent = getComponentFromName('login', FormComponents);
|
1223
|
+
return FormComponent !== null ? /*#__PURE__*/React.createElement(FormComponent, {
|
1223
1224
|
action: url('auth.login'),
|
1224
1225
|
postForm: postForm,
|
1225
1226
|
onComplete: onSuccess,
|
@@ -1231,7 +1232,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
1231
1232
|
"value": "Log in"
|
1232
1233
|
}]
|
1233
1234
|
})
|
1234
|
-
});
|
1235
|
+
}) : null;
|
1235
1236
|
};
|
1236
1237
|
LoginForm.propTypes = propTypes$5;
|
1237
1238
|
LoginForm.defaultProps = defaultProps$5;
|
package/lib/index.js
CHANGED
@@ -41,7 +41,6 @@ var _toPropertyKey = require('@babel/runtime/helpers/toPropertyKey');
|
|
41
41
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
42
42
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
43
43
|
var FormGroup = require('@panneau/element-form-group');
|
44
|
-
var formAuth = require('@panneau/form-auth');
|
45
44
|
|
46
45
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
47
46
|
|
@@ -1253,7 +1252,9 @@ var LoginForm = function LoginForm(_ref) {
|
|
1253
1252
|
password = _ref2.password;
|
1254
1253
|
return login(email, password);
|
1255
1254
|
}, [login]);
|
1256
|
-
|
1255
|
+
var FormComponents = contexts.useFormsComponents();
|
1256
|
+
var FormComponent = utils.getComponentFromName('login', FormComponents);
|
1257
|
+
return FormComponent !== null ? /*#__PURE__*/React__default["default"].createElement(FormComponent, {
|
1257
1258
|
action: url('auth.login'),
|
1258
1259
|
postForm: postForm,
|
1259
1260
|
onComplete: onSuccess,
|
@@ -1265,7 +1266,7 @@ var LoginForm = function LoginForm(_ref) {
|
|
1265
1266
|
"value": "Log in"
|
1266
1267
|
}]
|
1267
1268
|
})
|
1268
|
-
});
|
1269
|
+
}) : null;
|
1269
1270
|
};
|
1270
1271
|
LoginForm.propTypes = propTypes$5;
|
1271
1272
|
LoginForm.defaultProps = defaultProps$5;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@panneau/app",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.16",
|
4
4
|
"description": "",
|
5
5
|
"keywords": [
|
6
6
|
"javascript"
|
@@ -63,30 +63,30 @@
|
|
63
63
|
"@fortawesome/fontawesome-svg-core": "^1.2.35",
|
64
64
|
"@fortawesome/free-solid-svg-icons": "^5.15.3",
|
65
65
|
"@fortawesome/react-fontawesome": "^0.1.14",
|
66
|
-
"@panneau/auth": "^2.0.
|
67
|
-
"@panneau/core": "^2.0.
|
68
|
-
"@panneau/data": "^2.0.
|
69
|
-
"@panneau/displays": "^2.0.
|
70
|
-
"@panneau/element-alert": "^2.0.
|
71
|
-
"@panneau/element-button": "^2.0.
|
72
|
-
"@panneau/element-buttons": "^2.0.
|
73
|
-
"@panneau/element-dropdown": "^2.0.
|
74
|
-
"@panneau/element-form": "^2.0.
|
75
|
-
"@panneau/element-form-group": "^2.0.
|
76
|
-
"@panneau/element-label": "^2.0.
|
77
|
-
"@panneau/element-link": "^2.0.
|
78
|
-
"@panneau/element-loading": "^2.0.
|
79
|
-
"@panneau/element-menu": "^2.0.
|
80
|
-
"@panneau/element-navbar": "^2.0.
|
81
|
-
"@panneau/element-pagination": "^2.0.
|
82
|
-
"@panneau/element-radios": "^2.0.
|
83
|
-
"@panneau/fields": "^2.0.
|
84
|
-
"@panneau/filters": "^2.0.
|
85
|
-
"@panneau/forms": "^2.0.
|
86
|
-
"@panneau/intl": "^2.0.
|
87
|
-
"@panneau/lists": "^2.0.
|
88
|
-
"@panneau/modals": "^2.0.
|
89
|
-
"@panneau/themes": "^2.0.
|
66
|
+
"@panneau/auth": "^2.0.15",
|
67
|
+
"@panneau/core": "^2.0.15",
|
68
|
+
"@panneau/data": "^2.0.15",
|
69
|
+
"@panneau/displays": "^2.0.16",
|
70
|
+
"@panneau/element-alert": "^2.0.16",
|
71
|
+
"@panneau/element-button": "^2.0.16",
|
72
|
+
"@panneau/element-buttons": "^2.0.16",
|
73
|
+
"@panneau/element-dropdown": "^2.0.16",
|
74
|
+
"@panneau/element-form": "^2.0.16",
|
75
|
+
"@panneau/element-form-group": "^2.0.16",
|
76
|
+
"@panneau/element-label": "^2.0.15",
|
77
|
+
"@panneau/element-link": "^2.0.15",
|
78
|
+
"@panneau/element-loading": "^2.0.15",
|
79
|
+
"@panneau/element-menu": "^2.0.16",
|
80
|
+
"@panneau/element-navbar": "^2.0.16",
|
81
|
+
"@panneau/element-pagination": "^2.0.15",
|
82
|
+
"@panneau/element-radios": "^2.0.15",
|
83
|
+
"@panneau/fields": "^2.0.16",
|
84
|
+
"@panneau/filters": "^2.0.16",
|
85
|
+
"@panneau/forms": "^2.0.16",
|
86
|
+
"@panneau/intl": "^2.0.15",
|
87
|
+
"@panneau/lists": "^2.0.16",
|
88
|
+
"@panneau/modals": "^2.0.16",
|
89
|
+
"@panneau/themes": "^2.0.15",
|
90
90
|
"classnames": "^2.2.6",
|
91
91
|
"lodash": "^4.17.21",
|
92
92
|
"prop-types": "^15.7.2",
|
@@ -98,5 +98,5 @@
|
|
98
98
|
"publishConfig": {
|
99
99
|
"access": "public"
|
100
100
|
},
|
101
|
-
"gitHead": "
|
101
|
+
"gitHead": "47cc2d1083c3c387e615426f0de392c70d1817d6"
|
102
102
|
}
|