summit-registration-lite 5.0.5 → 5.0.6
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
|
@@ -75,8 +75,6 @@ React component for the summit registration lite widget
|
|
|
75
75
|
|
|
76
76
|
**showCompanyInput** = booleaen to show/hide the "Company" field. Defaults to true.
|
|
77
77
|
|
|
78
|
-
**companyInputPlaceholder**= string for the set the placeholder of the free text company input
|
|
79
|
-
|
|
80
78
|
**companyDDLPlaceholder** = string for the set the placeholder of the DDL company input
|
|
81
79
|
|
|
82
80
|
**logoDark** = string for custom src for dark theme logo on otp login
|
package/dist/index.js
CHANGED
|
@@ -2170,7 +2170,6 @@ const PersonalInfoComponent = ({
|
|
|
2170
2170
|
showMultipleTicketTexts,
|
|
2171
2171
|
allowPromoCodes,
|
|
2172
2172
|
showCompanyInput = true,
|
|
2173
|
-
companyInputPlaceholder,
|
|
2174
2173
|
companyDDLPlaceholder
|
|
2175
2174
|
}) => {
|
|
2176
2175
|
const [personalInfo, setPersonalInfo] = (0,external_react_.useState)({
|
|
@@ -2985,7 +2984,7 @@ const TicketTaxesError = ({
|
|
|
2985
2984
|
|
|
2986
2985
|
/* harmony default export */ const ticket_taxes_error = (TicketTaxesError);
|
|
2987
2986
|
;// CONCATENATED MODULE: ./src/components/registration-lite.js
|
|
2988
|
-
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", "
|
|
2987
|
+
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", "logoLight", "logoDark"];
|
|
2989
2988
|
|
|
2990
2989
|
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; }
|
|
2991
2990
|
|
|
@@ -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);
|