@stokr/components-library 1.1.4 → 1.1.6

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.
Files changed (39) hide show
  1. package/dist/components/2FA/Connect2FA.js +45 -0
  2. package/dist/components/2FA/EnterCode.js +105 -0
  3. package/dist/components/2FA/EnterCode.stories.js +39 -0
  4. package/dist/components/2FA/InstallAuthApp.js +43 -0
  5. package/dist/components/2FA/ResetCode.js +47 -0
  6. package/dist/components/2FA/Sucess2FA.js +39 -0
  7. package/dist/components/2FA/disable-2fa-flow.js +232 -0
  8. package/dist/components/2FA/disable-2fa-flow.stories.js +35 -0
  9. package/dist/components/2FA/enable-2fa-flow.js +174 -0
  10. package/dist/components/2FA/enable-2fa-flow.stories.js +35 -0
  11. package/dist/components/2FA/index.js +62 -0
  12. package/dist/components/2FA/login-with-otp-flow.js +250 -0
  13. package/dist/components/2FA/login-with-otp-flow.stories.js +35 -0
  14. package/dist/components/2FA/main-flow.js +122 -0
  15. package/dist/components/2FA/main-flow.stories.js +35 -0
  16. package/dist/components/Checkbox/Checkbox.js +1 -2
  17. package/dist/components/Checkbox/Checkbox.styles.js +1 -1
  18. package/dist/components/ComponentScroll/ComponentScroll.stories.js +18 -2
  19. package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +28 -11
  20. package/dist/components/Header/Header.js +7 -5
  21. package/dist/components/Header/Header.stories.js +11 -1
  22. package/dist/components/Input/OtpInput.js +52 -0
  23. package/dist/components/Input/OtpInput.stories.js +63 -0
  24. package/dist/components/Layout/Layout.js +2 -1
  25. package/dist/components/RegisterAlgorand/Algorand.stories.js +5 -5
  26. package/dist/components/RegisterAlgorand/flow.js +1 -1
  27. package/dist/components/RegisterAlgorand/flowWithMemo.js +1 -1
  28. package/dist/components/StepsProgress/StepsProgress.stories.js +1 -1
  29. package/dist/components/StokrLoader/StokrLoader.js +5 -5
  30. package/dist/components/Switch/Switch.js +17 -7
  31. package/dist/components/Text/Text.styles.js +9 -3
  32. package/dist/components/ToDoList/ToDoListTask.js +1 -1
  33. package/dist/components/taxId/TaxId.stories.js +1 -1
  34. package/dist/components/taxId/register-taxid.js +1 -1
  35. package/dist/context/Auth.js +250 -0
  36. package/dist/context/AuthContext.js +687 -0
  37. package/dist/firebase-config.js +26 -0
  38. package/dist/index.js +34 -1
  39. package/package.json +4 -1
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.auth = void 0;
7
+ var _app = require("firebase/app");
8
+ var _auth = require("firebase/auth");
9
+ var firebaseConfig = {
10
+ apiKey: 'AIzaSyBBp_3Romnfv--YpUuV0mJgDymvSp3oq0c',
11
+ authDomain: 'stokr-development-env.firebaseapp.com',
12
+ projectId: 'stokr-development-env',
13
+ storageBucket: 'stokr-development-env.appspot.com',
14
+ messagingSenderId: '568229412804',
15
+ appId: '1:568229412804:web:2391857e3e2a0b02346e91',
16
+ measurementId: 'G-CP53SZVSMN'
17
+ };
18
+
19
+ // Initialize Firebase
20
+ var app = (0, _app.initializeApp)(firebaseConfig);
21
+
22
+ // Initialize Firebase Authentication and get a reference to the service
23
+ var auth = (0, _auth.getAuth)(app);
24
+ exports.auth = auth;
25
+ var _default = app;
26
+ exports.default = _default;
package/dist/index.js CHANGED
@@ -377,6 +377,17 @@ Object.keys(_Select).forEach(function (key) {
377
377
  }
378
378
  });
379
379
  });
380
+ var _OtpInput = require("./components/Input/OtpInput");
381
+ Object.keys(_OtpInput).forEach(function (key) {
382
+ if (key === "default" || key === "__esModule") return;
383
+ if (key in exports && exports[key] === _OtpInput[key]) return;
384
+ Object.defineProperty(exports, key, {
385
+ enumerable: true,
386
+ get: function get() {
387
+ return _OtpInput[key];
388
+ }
389
+ });
390
+ });
380
391
  var _InvestCalculator = require("./components/InvestCalculator/InvestCalculator");
381
392
  Object.keys(_InvestCalculator).forEach(function (key) {
382
393
  if (key === "default" || key === "__esModule") return;
@@ -894,7 +905,7 @@ Object.keys(_StokrLoader).forEach(function (key) {
894
905
  }
895
906
  });
896
907
  });
897
- var _AuthContext = require("./components/context/AuthContext");
908
+ var _AuthContext = require("./context/AuthContext");
898
909
  Object.keys(_AuthContext).forEach(function (key) {
899
910
  if (key === "default" || key === "__esModule") return;
900
911
  if (key in exports && exports[key] === _AuthContext[key]) return;
@@ -905,6 +916,17 @@ Object.keys(_AuthContext).forEach(function (key) {
905
916
  }
906
917
  });
907
918
  });
919
+ var _Auth = require("./context/Auth");
920
+ Object.keys(_Auth).forEach(function (key) {
921
+ if (key === "default" || key === "__esModule") return;
922
+ if (key in exports && exports[key] === _Auth[key]) return;
923
+ Object.defineProperty(exports, key, {
924
+ enumerable: true,
925
+ get: function get() {
926
+ return _Auth[key];
927
+ }
928
+ });
929
+ });
908
930
  var _SvgIcons = require("./components/SvgIcons");
909
931
  Object.keys(_SvgIcons).forEach(function (key) {
910
932
  if (key === "default" || key === "__esModule") return;
@@ -1047,4 +1069,15 @@ Object.keys(_km_ify).forEach(function (key) {
1047
1069
  return _km_ify[key];
1048
1070
  }
1049
1071
  });
1072
+ });
1073
+ var _FA = require("./components/2FA");
1074
+ Object.keys(_FA).forEach(function (key) {
1075
+ if (key === "default" || key === "__esModule") return;
1076
+ if (key in exports && exports[key] === _FA[key]) return;
1077
+ Object.defineProperty(exports, key, {
1078
+ enumerable: true,
1079
+ get: function get() {
1080
+ return _FA[key];
1081
+ }
1082
+ });
1050
1083
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -40,6 +40,7 @@
40
40
  "cross-env": "^7.0.3",
41
41
  "d3": "^7.8.3",
42
42
  "date-fns": "^2.29.3",
43
+ "firebase": "^10.5.0",
43
44
  "formik": "^2.2.9",
44
45
  "formik-persist": "^1.1.0",
45
46
  "http-server": "^14.1.1",
@@ -56,7 +57,9 @@
56
57
  "react-device-detect": "^2.2.3",
57
58
  "react-dom": "^18.2.0",
58
59
  "react-helmet": "^6.1.0",
60
+ "react-otp-input": "^3.1.0",
59
61
  "react-portal": "^4.2.2",
62
+ "react-qr-code": "^2.0.12",
60
63
  "react-range": "^1.8.14",
61
64
  "react-router": "^6.8.1",
62
65
  "react-router-dom": "^6.8.1",