summit-registration-lite 4.0.19 → 4.0.20
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/README.md +0 -2
- package/dist/index.js +18 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,8 +78,6 @@ React component for the summit registration lite widget
|
|
|
78
78
|
|
|
79
79
|
**showCompanyInput** = booleaen to show/hide the "Company" field. Defaults to true.
|
|
80
80
|
|
|
81
|
-
**companyInputPlaceholder**= string for the set the placeholder of the free text company input
|
|
82
|
-
|
|
83
81
|
**companyDDLPlaceholder** = string for the set the placeholder of the DDL company input
|
|
84
82
|
|
|
85
83
|
## PUBLISH TO NPM:
|
package/dist/index.js
CHANGED
|
@@ -2142,7 +2142,6 @@ const PersonalInfoComponent = ({
|
|
|
2142
2142
|
showMultipleTicketTexts,
|
|
2143
2143
|
allowPromoCodes,
|
|
2144
2144
|
showCompanyInput = true,
|
|
2145
|
-
companyInputPlaceholder,
|
|
2146
2145
|
companyDDLPlaceholder
|
|
2147
2146
|
}) => {
|
|
2148
2147
|
var _errors$email, _errors$email2;
|
|
@@ -2983,7 +2982,7 @@ const TicketTaxesError = ({
|
|
|
2983
2982
|
|
|
2984
2983
|
/* harmony default export */ const ticket_taxes_error = (TicketTaxesError);
|
|
2985
2984
|
;// CONCATENATED MODULE: ./src/components/registration-lite.js
|
|
2986
|
-
const registration_lite_excluded = ["loadSession", "setMarketingSettings", "changeStep", "removeReservedTicket", "reserveTicket", "payTicketWithProvider", "onPurchaseComplete", "getTicketTypesAndTaxes", "getLoginCode", "passwordlessLogin", "goToLogin", "loginOptions", "allowsNativeAuth", "allowsOtpAuth", "reservation", "checkout", "ticketTypes", "taxTypes", "step", "passwordlessCodeSent", "passwordlessEmail", "passwordlessCode", "getPasswordlessCode", "passwordlessCodeError", "loginWithCode", "goToExtraQuestions", "goToMyOrders", "goToEvent", "profileData", "summitData", "supportEmail", "ticketOwned", "ownedTickets", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError", "stripeOptions", "invitation", "loginInitialEmailInputValue", "getMyInvitation", "showMultipleTicketTexts", "noAllowedTicketsMessage", "ticketTaxesErrorMessage", "authErrorCallback", "clearWidgetState", "requestedTicketTypes", "allowPromoCodes", "showCompanyInput", "
|
|
2985
|
+
const registration_lite_excluded = ["loadSession", "setMarketingSettings", "changeStep", "removeReservedTicket", "reserveTicket", "payTicketWithProvider", "onPurchaseComplete", "getTicketTypesAndTaxes", "getLoginCode", "passwordlessLogin", "goToLogin", "loginOptions", "allowsNativeAuth", "allowsOtpAuth", "reservation", "checkout", "ticketTypes", "taxTypes", "step", "passwordlessCodeSent", "passwordlessEmail", "passwordlessCode", "getPasswordlessCode", "passwordlessCodeError", "loginWithCode", "goToExtraQuestions", "goToMyOrders", "goToEvent", "profileData", "summitData", "supportEmail", "ticketOwned", "ownedTickets", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError", "stripeOptions", "invitation", "loginInitialEmailInputValue", "getMyInvitation", "showMultipleTicketTexts", "noAllowedTicketsMessage", "ticketTaxesErrorMessage", "authErrorCallback", "clearWidgetState", "requestedTicketTypes", "allowPromoCodes", "showCompanyInput", "companyDDLPlaceholder", "nowUtc", "updateClock", "completedExtraQuestions", "loadProfileData", "closeWidget", "hasVirtualAccessLevel"];
|
|
2987
2986
|
|
|
2988
2987
|
function registration_lite_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2989
2988
|
|
|
@@ -3100,7 +3099,6 @@ const RegistrationLite = _ref => {
|
|
|
3100
3099
|
requestedTicketTypes,
|
|
3101
3100
|
allowPromoCodes,
|
|
3102
3101
|
showCompanyInput,
|
|
3103
|
-
companyInputPlaceholder,
|
|
3104
3102
|
companyDDLPlaceholder,
|
|
3105
3103
|
nowUtc,
|
|
3106
3104
|
updateClock,
|
|
@@ -3184,9 +3182,23 @@ const RegistrationLite = _ref => {
|
|
|
3184
3182
|
const handleCloseClick = () => {
|
|
3185
3183
|
// Reset the step when closed to avoid unexpected behavior from `useEffect`s w/in other steps.
|
|
3186
3184
|
// (i.e., recalling `onPurchaseComplete` after a user completes one order, closes the window, and then reopens the registration widget)
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3185
|
+
const closeAndClearState = () => {
|
|
3186
|
+
changeStep(0);
|
|
3187
|
+
clearWidgetState();
|
|
3188
|
+
|
|
3189
|
+
if (closeWidget) {
|
|
3190
|
+
closeWidget();
|
|
3191
|
+
}
|
|
3192
|
+
}; // if there's a reservation on the state, delete it before close the widget
|
|
3193
|
+
|
|
3194
|
+
|
|
3195
|
+
if (reservation) {
|
|
3196
|
+
removeReservedTicket().finally(() => {
|
|
3197
|
+
closeAndClearState();
|
|
3198
|
+
});
|
|
3199
|
+
} else {
|
|
3200
|
+
closeAndClearState();
|
|
3201
|
+
}
|
|
3190
3202
|
};
|
|
3191
3203
|
|
|
3192
3204
|
const handleGetTicketTypesAndTaxes = summitId => {
|
|
@@ -3306,7 +3318,6 @@ const RegistrationLite = _ref => {
|
|
|
3306
3318
|
showMultipleTicketTexts: showMultipleTicketTexts,
|
|
3307
3319
|
allowPromoCodes: allowPromoCodes,
|
|
3308
3320
|
showCompanyInput: showCompanyInput,
|
|
3309
|
-
companyInputPlaceholder: companyInputPlaceholder,
|
|
3310
3321
|
companyDDLPlaceholder: companyDDLPlaceholder
|
|
3311
3322
|
}), /*#__PURE__*/external_react_default().createElement(external_react_spring_namespaceObject.animated.div, {
|
|
3312
3323
|
style: registration_lite_objectSpread({}, toggleAnimation)
|
|
@@ -3376,7 +3387,6 @@ RegistrationLite.defaultProps = {
|
|
|
3376
3387
|
noAllowedTicketsMessage: '<span>You already have purchased all available tickets for this event and/or there are no tickets available for you to purchase.</span><br/><span><a href="/a/my-tickets">Visit the my orders / my tickets page</a> to review your existing tickets.</span>',
|
|
3377
3388
|
ticketTaxesErrorMessage: '<span>There was an error getting the information for the tickets. Please try it again.</span>',
|
|
3378
3389
|
allowPromoCodes: true,
|
|
3379
|
-
companyInputPlaceholder: 'Enter your company',
|
|
3380
3390
|
companyDDLPlaceholder: 'Select a company',
|
|
3381
3391
|
authErrorCallback: error => {
|
|
3382
3392
|
console.log(error);
|