@stokr/components-library 1.2.0 → 2.0.0-beta.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/dist/components/2FA/login-with-otp-flow.js +18 -13
- package/dist/components/Checkbox/Checkbox.js +5 -2
- package/dist/components/Checkbox/Checkbox.styles.js +5 -2
- package/dist/components/ComponentScroll/ComponentScroll.js +4 -2
- package/dist/components/ComponentScroll/ComponentScroll.stories.js +18 -2
- package/dist/components/ComponentScroll/ComponentScroll.styles.js +4 -1
- package/dist/components/Footer/Footer.js +5 -14
- package/dist/components/Footer/Footer.styles.js +1 -1
- package/dist/components/Footer/FooterLayout.js +4 -0
- package/dist/components/Footer/FooterMenu.stories.js +4 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +31 -12
- package/dist/components/Header/Header.js +3 -3
- package/dist/components/Input/InputPassword.js +17 -11
- package/dist/components/Input/InputPassword.styles.js +11 -2
- package/dist/components/Layout/Layout.js +2 -1
- package/dist/components/MainMenu/MainMenu.js +2 -2
- package/dist/components/MenuNav/MenuNav.styles.js +1 -1
- package/dist/components/Modal/Modal.js +2 -1
- package/dist/components/RegisterAlgorand/Algorand.stories.js +5 -5
- package/dist/components/RegisterAlgorand/flow.js +1 -1
- package/dist/components/RegisterAlgorand/flowWithMemo.js +1 -1
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.js +48 -14
- package/dist/components/RegisterConfirmModal/RegisterConfirmModal.stories.js +9 -2
- package/dist/components/RegisterModal/RegisterModal.js +314 -145
- package/dist/components/RegisterModal/RegisterModal.stories.js +7 -3
- package/dist/components/StepsProgress/StepsProgress.js +20 -0
- package/dist/components/StepsProgress/StepsProgress.stories.js +1 -1
- package/dist/components/Switch/Switch.js +17 -7
- package/dist/components/TermsModal/TermsModal.js +14 -3
- package/dist/components/Text/Text.styles.js +8 -2
- package/dist/components/ToDoList/ToDoListTask.js +1 -1
- package/dist/components/breakdown/Breakdown.js +1 -1
- package/dist/components/headerHo/HeaderHo.js +67 -54
- package/dist/components/taxId/TaxId.stories.js +1 -1
- package/dist/components/taxId/register-taxid.js +1 -1
- package/dist/context/Auth.js +35 -0
- package/dist/context/AuthContext.js +7 -6
- package/dist/index.js +133 -1
- package/dist/utils/delete-redirect-cookie-and-navigate.js +1 -4
- package/dist/utils/get-cookie-domain.js +4 -2
- package/dist/utils/withRouter.js +3 -1
- package/package.json +5 -1
package/dist/index.js
CHANGED
|
@@ -377,6 +377,28 @@ 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
|
+
});
|
|
391
|
+
var _InputUsername = require("./components/Input/InputUsername");
|
|
392
|
+
Object.keys(_InputUsername).forEach(function (key) {
|
|
393
|
+
if (key === "default" || key === "__esModule") return;
|
|
394
|
+
if (key in exports && exports[key] === _InputUsername[key]) return;
|
|
395
|
+
Object.defineProperty(exports, key, {
|
|
396
|
+
enumerable: true,
|
|
397
|
+
get: function get() {
|
|
398
|
+
return _InputUsername[key];
|
|
399
|
+
}
|
|
400
|
+
});
|
|
401
|
+
});
|
|
380
402
|
var _InvestCalculator = require("./components/InvestCalculator/InvestCalculator");
|
|
381
403
|
Object.keys(_InvestCalculator).forEach(function (key) {
|
|
382
404
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -894,7 +916,7 @@ Object.keys(_StokrLoader).forEach(function (key) {
|
|
|
894
916
|
}
|
|
895
917
|
});
|
|
896
918
|
});
|
|
897
|
-
var _AuthContext = require("./
|
|
919
|
+
var _AuthContext = require("./context/AuthContext");
|
|
898
920
|
Object.keys(_AuthContext).forEach(function (key) {
|
|
899
921
|
if (key === "default" || key === "__esModule") return;
|
|
900
922
|
if (key in exports && exports[key] === _AuthContext[key]) return;
|
|
@@ -905,6 +927,17 @@ Object.keys(_AuthContext).forEach(function (key) {
|
|
|
905
927
|
}
|
|
906
928
|
});
|
|
907
929
|
});
|
|
930
|
+
var _Auth = require("./context/Auth");
|
|
931
|
+
Object.keys(_Auth).forEach(function (key) {
|
|
932
|
+
if (key === "default" || key === "__esModule") return;
|
|
933
|
+
if (key in exports && exports[key] === _Auth[key]) return;
|
|
934
|
+
Object.defineProperty(exports, key, {
|
|
935
|
+
enumerable: true,
|
|
936
|
+
get: function get() {
|
|
937
|
+
return _Auth[key];
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
});
|
|
908
941
|
var _SvgIcons = require("./components/SvgIcons");
|
|
909
942
|
Object.keys(_SvgIcons).forEach(function (key) {
|
|
910
943
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1047,4 +1080,103 @@ Object.keys(_km_ify).forEach(function (key) {
|
|
|
1047
1080
|
return _km_ify[key];
|
|
1048
1081
|
}
|
|
1049
1082
|
});
|
|
1083
|
+
});
|
|
1084
|
+
var _FA = require("./components/2FA");
|
|
1085
|
+
Object.keys(_FA).forEach(function (key) {
|
|
1086
|
+
if (key === "default" || key === "__esModule") return;
|
|
1087
|
+
if (key in exports && exports[key] === _FA[key]) return;
|
|
1088
|
+
Object.defineProperty(exports, key, {
|
|
1089
|
+
enumerable: true,
|
|
1090
|
+
get: function get() {
|
|
1091
|
+
return _FA[key];
|
|
1092
|
+
}
|
|
1093
|
+
});
|
|
1094
|
+
});
|
|
1095
|
+
var _headerHo = require("./components/headerHo");
|
|
1096
|
+
Object.keys(_headerHo).forEach(function (key) {
|
|
1097
|
+
if (key === "default" || key === "__esModule") return;
|
|
1098
|
+
if (key in exports && exports[key] === _headerHo[key]) return;
|
|
1099
|
+
Object.defineProperty(exports, key, {
|
|
1100
|
+
enumerable: true,
|
|
1101
|
+
get: function get() {
|
|
1102
|
+
return _headerHo[key];
|
|
1103
|
+
}
|
|
1104
|
+
});
|
|
1105
|
+
});
|
|
1106
|
+
var _List = require("./components/landing-page/List");
|
|
1107
|
+
Object.keys(_List).forEach(function (key) {
|
|
1108
|
+
if (key === "default" || key === "__esModule") return;
|
|
1109
|
+
if (key in exports && exports[key] === _List[key]) return;
|
|
1110
|
+
Object.defineProperty(exports, key, {
|
|
1111
|
+
enumerable: true,
|
|
1112
|
+
get: function get() {
|
|
1113
|
+
return _List[key];
|
|
1114
|
+
}
|
|
1115
|
+
});
|
|
1116
|
+
});
|
|
1117
|
+
var _PageContent = require("./components/landing-page/PageContent");
|
|
1118
|
+
Object.keys(_PageContent).forEach(function (key) {
|
|
1119
|
+
if (key === "default" || key === "__esModule") return;
|
|
1120
|
+
if (key in exports && exports[key] === _PageContent[key]) return;
|
|
1121
|
+
Object.defineProperty(exports, key, {
|
|
1122
|
+
enumerable: true,
|
|
1123
|
+
get: function get() {
|
|
1124
|
+
return _PageContent[key];
|
|
1125
|
+
}
|
|
1126
|
+
});
|
|
1127
|
+
});
|
|
1128
|
+
var _PageText = require("./components/landing-page/PageText");
|
|
1129
|
+
Object.keys(_PageText).forEach(function (key) {
|
|
1130
|
+
if (key === "default" || key === "__esModule") return;
|
|
1131
|
+
if (key in exports && exports[key] === _PageText[key]) return;
|
|
1132
|
+
Object.defineProperty(exports, key, {
|
|
1133
|
+
enumerable: true,
|
|
1134
|
+
get: function get() {
|
|
1135
|
+
return _PageText[key];
|
|
1136
|
+
}
|
|
1137
|
+
});
|
|
1138
|
+
});
|
|
1139
|
+
var _PageTitle = require("./components/landing-page/PageTitle");
|
|
1140
|
+
Object.keys(_PageTitle).forEach(function (key) {
|
|
1141
|
+
if (key === "default" || key === "__esModule") return;
|
|
1142
|
+
if (key in exports && exports[key] === _PageTitle[key]) return;
|
|
1143
|
+
Object.defineProperty(exports, key, {
|
|
1144
|
+
enumerable: true,
|
|
1145
|
+
get: function get() {
|
|
1146
|
+
return _PageTitle[key];
|
|
1147
|
+
}
|
|
1148
|
+
});
|
|
1149
|
+
});
|
|
1150
|
+
var _ResetConfirmModal = require("./components/ResetConfirmModal/ResetConfirmModal");
|
|
1151
|
+
Object.keys(_ResetConfirmModal).forEach(function (key) {
|
|
1152
|
+
if (key === "default" || key === "__esModule") return;
|
|
1153
|
+
if (key in exports && exports[key] === _ResetConfirmModal[key]) return;
|
|
1154
|
+
Object.defineProperty(exports, key, {
|
|
1155
|
+
enumerable: true,
|
|
1156
|
+
get: function get() {
|
|
1157
|
+
return _ResetConfirmModal[key];
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
});
|
|
1161
|
+
var _ResetPasswordModal = require("./components/ResetPasswordModal/ResetPasswordModal");
|
|
1162
|
+
Object.keys(_ResetPasswordModal).forEach(function (key) {
|
|
1163
|
+
if (key === "default" || key === "__esModule") return;
|
|
1164
|
+
if (key in exports && exports[key] === _ResetPasswordModal[key]) return;
|
|
1165
|
+
Object.defineProperty(exports, key, {
|
|
1166
|
+
enumerable: true,
|
|
1167
|
+
get: function get() {
|
|
1168
|
+
return _ResetPasswordModal[key];
|
|
1169
|
+
}
|
|
1170
|
+
});
|
|
1171
|
+
});
|
|
1172
|
+
var _TermsModal = require("./components/TermsModal/TermsModal");
|
|
1173
|
+
Object.keys(_TermsModal).forEach(function (key) {
|
|
1174
|
+
if (key === "default" || key === "__esModule") return;
|
|
1175
|
+
if (key in exports && exports[key] === _TermsModal[key]) return;
|
|
1176
|
+
Object.defineProperty(exports, key, {
|
|
1177
|
+
enumerable: true,
|
|
1178
|
+
get: function get() {
|
|
1179
|
+
return _TermsModal[key];
|
|
1180
|
+
}
|
|
1181
|
+
});
|
|
1050
1182
|
});
|
|
@@ -9,10 +9,7 @@ var _getCookieDomain = _interopRequireDefault(require("./get-cookie-domain"));
|
|
|
9
9
|
var _redirectUrl = _interopRequireDefault(require("./redirect-url"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
var _default = function _default() {
|
|
12
|
-
var cookieDomain =
|
|
13
|
-
if (process.env.NODE_ENV === 'production') {
|
|
14
|
-
cookieDomain.domain = (0, _getCookieDomain.default)();
|
|
15
|
-
}
|
|
12
|
+
var cookieDomain = (0, _getCookieDomain.default)();
|
|
16
13
|
_jsCookie.default.remove('STOKR_INVESTOR_DASHBOARD_REDIRECT', cookieDomain);
|
|
17
14
|
_jsCookie.default.remove('STOKR_INVEST_IN_STO_REDIRECT', cookieDomain);
|
|
18
15
|
window.location.href = _redirectUrl.default;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var
|
|
6
|
+
exports.getCookieDomain = exports.default = void 0;
|
|
7
|
+
var getCookieDomain = function getCookieDomain() {
|
|
8
8
|
var cookieDomain = {};
|
|
9
9
|
|
|
10
10
|
// Cookie for deployed app
|
|
@@ -13,4 +13,6 @@ var _default = function _default() {
|
|
|
13
13
|
}
|
|
14
14
|
return cookieDomain;
|
|
15
15
|
};
|
|
16
|
+
exports.getCookieDomain = getCookieDomain;
|
|
17
|
+
var _default = getCookieDomain;
|
|
16
18
|
exports.default = _default;
|
package/dist/utils/withRouter.js
CHANGED
|
@@ -11,8 +11,10 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
11
11
|
var withRouter = function withRouter(Component) {
|
|
12
12
|
var Wrapper = function Wrapper(props) {
|
|
13
13
|
var navigate = (0, _reactRouterDom.useNavigate)();
|
|
14
|
+
var location = (0, _reactRouterDom.useLocation)();
|
|
14
15
|
return /*#__PURE__*/_react.default.createElement(Component, _extends({
|
|
15
|
-
navigate: navigate
|
|
16
|
+
navigate: navigate,
|
|
17
|
+
location: location
|
|
16
18
|
}, props));
|
|
17
19
|
};
|
|
18
20
|
return Wrapper;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.0",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -40,8 +40,10 @@
|
|
|
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",
|
|
46
|
+
"html-react-parser": "^5.0.6",
|
|
45
47
|
"http-server": "^14.1.1",
|
|
46
48
|
"js-cookie": "^3.0.5",
|
|
47
49
|
"mobile-detect": "^1.4.5",
|
|
@@ -56,7 +58,9 @@
|
|
|
56
58
|
"react-device-detect": "^2.2.3",
|
|
57
59
|
"react-dom": "^18.2.0",
|
|
58
60
|
"react-helmet": "^6.1.0",
|
|
61
|
+
"react-otp-input": "^3.1.0",
|
|
59
62
|
"react-portal": "^4.2.2",
|
|
63
|
+
"react-qr-code": "^2.0.12",
|
|
60
64
|
"react-range": "^1.8.14",
|
|
61
65
|
"react-router": "^6.8.1",
|
|
62
66
|
"react-router-dom": "^6.8.1",
|