@stokr/components-library 2.3.67 → 2.3.69
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 +9 -7
- 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/index.js +1 -12
- package/package.json +1 -2
- package/dist/index.js.map +0 -1
- package/dist/index.umd.cjs +0 -10371
- package/dist/index.umd.cjs.map +0 -1
package/dist/analytics/index.js
CHANGED
|
@@ -67,21 +67,23 @@ function initAnalytics() {
|
|
|
67
67
|
let {
|
|
68
68
|
token,
|
|
69
69
|
app,
|
|
70
|
-
requireConsent = false
|
|
70
|
+
requireConsent = false,
|
|
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'
|
|
71
73
|
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
72
74
|
if (initialized) return;
|
|
73
75
|
if (!token) return;
|
|
74
76
|
_mixpanelBrowser.default.init(token, {
|
|
75
|
-
api_host:
|
|
77
|
+
api_host: apiHost,
|
|
76
78
|
autocapture: {
|
|
77
79
|
pageview: 'full-url',
|
|
78
|
-
click:
|
|
79
|
-
dead_click:
|
|
80
|
-
input:
|
|
80
|
+
click: false,
|
|
81
|
+
dead_click: false,
|
|
82
|
+
input: false,
|
|
81
83
|
rage_click: true,
|
|
82
|
-
scroll
|
|
84
|
+
scroll,
|
|
83
85
|
submit: true,
|
|
84
|
-
capture_text_content: false
|
|
86
|
+
capture_text_content: false
|
|
85
87
|
},
|
|
86
88
|
record_sessions_percent: 100,
|
|
87
89
|
record_heatmap_data: true,
|
|
@@ -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, {
|
package/dist/index.js
CHANGED
|
@@ -1169,7 +1169,7 @@ Object.keys(_fixDecimals).forEach(function (key) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
});
|
|
1171
1171
|
});
|
|
1172
|
-
var _analytics = require("./
|
|
1172
|
+
var _analytics = require("./analytics");
|
|
1173
1173
|
Object.keys(_analytics).forEach(function (key) {
|
|
1174
1174
|
if (key === "default" || key === "__esModule") return;
|
|
1175
1175
|
if (key in exports && exports[key] === _analytics[key]) return;
|
|
@@ -1180,17 +1180,6 @@ Object.keys(_analytics).forEach(function (key) {
|
|
|
1180
1180
|
}
|
|
1181
1181
|
});
|
|
1182
1182
|
});
|
|
1183
|
-
var _analytics2 = require("./analytics");
|
|
1184
|
-
Object.keys(_analytics2).forEach(function (key) {
|
|
1185
|
-
if (key === "default" || key === "__esModule") return;
|
|
1186
|
-
if (key in exports && exports[key] === _analytics2[key]) return;
|
|
1187
|
-
Object.defineProperty(exports, key, {
|
|
1188
|
-
enumerable: true,
|
|
1189
|
-
get: function () {
|
|
1190
|
-
return _analytics2[key];
|
|
1191
|
-
}
|
|
1192
|
-
});
|
|
1193
|
-
});
|
|
1194
1183
|
var _formatCurrencyValue = require("./utils/formatCurrencyValue");
|
|
1195
1184
|
Object.keys(_formatCurrencyValue).forEach(function (key) {
|
|
1196
1185
|
if (key === "default" || key === "__esModule") return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokr/components-library",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.69",
|
|
4
4
|
"description": "STOKR - Components Library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"react-day-picker": "^9.11.1",
|
|
59
59
|
"react-device-detect": "^2.2.3",
|
|
60
60
|
"react-dom": "^18.3.1",
|
|
61
|
-
"react-ga4": "^2.1.0",
|
|
62
61
|
"react-helmet": "^6.1.0",
|
|
63
62
|
"react-otp-input": "^3.1.0",
|
|
64
63
|
"react-portal": "^4.2.2",
|