@popmenu/common-ui 0.100.0 → 0.102.0
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/build/index.js
CHANGED
|
@@ -1282,7 +1282,7 @@ var useStyles$1 = core.makeStyles(function () { return ({
|
|
|
1282
1282
|
},
|
|
1283
1283
|
}); });
|
|
1284
1284
|
var FollowerAuthenticationAltActions = function () {
|
|
1285
|
-
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, dispatch = _a.dispatch, messages = _a.messages, logos = _a.logos;
|
|
1285
|
+
var _a = useFollowerAuthenticationDialogContext(), state = _a.state, dispatch = _a.dispatch, messages = _a.messages, logos = _a.logos, loading = _a.loading;
|
|
1286
1286
|
var classes = useStyles$1();
|
|
1287
1287
|
switch (state.value) {
|
|
1288
1288
|
case 'initial':
|
|
@@ -1303,7 +1303,13 @@ var FollowerAuthenticationAltActions = function () {
|
|
|
1303
1303
|
dispatch({ type: 'click-password-continue' });
|
|
1304
1304
|
} }, messages.signInWithPassword)));
|
|
1305
1305
|
case 'emailAuthCode':
|
|
1306
|
-
return
|
|
1306
|
+
return (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1307
|
+
React__default['default'].createElement(core.Button, { disabled: loading, variant: "outlined", onClick: function () {
|
|
1308
|
+
var form = document.querySelector('#follower-authentication-form');
|
|
1309
|
+
var formData = new FormData(form);
|
|
1310
|
+
var values = Object.fromEntries(formData.entries());
|
|
1311
|
+
dispatch({ type: 'click-get-code', context: { values: values } });
|
|
1312
|
+
} }, messages.resendAuthCode)));
|
|
1307
1313
|
case 'indirectUserFound':
|
|
1308
1314
|
return (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1309
1315
|
React__default['default'].createElement(core.Divider, null),
|
|
@@ -1322,7 +1328,13 @@ var FollowerAuthenticationAltActions = function () {
|
|
|
1322
1328
|
case 'phoneFound':
|
|
1323
1329
|
return null;
|
|
1324
1330
|
case 'phoneAuthCode':
|
|
1325
|
-
return
|
|
1331
|
+
return (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1332
|
+
React__default['default'].createElement(core.Button, { disabled: loading, variant: "outlined", onClick: function () {
|
|
1333
|
+
var form = document.querySelector('#follower-authentication-form');
|
|
1334
|
+
var formData = new FormData(form);
|
|
1335
|
+
var values = Object.fromEntries(formData.entries());
|
|
1336
|
+
dispatch({ type: 'click-get-code', context: { values: values } });
|
|
1337
|
+
} }, messages.resendAuthCode)));
|
|
1326
1338
|
case 'phonePasswordSignIn':
|
|
1327
1339
|
return (React__default['default'].createElement(core.Box, { className: classes.main },
|
|
1328
1340
|
React__default['default'].createElement(core.Divider, null),
|