@stokr/components-library 2.0.0-beta.33 → 2.0.0-beta.35
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/dist/components/2FA/main-flow.js +3 -2
- package/dist/components/InfoIcon/InfoIcon.js +5 -1
- package/dist/components/Input/OtpInput.js +3 -2
- package/dist/components/Modal/Modal.styles.js +1 -1
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +1 -1
- package/dist/context/AuthContext.js +4 -1
- package/package.json +1 -1
|
@@ -80,13 +80,14 @@ var Main2FAFlow = function Main2FAFlow(_ref) {
|
|
|
80
80
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
81
81
|
alignVertically: true,
|
|
82
82
|
noPaddingHorizontal: true
|
|
83
|
-
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h5", null, "SET UP YOUR LOG IN TWO FACTOR AUTHENTICATION"))), /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("p", null, "Protect your account with an additional layer of security to log in
|
|
83
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("h5", null, "SET UP YOUR LOG IN TWO FACTOR AUTHENTICATION"))), /*#__PURE__*/_react.default.createElement(_Text.default, null, /*#__PURE__*/_react.default.createElement("p", null, "Protect your account with an additional layer of security to log in")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
84
84
|
noPaddingHorizontal: true
|
|
85
85
|
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.default, {
|
|
86
86
|
position: 'top',
|
|
87
87
|
html: is2FAEnabled ? 'Enabled' : 'Disabled',
|
|
88
88
|
noIcon: true,
|
|
89
|
-
noMarginLeft: true
|
|
89
|
+
noMarginLeft: true,
|
|
90
|
+
disabled: isFlowopen.enable2fa || isFlowopen.disable2fa
|
|
90
91
|
}, /*#__PURE__*/_react.default.createElement(_Switch.default, {
|
|
91
92
|
value1: "disabled",
|
|
92
93
|
value2: "enabled",
|
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _reactTippy = require("react-tippy");
|
|
10
10
|
var _InfoIcon = require("./InfoIcon.styles");
|
|
11
|
-
var _excluded = ["title", "html", "position", "noMargin", "noMarginLeft", "noMarginRight", "noIcon"];
|
|
11
|
+
var _excluded = ["title", "html", "position", "noMargin", "noMarginLeft", "noMarginRight", "noIcon", "disabled"];
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
14
14
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -20,6 +20,7 @@ var InfoIcon = function InfoIcon(_ref) {
|
|
|
20
20
|
noMarginLeft = _ref.noMarginLeft,
|
|
21
21
|
noMarginRight = _ref.noMarginRight,
|
|
22
22
|
noIcon = _ref.noIcon,
|
|
23
|
+
disabled = _ref.disabled,
|
|
23
24
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
24
25
|
return /*#__PURE__*/_react.default.createElement(_InfoIcon.Container, {
|
|
25
26
|
noMargin: noMargin,
|
|
@@ -32,6 +33,9 @@ var InfoIcon = function InfoIcon(_ref) {
|
|
|
32
33
|
theme: "light",
|
|
33
34
|
arrow: true,
|
|
34
35
|
duration: 200
|
|
36
|
+
// onRequestClose={() => console.log('request to close tooltip')}
|
|
37
|
+
,
|
|
38
|
+
disabled: disabled
|
|
35
39
|
}, noIcon ? props.children : /*#__PURE__*/_react.default.createElement(_InfoIcon.Icon, null)));
|
|
36
40
|
};
|
|
37
41
|
exports.InfoIcon = InfoIcon;
|
|
@@ -26,7 +26,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
26
26
|
var inputStyle = {
|
|
27
27
|
outline: 'none',
|
|
28
28
|
border: 'none',
|
|
29
|
-
borderBottom: "
|
|
29
|
+
borderBottom: "1.5px solid ".concat(_theme.default.cBlack),
|
|
30
30
|
padding: '10px',
|
|
31
31
|
paddingBottom: '2px',
|
|
32
32
|
minWidth: 30,
|
|
@@ -77,7 +77,8 @@ var OtpInput = function OtpInput(props) {
|
|
|
77
77
|
return /*#__PURE__*/_react.default.createElement(_Input.Wrapper, null, label && /*#__PURE__*/_react.default.createElement(_Input.Label, {
|
|
78
78
|
isUp: true,
|
|
79
79
|
style: {
|
|
80
|
-
lineHeight: 'inherit'
|
|
80
|
+
lineHeight: 'inherit',
|
|
81
|
+
top: '-5px'
|
|
81
82
|
}
|
|
82
83
|
}, label), /*#__PURE__*/_react.default.createElement(_Input.InputWrap, null, /*#__PURE__*/_react.default.createElement(_reactOtpInput.default, _extends({
|
|
83
84
|
value: value,
|
|
@@ -18,7 +18,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
|
|
|
18
18
|
var ModalRoot = _styledComponents.default.div.withConfig({
|
|
19
19
|
displayName: "Modalstyles__ModalRoot",
|
|
20
20
|
componentId: "sc-9hc271-0"
|
|
21
|
-
})(["z-index:
|
|
21
|
+
})(["z-index:1000;position:fixed;top:0;left:0;width:100%;height:100%;"]);
|
|
22
22
|
exports.ModalRoot = ModalRoot;
|
|
23
23
|
var Dimmer = _styledComponents.default.div.withConfig({
|
|
24
24
|
displayName: "Modalstyles__Dimmer",
|
|
@@ -53,7 +53,7 @@ var renderSuccessModal = function renderSuccessModal(continueUrl) {
|
|
|
53
53
|
onClick: function onClick() {
|
|
54
54
|
window.open(continueUrl, '_self');
|
|
55
55
|
},
|
|
56
|
-
|
|
56
|
+
textRight: "We have successfully verified your email!"
|
|
57
57
|
// textRight="You will not be asked for your 2FA code next time you log in."
|
|
58
58
|
}));
|
|
59
59
|
};
|
|
@@ -347,7 +347,10 @@ var AuthProviderClass = /*#__PURE__*/function (_Component) {
|
|
|
347
347
|
_this.setState({
|
|
348
348
|
firebaseUser: null,
|
|
349
349
|
firebaseError: null,
|
|
350
|
-
verifyEmailError: null
|
|
350
|
+
verifyEmailError: null,
|
|
351
|
+
userMfaEnrollment: null,
|
|
352
|
+
waitingFor2fa: false,
|
|
353
|
+
isVerifyingEmail: false
|
|
351
354
|
});
|
|
352
355
|
if (redirect) {
|
|
353
356
|
window.location.href = "https://".concat(process.env.REACT_APP_WEBSITE_DOMAIN);
|