@veripass/react-sdk 1.0.6 → 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.
@@ -61618,8 +61618,8 @@ var BaseApi = /*#__PURE__*/function () {
61618
61618
  this.api_key = null;
61619
61619
  this.client = null;
61620
61620
  this.serviceEndpoints = {
61621
- baseUrlProd: undefined,
61622
- baseUrlDev: undefined,
61621
+ baseUrlProd: "https://veripass-backend-prod.azurewebsites.net",
61622
+ baseUrlDev: "http://localhost:3501",
61623
61623
  get: '',
61624
61624
  create: '',
61625
61625
  update: '',
@@ -62055,8 +62055,8 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62055
62055
  _this = _callSuper(this, SecurityService, [args]);
62056
62056
  _this.api_key = (args === null || args === void 0 ? void 0 : args.apiKey) || '';
62057
62057
  _this.serviceEndpoints = {
62058
- baseUrlProd: undefined,
62059
- baseUrlDev: undefined,
62058
+ baseUrlProd: "https://veripass-backend-prod.azurewebsites.net",
62059
+ baseUrlDev: "http://localhost:3501",
62060
62060
  signUpWithPassword: '/security/signup/standard',
62061
62061
  signInStandard: '/security/signin/standard',
62062
62062
  emailRecoverPassword: '/security/password/reset/standard',
@@ -62173,9 +62173,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
62173
62173
  }]);
62174
62174
  }(BaseApi);
62175
62175
 
62176
- var _templateObject, _templateObject2;
62177
- 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"])));
62178
- var KarlaTypography = ut(Typography$1)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
62176
+ var _templateObject$1, _templateObject2$1;
62177
+ 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"])));
62178
+ var KarlaTypography$1 = ut.span(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
62179
62179
  var swal = withReactContent(Swal);
62180
62180
  var statusCodeMessages = {
62181
62181
  461: 'The data provided does not match any registered application',
@@ -62367,7 +62367,9 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62367
62367
  useEffect(function () {
62368
62368
  initializeComponent();
62369
62369
  }, []);
62370
- return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StandarSigninContainer, null, /*#__PURE__*/React__default.createElement("header", {
62370
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StandarSigninContainer$1, {
62371
+ className: "veripass"
62372
+ }, /*#__PURE__*/React__default.createElement("header", {
62371
62373
  style: {
62372
62374
  textAlign: 'center'
62373
62375
  }
@@ -62393,7 +62395,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62393
62395
  style: {
62394
62396
  border: '1px solid #f2f2f2',
62395
62397
  borderRadius: '8px',
62396
- padding: '16px',
62398
+ padding: '2.25rem',
62397
62399
  boxShadow: '0 .75rem 6rem rgba(56, 65, 74, 0.03)',
62398
62400
  background: '#FFFFFF'
62399
62401
  }
@@ -62402,12 +62404,17 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62402
62404
  textAlign: 'center',
62403
62405
  marginBottom: '32px'
62404
62406
  }
62405
- }, /*#__PURE__*/React__default.createElement(KarlaTypography, null, "Log in using email address")), /*#__PURE__*/React__default.createElement("form", {
62407
+ }, /*#__PURE__*/React__default.createElement(KarlaTypography$1, {
62408
+ style: {
62409
+ color: '#343a40'
62410
+ }
62411
+ }, "Log in using email address")), /*#__PURE__*/React__default.createElement("form", {
62406
62412
  onSubmit: handleSubmit,
62407
62413
  autoComplete: "off"
62408
62414
  }, /*#__PURE__*/React__default.createElement("section", {
62409
62415
  style: {
62410
- marginBottom: '16px'
62416
+ marginBottom: '16px',
62417
+ margin: '10px 0'
62411
62418
  }
62412
62419
  }, /*#__PURE__*/React__default.createElement(TextField$1, {
62413
62420
  fullWidth: true,
@@ -62513,5 +62520,121 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
62513
62520
  }), isLoading ? 'Loading...' : 'Log in'))))));
62514
62521
  };
62515
62522
 
62516
- export { AuthContext, AuthProvider, VeripassStandardSignin, useAuth, useLocalStorage };
62523
+ var _templateObject, _templateObject2;
62524
+ 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"])));
62525
+ var KarlaTypography = ut.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
62526
+ var VeripassLogoutSuccess = function VeripassLogoutSuccess(_ref) {
62527
+ var _ref$organization = _ref.organization,
62528
+ organization = _ref$organization === void 0 ? {
62529
+ logoSrc: ''
62530
+ } : _ref$organization,
62531
+ _ref$signinUrl = _ref.signinUrl,
62532
+ signinUrl = _ref$signinUrl === void 0 ? '/auth/login' : _ref$signinUrl,
62533
+ _ref$texts = _ref.texts,
62534
+ texts = _ref$texts === void 0 ? {
62535
+ farewellMessage: 'Goodbye!',
62536
+ successMessage: 'You have successfully logged out.',
62537
+ goBackText: 'Back to',
62538
+ signinText: 'Sign in'
62539
+ } : _ref$texts;
62540
+ var authProvider = useAuth();
62541
+ useEffect(function () {
62542
+ authProvider.logout();
62543
+ }, []);
62544
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StandarSigninContainer, null, /*#__PURE__*/React__default.createElement("section", {
62545
+ style: {
62546
+ border: '1px solid #f2f2f2',
62547
+ borderRadius: '8px',
62548
+ padding: '2.25rem',
62549
+ boxShadow: '0 .75rem 6rem rgba(56, 65, 74, 0.03)',
62550
+ background: '#FFFFFF'
62551
+ },
62552
+ className: "veripass"
62553
+ }, /*#__PURE__*/React__default.createElement("header", {
62554
+ style: {
62555
+ textAlign: 'center'
62556
+ }
62557
+ }, (organization === null || organization === void 0 ? void 0 : organization.logoSrc) && /*#__PURE__*/React__default.createElement("a", {
62558
+ href: "/"
62559
+ }, /*#__PURE__*/React__default.createElement("img", {
62560
+ src: organization === null || organization === void 0 ? void 0 : organization.logoSrc,
62561
+ alt: "",
62562
+ height: "75",
62563
+ style: {
62564
+ display: 'block',
62565
+ margin: '0 auto'
62566
+ }
62567
+ }))), /*#__PURE__*/React__default.createElement("div", {
62568
+ style: {
62569
+ textAlign: 'center'
62570
+ }
62571
+ }, /*#__PURE__*/React__default.createElement("div", {
62572
+ style: {
62573
+ marginTop: '2.25rem'
62574
+ }
62575
+ }, /*#__PURE__*/React__default.createElement("div", {
62576
+ className: "logout-checkmark"
62577
+ }, /*#__PURE__*/React__default.createElement("svg", {
62578
+ version: "1.1",
62579
+ xmlns: "http://www.w3.org/2000/svg",
62580
+ viewBox: "0 0 130.2 130.2"
62581
+ }, /*#__PURE__*/React__default.createElement("circle", {
62582
+ className: "path circle",
62583
+ fill: "none",
62584
+ stroke: "#4bd396",
62585
+ strokeWidth: "6",
62586
+ strokeMiterlimit: "10",
62587
+ cx: "65.1",
62588
+ cy: "65.1",
62589
+ r: "62.1"
62590
+ }), /*#__PURE__*/React__default.createElement("polyline", {
62591
+ className: "path check",
62592
+ fill: "none",
62593
+ stroke: "#4bd396",
62594
+ strokeWidth: "6",
62595
+ strokeLinecap: "round",
62596
+ strokeMiterlimit: "10",
62597
+ points: "100.2,40.2 51.5,88.8 29.8,67.5 "
62598
+ })))), /*#__PURE__*/React__default.createElement(Typography$1, {
62599
+ variant: "h5",
62600
+ style: {
62601
+ textAlign: 'center',
62602
+ margin: '10px 0',
62603
+ color: '#343a40',
62604
+ fontWeight: '600'
62605
+ }
62606
+ }, /*#__PURE__*/React__default.createElement(KarlaTypography, null, texts === null || texts === void 0 ? void 0 : texts.farewellMessage)), /*#__PURE__*/React__default.createElement(Typography$1, {
62607
+ variant: "body2",
62608
+ style: {
62609
+ marginTop: '16px',
62610
+ marginBottom: '24px',
62611
+ color: '#98a6ad'
62612
+ }
62613
+ }, texts === null || texts === void 0 ? void 0 : texts.successMessage))), /*#__PURE__*/React__default.createElement("div", {
62614
+ style: {
62615
+ marginTop: '1.5rem',
62616
+ display: 'flex',
62617
+ flexWrap: 'wrap'
62618
+ }
62619
+ }, /*#__PURE__*/React__default.createElement("div", {
62620
+ style: {
62621
+ flex: '0 0 auto',
62622
+ width: '100%',
62623
+ textAlign: 'center'
62624
+ }
62625
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
62626
+ variant: "body2",
62627
+ style: {
62628
+ color: '#98a6ad'
62629
+ }
62630
+ }, texts === null || texts === void 0 ? void 0 : texts.goBackText, ' ', /*#__PURE__*/React__default.createElement("a", {
62631
+ href: signinUrl,
62632
+ style: {
62633
+ color: '#323a46',
62634
+ marginLeft: '0.175rem'
62635
+ }
62636
+ }, /*#__PURE__*/React__default.createElement("b", null, texts === null || texts === void 0 ? void 0 : texts.signinText)))))));
62637
+ };
62638
+
62639
+ export { AuthContext, AuthProvider, VeripassLogoutSuccess, VeripassStandardSignin, useAuth, useLocalStorage };
62517
62640
  //# sourceMappingURL=react-sdk.esm.js.map