@veripass/react-sdk 1.0.7 → 1.0.8
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/react-sdk.cjs.js +131 -7
- package/dist/react-sdk.cjs.js.map +1 -1
- package/dist/react-sdk.esm.js +131 -8
- package/dist/react-sdk.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/react-sdk.cjs.js
CHANGED
|
@@ -62193,9 +62193,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62193
62193
|
}]);
|
|
62194
62194
|
}(BaseApi);
|
|
62195
62195
|
|
|
62196
|
-
var _templateObject, _templateObject2;
|
|
62197
|
-
var StandarSigninContainer = ut.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0 auto;\n min-width: 400px;\n\n @media (min-width: 768px) {\n max-width: 66.6667%; /* 8/12 */\n }\n\n @media (min-width: 992px) {\n max-width: 50%; /* 6/12 */\n }\n\n @media (min-width: 1200px) {\n max-width: 41.6667%; /* 5/12 */\n }\n"])));
|
|
62198
|
-
var KarlaTypography = ut(
|
|
62196
|
+
var _templateObject$1, _templateObject2$1;
|
|
62197
|
+
var StandarSigninContainer$1 = ut.section(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n margin: 0 auto;\n min-width: 400px;\n\n @media (min-width: 768px) {\n max-width: 66.6667%; /* 8/12 */\n }\n\n @media (min-width: 992px) {\n max-width: 50%; /* 6/12 */\n }\n\n @media (min-width: 1200px) {\n max-width: 41.6667%; /* 5/12 */\n }\n"])));
|
|
62198
|
+
var KarlaTypography$1 = ut.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
|
|
62199
62199
|
var swal = withReactContent(Swal);
|
|
62200
62200
|
var statusCodeMessages = {
|
|
62201
62201
|
461: 'The data provided does not match any registered application',
|
|
@@ -62387,7 +62387,9 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62387
62387
|
React.useEffect(function () {
|
|
62388
62388
|
initializeComponent();
|
|
62389
62389
|
}, []);
|
|
62390
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StandarSigninContainer,
|
|
62390
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StandarSigninContainer$1, {
|
|
62391
|
+
className: "veripass"
|
|
62392
|
+
}, /*#__PURE__*/React.createElement("header", {
|
|
62391
62393
|
style: {
|
|
62392
62394
|
textAlign: 'center'
|
|
62393
62395
|
}
|
|
@@ -62413,7 +62415,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62413
62415
|
style: {
|
|
62414
62416
|
border: '1px solid #f2f2f2',
|
|
62415
62417
|
borderRadius: '8px',
|
|
62416
|
-
padding: '
|
|
62418
|
+
padding: '2.25rem',
|
|
62417
62419
|
boxShadow: '0 .75rem 6rem rgba(56, 65, 74, 0.03)',
|
|
62418
62420
|
background: '#FFFFFF'
|
|
62419
62421
|
}
|
|
@@ -62422,12 +62424,17 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62422
62424
|
textAlign: 'center',
|
|
62423
62425
|
marginBottom: '32px'
|
|
62424
62426
|
}
|
|
62425
|
-
}, /*#__PURE__*/React.createElement(KarlaTypography,
|
|
62427
|
+
}, /*#__PURE__*/React.createElement(KarlaTypography$1, {
|
|
62428
|
+
style: {
|
|
62429
|
+
color: '#343a40'
|
|
62430
|
+
}
|
|
62431
|
+
}, "Log in using email address")), /*#__PURE__*/React.createElement("form", {
|
|
62426
62432
|
onSubmit: handleSubmit,
|
|
62427
62433
|
autoComplete: "off"
|
|
62428
62434
|
}, /*#__PURE__*/React.createElement("section", {
|
|
62429
62435
|
style: {
|
|
62430
|
-
marginBottom: '16px'
|
|
62436
|
+
marginBottom: '16px',
|
|
62437
|
+
margin: '10px 0'
|
|
62431
62438
|
}
|
|
62432
62439
|
}, /*#__PURE__*/React.createElement(TextField$1, {
|
|
62433
62440
|
fullWidth: true,
|
|
@@ -62533,8 +62540,125 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62533
62540
|
}), isLoading ? 'Loading...' : 'Log in'))))));
|
|
62534
62541
|
};
|
|
62535
62542
|
|
|
62543
|
+
var _templateObject, _templateObject2;
|
|
62544
|
+
var StandarSigninContainer = ut.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0 auto;\n min-width: 400px;\n\n @media (min-width: 768px) {\n max-width: 66.6667%; /* 8/12 */\n }\n\n @media (min-width: 992px) {\n max-width: 50%; /* 6/12 */\n }\n\n @media (min-width: 1200px) {\n max-width: 41.6667%; /* 5/12 */\n }\n"])));
|
|
62545
|
+
var KarlaTypography = ut.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
|
|
62546
|
+
var VeripassLogoutSuccess = function VeripassLogoutSuccess(_ref) {
|
|
62547
|
+
var _ref$organization = _ref.organization,
|
|
62548
|
+
organization = _ref$organization === void 0 ? {
|
|
62549
|
+
logoSrc: ''
|
|
62550
|
+
} : _ref$organization,
|
|
62551
|
+
_ref$signinUrl = _ref.signinUrl,
|
|
62552
|
+
signinUrl = _ref$signinUrl === void 0 ? '/auth/login' : _ref$signinUrl,
|
|
62553
|
+
_ref$texts = _ref.texts,
|
|
62554
|
+
texts = _ref$texts === void 0 ? {
|
|
62555
|
+
farewellMessage: 'Goodbye!',
|
|
62556
|
+
successMessage: 'You have successfully logged out.',
|
|
62557
|
+
goBackText: 'Back to',
|
|
62558
|
+
signinText: 'Sign in'
|
|
62559
|
+
} : _ref$texts;
|
|
62560
|
+
var authProvider = useAuth();
|
|
62561
|
+
React.useEffect(function () {
|
|
62562
|
+
authProvider.logout();
|
|
62563
|
+
}, []);
|
|
62564
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(StandarSigninContainer, null, /*#__PURE__*/React.createElement("section", {
|
|
62565
|
+
style: {
|
|
62566
|
+
border: '1px solid #f2f2f2',
|
|
62567
|
+
borderRadius: '8px',
|
|
62568
|
+
padding: '2.25rem',
|
|
62569
|
+
boxShadow: '0 .75rem 6rem rgba(56, 65, 74, 0.03)',
|
|
62570
|
+
background: '#FFFFFF'
|
|
62571
|
+
},
|
|
62572
|
+
className: "veripass"
|
|
62573
|
+
}, /*#__PURE__*/React.createElement("header", {
|
|
62574
|
+
style: {
|
|
62575
|
+
textAlign: 'center'
|
|
62576
|
+
}
|
|
62577
|
+
}, (organization === null || organization === void 0 ? void 0 : organization.logoSrc) && /*#__PURE__*/React.createElement("a", {
|
|
62578
|
+
href: "/"
|
|
62579
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
62580
|
+
src: organization === null || organization === void 0 ? void 0 : organization.logoSrc,
|
|
62581
|
+
alt: "",
|
|
62582
|
+
height: "75",
|
|
62583
|
+
style: {
|
|
62584
|
+
display: 'block',
|
|
62585
|
+
margin: '0 auto'
|
|
62586
|
+
}
|
|
62587
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
62588
|
+
style: {
|
|
62589
|
+
textAlign: 'center'
|
|
62590
|
+
}
|
|
62591
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
62592
|
+
style: {
|
|
62593
|
+
marginTop: '2.25rem'
|
|
62594
|
+
}
|
|
62595
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
62596
|
+
className: "logout-checkmark"
|
|
62597
|
+
}, /*#__PURE__*/React.createElement("svg", {
|
|
62598
|
+
version: "1.1",
|
|
62599
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
62600
|
+
viewBox: "0 0 130.2 130.2"
|
|
62601
|
+
}, /*#__PURE__*/React.createElement("circle", {
|
|
62602
|
+
className: "path circle",
|
|
62603
|
+
fill: "none",
|
|
62604
|
+
stroke: "#4bd396",
|
|
62605
|
+
strokeWidth: "6",
|
|
62606
|
+
strokeMiterlimit: "10",
|
|
62607
|
+
cx: "65.1",
|
|
62608
|
+
cy: "65.1",
|
|
62609
|
+
r: "62.1"
|
|
62610
|
+
}), /*#__PURE__*/React.createElement("polyline", {
|
|
62611
|
+
className: "path check",
|
|
62612
|
+
fill: "none",
|
|
62613
|
+
stroke: "#4bd396",
|
|
62614
|
+
strokeWidth: "6",
|
|
62615
|
+
strokeLinecap: "round",
|
|
62616
|
+
strokeMiterlimit: "10",
|
|
62617
|
+
points: "100.2,40.2 51.5,88.8 29.8,67.5 "
|
|
62618
|
+
})))), /*#__PURE__*/React.createElement(Typography$1, {
|
|
62619
|
+
variant: "h5",
|
|
62620
|
+
style: {
|
|
62621
|
+
textAlign: 'center',
|
|
62622
|
+
margin: '10px 0',
|
|
62623
|
+
color: '#343a40',
|
|
62624
|
+
fontWeight: '600'
|
|
62625
|
+
}
|
|
62626
|
+
}, /*#__PURE__*/React.createElement(KarlaTypography, null, texts === null || texts === void 0 ? void 0 : texts.farewellMessage)), /*#__PURE__*/React.createElement(Typography$1, {
|
|
62627
|
+
variant: "body2",
|
|
62628
|
+
style: {
|
|
62629
|
+
marginTop: '16px',
|
|
62630
|
+
marginBottom: '24px',
|
|
62631
|
+
color: '#98a6ad'
|
|
62632
|
+
}
|
|
62633
|
+
}, texts === null || texts === void 0 ? void 0 : texts.successMessage))), /*#__PURE__*/React.createElement("div", {
|
|
62634
|
+
style: {
|
|
62635
|
+
marginTop: '1.5rem',
|
|
62636
|
+
display: 'flex',
|
|
62637
|
+
flexWrap: 'wrap'
|
|
62638
|
+
}
|
|
62639
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
62640
|
+
style: {
|
|
62641
|
+
flex: '0 0 auto',
|
|
62642
|
+
width: '100%',
|
|
62643
|
+
textAlign: 'center'
|
|
62644
|
+
}
|
|
62645
|
+
}, /*#__PURE__*/React.createElement(Typography$1, {
|
|
62646
|
+
variant: "body2",
|
|
62647
|
+
style: {
|
|
62648
|
+
color: '#98a6ad'
|
|
62649
|
+
}
|
|
62650
|
+
}, texts === null || texts === void 0 ? void 0 : texts.goBackText, ' ', /*#__PURE__*/React.createElement("a", {
|
|
62651
|
+
href: signinUrl,
|
|
62652
|
+
style: {
|
|
62653
|
+
color: '#323a46',
|
|
62654
|
+
marginLeft: '0.175rem'
|
|
62655
|
+
}
|
|
62656
|
+
}, /*#__PURE__*/React.createElement("b", null, texts === null || texts === void 0 ? void 0 : texts.signinText)))))));
|
|
62657
|
+
};
|
|
62658
|
+
|
|
62536
62659
|
exports.AuthContext = AuthContext;
|
|
62537
62660
|
exports.AuthProvider = AuthProvider;
|
|
62661
|
+
exports.VeripassLogoutSuccess = VeripassLogoutSuccess;
|
|
62538
62662
|
exports.VeripassStandardSignin = VeripassStandardSignin;
|
|
62539
62663
|
exports.useAuth = useAuth;
|
|
62540
62664
|
exports.useLocalStorage = useLocalStorage;
|