@stokr/components-library 2.3.68 → 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.
@@ -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: 'https://api-eu.mixpanel.com',
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokr/components-library",
3
- "version": "2.3.68",
3
+ "version": "2.3.69",
4
4
  "description": "STOKR - Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",