@stokr/components-library 2.3.68 → 2.3.70
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/analytics/index.js +3 -2
- package/dist/components/2FA/EnterCode.js +1 -0
- package/dist/components/ForgotPasswordModal/ForgotPasswordModal.js +1 -0
- package/dist/components/LoginModal/LoginModal.js +1 -0
- package/dist/components/RegisterLiquidSteps/flow.js +1 -0
- package/dist/components/RegisterLiquidSteps/register-liquid.js +1 -0
- package/dist/components/RegisterModal/RegisterModal.js +2 -1
- package/dist/components/ResetPasswordModal/ResetPasswordModal.js +1 -0
- package/dist/components/VerifyEmailModal/VerifyEmailModal.js +1 -0
- package/dist/components/taxId/register-taxid.js +1 -0
- package/dist/hooks/useNewVentureForm.js +1 -0
- package/dist/static/images/eth_logo.svg +9 -0
- package/dist/utils/formatCurrencyValue.js +7 -2
- package/package.json +1 -1
package/dist/analytics/index.js
CHANGED
|
@@ -68,12 +68,13 @@ function initAnalytics() {
|
|
|
68
68
|
token,
|
|
69
69
|
app,
|
|
70
70
|
requireConsent = false,
|
|
71
|
-
scroll = true
|
|
71
|
+
scroll = true,
|
|
72
|
+
apiHost = process.env.REACT_APP_WEBSITE_DOMAIN ? "https://analytics.".concat(process.env.REACT_APP_WEBSITE_DOMAIN) : 'https://api-eu.mixpanel.com'
|
|
72
73
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
73
74
|
if (initialized) return;
|
|
74
75
|
if (!token) return;
|
|
75
76
|
_mixpanelBrowser.default.init(token, {
|
|
76
|
-
api_host:
|
|
77
|
+
api_host: apiHost,
|
|
77
78
|
autocapture: {
|
|
78
79
|
pageview: 'full-url',
|
|
79
80
|
click: false,
|
|
@@ -76,6 +76,7 @@ const EnterCode = props => {
|
|
|
76
76
|
noPaddingHorizontal: true
|
|
77
77
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
78
78
|
type: "submit",
|
|
79
|
+
id: "2fa-enter-code-btn",
|
|
79
80
|
fluid: true,
|
|
80
81
|
disabled: submitDisabled
|
|
81
82
|
}, "Continue")), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
@@ -102,6 +102,7 @@ class ForgotPasswordModal extends _react.PureComponent {
|
|
|
102
102
|
noPaddingHorizontal: true
|
|
103
103
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
104
104
|
type: "submit",
|
|
105
|
+
id: "forgot-password-submit-btn",
|
|
105
106
|
fluid: true,
|
|
106
107
|
disabled: submitDisabled
|
|
107
108
|
}, isActionLoading === 'forgot' ? 'Sending Reset Link' : 'Send Reset Link')), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
@@ -119,6 +119,7 @@ const LoginModal = props => {
|
|
|
119
119
|
noPaddingHorizontal: true
|
|
120
120
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
121
121
|
type: "submit",
|
|
122
|
+
id: "login-submit-btn",
|
|
122
123
|
fluid: true,
|
|
123
124
|
disabled: submitDisabled
|
|
124
125
|
}, isActionLoading === 'login' ? 'Logging in' : 'Login')), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
@@ -130,6 +130,7 @@ const RegisterLiquidModal = _ref => {
|
|
|
130
130
|
center: true
|
|
131
131
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
132
132
|
type: "submit",
|
|
133
|
+
id: "register-liquid-flow-btn",
|
|
133
134
|
disabled: submitDisabled || isUpdatingUser,
|
|
134
135
|
minWidth: "230px"
|
|
135
136
|
}, "Register")));
|
|
@@ -149,6 +149,7 @@ const RegisterLiquid = _ref => {
|
|
|
149
149
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
150
150
|
minWidth: "230px",
|
|
151
151
|
type: "submit",
|
|
152
|
+
id: "register-liquid-submit-btn",
|
|
152
153
|
disabled: submitDisabled || isUpdatingUser || liquid_network.GAID
|
|
153
154
|
}, "REGISTER")));
|
|
154
155
|
})), (isUpdatingUser || error) && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
@@ -264,7 +264,8 @@ const RegisterModal = props => {
|
|
|
264
264
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
265
265
|
type: "submit",
|
|
266
266
|
fluid: true,
|
|
267
|
-
disabled: submitDisabled
|
|
267
|
+
disabled: submitDisabled,
|
|
268
|
+
id: "signup-button"
|
|
268
269
|
}, isActionLoading === 'signUp' ? 'Creating account' : 'Create account')), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
269
270
|
paddingVeticalHalf: true,
|
|
270
271
|
noPaddingHorizontal: true
|
|
@@ -126,6 +126,7 @@ const ResetPasswordModal = _ref => {
|
|
|
126
126
|
noPaddingHorizontal: true
|
|
127
127
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
128
128
|
type: "submit",
|
|
129
|
+
id: "reset-password-submit-btn",
|
|
129
130
|
fluid: true,
|
|
130
131
|
disabled: submitDisabled
|
|
131
132
|
}, isActionLoading === 'resetPassword' ? 'Resetting' : 'Reset')), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
@@ -134,6 +134,7 @@ const RenderErrorModal = props => {
|
|
|
134
134
|
noPaddingHorizontal: true
|
|
135
135
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
136
136
|
type: "submit",
|
|
137
|
+
id: "verify-email-submit-btn",
|
|
137
138
|
disabled: submitDisabled
|
|
138
139
|
}, isActionLoading === 'resend' ? 'Resending email' : 'Resend email')), /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
139
140
|
paddingVeticalHalf: true,
|
|
@@ -124,6 +124,7 @@ const RegisterTaxId = _ref => {
|
|
|
124
124
|
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
125
125
|
minWidth: "230px",
|
|
126
126
|
type: "submit",
|
|
127
|
+
id: "tax-id-submit-btn",
|
|
127
128
|
disabled: submitDisabled || isUpdatingUser || taxId
|
|
128
129
|
}, "Submit")));
|
|
129
130
|
})), (isUpdatingUser || error) && /*#__PURE__*/_react.default.createElement(_ComponentWrapper.default, {
|
|
@@ -179,6 +179,7 @@ const useNewVentureForm = _ref => {
|
|
|
179
179
|
const updatedUser = updateUserSubscription(user, project, updates);
|
|
180
180
|
setUser(updatedUser);
|
|
181
181
|
setFormValues(prev => _objectSpread(_objectSpread({}, prev), {}, {
|
|
182
|
+
email: values.email,
|
|
182
183
|
successMessage: customSuccessMessage ? customSuccessMessage : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, "Please continue onboarding, an account manager will reach out to you.", /*#__PURE__*/_react.default.createElement("br", null), "If you are an existing account holder, kindly log in and make sure your account is fully verified."),
|
|
183
184
|
errorMessage: null,
|
|
184
185
|
isSubmitting: false
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" id="Eth--Streamline-Cryptocurrency-Black" height="16" width="16">
|
|
2
|
+
<desc>
|
|
3
|
+
Eth Streamline Icon: https://streamlinehq.com
|
|
4
|
+
</desc>
|
|
5
|
+
<path fill="#000000" fill-rule="evenodd" d="M8 15.840000000000002C3.6698666666666666 15.840000000000002 0.16 12.330133333333334 0.16 8S3.6698666666666666 0.16 8 0.16 15.840000000000002 3.6698666666666666 15.840000000000002 8 12.330133333333334 15.840000000000002 8 15.840000000000002Zm3.9170424242424247 -7.732703030303031L8.244024242424242 2.1199999999999997 4.569987878787878 8.107781818181818l3.6740363636363638 2.1329939393939394 3.6730181818181817 -2.1334787878787878Zm0.002957575757575758 0.6845575757575757 -3.6759757575757575 2.1319757575757574 -3.6740363636363638 -2.131490909090909 3.6740363636363638 5.085236363636364 3.6759757575757575 -5.0857212121212125Z" clip-rule="evenodd" stroke-width="0.4848"></path>
|
|
6
|
+
<path fill="#000000" fill-opacity=".298" d="M8.244024242424242 2.1199999999999997v4.346278787878788l3.6735030303030305 1.6415030303030305 -3.6735030303030305 -5.987781818181818Zm0 8.804315151515151v2.953260606060606l3.6759757575757575 -5.0857212121212125 -3.6759757575757575 2.132460606060606Z" stroke-width="0.4848"></path>
|
|
7
|
+
<path fill="#000000" fill-opacity=".801" d="m8.244024242424242 10.240824242424242 3.6735030303030305 -2.1329939393939394 -3.6735030303030305 -1.6404848484848487v3.773478787878788Z" stroke-width="0.4848"></path>
|
|
8
|
+
<path fill="#000000" fill-opacity=".298" d="m4.569987878787878 8.107830303030303 3.6740363636363638 2.1329939393939394v-3.773478787878788l-3.6740363636363638 1.6404848484848487Z" stroke-width="0.4848"></path>
|
|
9
|
+
</svg>
|
|
@@ -8,6 +8,7 @@ var _usdcLogo = _interopRequireDefault(require("../static/images/usdc-logo.svg")
|
|
|
8
8
|
var _usdqLogo = _interopRequireDefault(require("../static/images/usdq-logo.png"));
|
|
9
9
|
var _bitcoinLogo = _interopRequireDefault(require("../static/images/bitcoin-logo.svg"));
|
|
10
10
|
var _bmn2Logo = _interopRequireDefault(require("../static/images/bmn2-logo.svg"));
|
|
11
|
+
var _eth_logo = _interopRequireDefault(require("../static/images/eth_logo.svg"));
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
13
|
const formatCurrencyValue = function (currency, value) {
|
|
13
14
|
let tokenDecimals = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 2;
|
|
@@ -36,7 +37,7 @@ const formatCurrencyValue = function (currency, value) {
|
|
|
36
37
|
'btc-fb': ['BTC', 8],
|
|
37
38
|
'usdc-fb': ['USDC', 2],
|
|
38
39
|
'usdq-fb': ['USDQ', 2],
|
|
39
|
-
|
|
40
|
+
xaut: ['XAUt', 6]
|
|
40
41
|
}[currency] || [currency, tokenDecimals];
|
|
41
42
|
const formattedValue = parseFloat(Math.abs(value)).toFixed(decimals);
|
|
42
43
|
return valueFirst ? "".concat(formattedValue, " ").concat(symbol) : "".concat(symbol, " ").concat(formattedValue);
|
|
@@ -59,7 +60,8 @@ const getCurrencySymbol = currencySelected => ({
|
|
|
59
60
|
'btc-fb': 'BTC',
|
|
60
61
|
'usdc-fb': 'USDC',
|
|
61
62
|
'usdq-fb': 'USDQ',
|
|
62
|
-
|
|
63
|
+
xaut: 'XAUt',
|
|
64
|
+
'eth-fb': 'ETH'
|
|
63
65
|
})[currencySelected] || currencySelected;
|
|
64
66
|
exports.getCurrencySymbol = getCurrencySymbol;
|
|
65
67
|
const getProjectCurrencySign = tokenCurrency => {
|
|
@@ -82,6 +84,9 @@ const getCurrencyIcon = (currency, customIcon) => {
|
|
|
82
84
|
return _usdqLogo.default;
|
|
83
85
|
case 'bmn2':
|
|
84
86
|
return _bmn2Logo.default;
|
|
87
|
+
case 'eth':
|
|
88
|
+
case 'eth-fb':
|
|
89
|
+
return _eth_logo.default;
|
|
85
90
|
default:
|
|
86
91
|
return null;
|
|
87
92
|
}
|