@openeventkit/event-site 2.1.2 → 2.1.3
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openeventkit/event-site",
|
|
3
3
|
"description": "Event Site",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.3",
|
|
5
5
|
"author": "Tipit LLC",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@emotion/server": "^11.11.0",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"stream-browserify": "^3.0.0",
|
|
135
135
|
"stream-chat": "^2.7.2",
|
|
136
136
|
"stream-chat-react": "3.1.7",
|
|
137
|
-
"summit-registration-lite": "
|
|
137
|
+
"summit-registration-lite": "6.0.0",
|
|
138
138
|
"superagent": "8.0.9",
|
|
139
139
|
"sweetalert2": "^11.11.1",
|
|
140
140
|
"upcoming-events-widget": "3.0.7",
|
|
@@ -5,7 +5,7 @@ import { navigate, withPrefix } from "gatsby";
|
|
|
5
5
|
import { connect } from "react-redux";
|
|
6
6
|
import URI from "urijs";
|
|
7
7
|
import Swal from "sweetalert2";
|
|
8
|
-
|
|
8
|
+
import {ERROR_TYPE_ERROR, ERROR_TYPE_VALIDATION, ERROR_TYPE_PAYMENT} from "summit-registration-lite/dist/utils/constants";
|
|
9
9
|
import FragmentParser from "openstack-uicore-foundation/lib/utils/fragment-parser";
|
|
10
10
|
import { doLogin, passwordlessStart, getAccessToken } from "openstack-uicore-foundation/lib/security/methods"
|
|
11
11
|
import { doLogout } from "openstack-uicore-foundation/lib/security/actions"
|
|
@@ -115,6 +115,9 @@ const RegistrationLiteComponent = ({
|
|
|
115
115
|
return setPasswordlessLogin(params);
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
+
const handleOnError = (e) => {
|
|
119
|
+
}
|
|
120
|
+
|
|
118
121
|
const { getSettingByKey } = useMarketingSettings();
|
|
119
122
|
|
|
120
123
|
const inPersonDisclaimer = getSettingByKey(MARKETING_SETTINGS_KEYS.registrationInPersonDisclaimer);
|
|
@@ -176,7 +179,7 @@ const RegistrationLiteComponent = ({
|
|
|
176
179
|
handleCompanyError: () => handleCompanyError,
|
|
177
180
|
allowsNativeAuth: allowsNativeAuth,
|
|
178
181
|
allowsOtpAuth: allowsOtpAuth,
|
|
179
|
-
|
|
182
|
+
providerOptions: {
|
|
180
183
|
fonts: [{ cssSrc: withPrefix("/fonts/fonts.css") }],
|
|
181
184
|
style: { base: { fontFamily: `"Nunito Sans", sans-serif`, fontWeight: 300 } }
|
|
182
185
|
},
|
|
@@ -206,7 +209,9 @@ const RegistrationLiteComponent = ({
|
|
|
206
209
|
idpLogoLight: siteSettings?.idpLogo?.idpLogoLight?.publicURL,
|
|
207
210
|
idpLogoDark: siteSettings?.idpLogo?.idpLogoDark?.publicURL,
|
|
208
211
|
idpLogoAlt: siteSettings?.idpLogo?.idpLogoAlt,
|
|
209
|
-
hidePostalCode: paymentSettings?.hidePostalCode
|
|
212
|
+
hidePostalCode: paymentSettings?.hidePostalCode,
|
|
213
|
+
successfulPaymentReturnUrl: `${window.location.origin}/a/my-tickets/`,
|
|
214
|
+
onError: handleOnError,
|
|
210
215
|
};
|
|
211
216
|
|
|
212
217
|
const { registerButton } = marketingPageSettings.hero.buttons;
|