summit-registration-lite 3.0.26 → 3.0.27
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 +6 -0
- package/dist/index.js +20 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -58,6 +58,12 @@ React component for the summit registration lite widget
|
|
|
58
58
|
|
|
59
59
|
**authErrorCallback** = method passed that will handle on client any auth error
|
|
60
60
|
|
|
61
|
+
**allowPromoCodes** = boolean to show/hide promo code field. Default at true
|
|
62
|
+
|
|
63
|
+
**companyInputPlaceholder**= string for the set the placeholder of the free text company input
|
|
64
|
+
|
|
65
|
+
**companyDDLPlaceholder** = string for the set the placeholder of the DDL company input
|
|
66
|
+
|
|
61
67
|
## PUBLISH TO NPM:
|
|
62
68
|
|
|
63
69
|
1 - yarn build && yarn publish
|
package/dist/index.js
CHANGED
|
@@ -1863,7 +1863,10 @@ const PersonalInfoComponent = ({
|
|
|
1863
1863
|
formValues,
|
|
1864
1864
|
formErrors,
|
|
1865
1865
|
invitation,
|
|
1866
|
-
showMultipleTicketTexts
|
|
1866
|
+
showMultipleTicketTexts,
|
|
1867
|
+
allowPromoCodes,
|
|
1868
|
+
companyInputPlaceholder,
|
|
1869
|
+
companyDDLPlaceholder
|
|
1867
1870
|
}) => {
|
|
1868
1871
|
var _errors$email, _errors$email2;
|
|
1869
1872
|
|
|
@@ -2022,11 +2025,13 @@ const PersonalInfoComponent = ({
|
|
|
2022
2025
|
summitId: summitId,
|
|
2023
2026
|
onChange: onCompanyChange,
|
|
2024
2027
|
onError: handleCompanyError,
|
|
2025
|
-
value: personalInfo.company
|
|
2028
|
+
value: personalInfo.company,
|
|
2029
|
+
inputPlaceholder: companyInputPlaceholder,
|
|
2030
|
+
DDLPlaceholder: companyDDLPlaceholder
|
|
2026
2031
|
}), companyError && /*#__PURE__*/external_react_default().createElement("div", {
|
|
2027
2032
|
className: personal_information_index_module.fieldError,
|
|
2028
2033
|
"data-testid": "company-error"
|
|
2029
|
-
}, "This field is required."))), /*#__PURE__*/external_react_default().createElement("div", {
|
|
2034
|
+
}, "This field is required."))), allowPromoCodes && /*#__PURE__*/external_react_default().createElement("div", {
|
|
2030
2035
|
className: personal_information_index_module.fieldWrapper
|
|
2031
2036
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
2032
2037
|
className: personal_information_index_module.inputWrapper
|
|
@@ -2707,7 +2712,7 @@ const TicketTaxesError = ({
|
|
|
2707
2712
|
|
|
2708
2713
|
/* harmony default export */ const ticket_taxes_error = (TicketTaxesError);
|
|
2709
2714
|
;// CONCATENATED MODULE: ./src/components/registration-lite.js
|
|
2710
|
-
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", "goToEvent", "goToRegistration", "profileData", "summitData", "supportEmail", "ticketOwned", "ownedTickets", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError", "stripeOptions", "invitation", "loginInitialEmailInputValue", "getMyInvitation", "showMultipleTicketTexts", "noAllowedTicketsMessage", "ticketTaxesErrorMessage", "authErrorCallback", "clearWidgetState", "requestedTicketTypes"];
|
|
2715
|
+
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", "goToEvent", "goToRegistration", "profileData", "summitData", "supportEmail", "ticketOwned", "ownedTickets", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError", "stripeOptions", "invitation", "loginInitialEmailInputValue", "getMyInvitation", "showMultipleTicketTexts", "noAllowedTicketsMessage", "ticketTaxesErrorMessage", "authErrorCallback", "clearWidgetState", "requestedTicketTypes", "allowPromoCodes", "companyInputPlaceholder", "companyDDLPlaceholder"];
|
|
2711
2716
|
|
|
2712
2717
|
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; }
|
|
2713
2718
|
|
|
@@ -2804,7 +2809,10 @@ const RegistrationLite = _ref => {
|
|
|
2804
2809
|
ticketTaxesErrorMessage,
|
|
2805
2810
|
authErrorCallback,
|
|
2806
2811
|
clearWidgetState,
|
|
2807
|
-
requestedTicketTypes
|
|
2812
|
+
requestedTicketTypes,
|
|
2813
|
+
allowPromoCodes,
|
|
2814
|
+
companyInputPlaceholder,
|
|
2815
|
+
companyDDLPlaceholder
|
|
2808
2816
|
} = _ref,
|
|
2809
2817
|
rest = registration_lite_objectWithoutProperties(_ref, registration_lite_excluded);
|
|
2810
2818
|
|
|
@@ -2990,7 +2998,10 @@ const RegistrationLite = _ref => {
|
|
|
2990
2998
|
handleCompanyError: handleCompanyError,
|
|
2991
2999
|
formValues: formValues,
|
|
2992
3000
|
formErrors: formErrors,
|
|
2993
|
-
showMultipleTicketTexts: showMultipleTicketTexts
|
|
3001
|
+
showMultipleTicketTexts: showMultipleTicketTexts,
|
|
3002
|
+
allowPromoCodes: allowPromoCodes,
|
|
3003
|
+
companyInputPlaceholder: companyInputPlaceholder,
|
|
3004
|
+
companyDDLPlaceholder: companyDDLPlaceholder
|
|
2994
3005
|
}), /*#__PURE__*/external_react_default().createElement(external_react_spring_namespaceObject.animated.div, {
|
|
2995
3006
|
style: registration_lite_objectSpread({}, toggleAnimation)
|
|
2996
3007
|
}, /*#__PURE__*/external_react_default().createElement("div", {
|
|
@@ -3043,6 +3054,9 @@ RegistrationLite.defaultProps = {
|
|
|
3043
3054
|
showMultipleTicketTexts: true,
|
|
3044
3055
|
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>',
|
|
3045
3056
|
ticketTaxesErrorMessage: '<span>There was an error getting the information for the tickets. Please try it again.</span>',
|
|
3057
|
+
allowPromoCodes: true,
|
|
3058
|
+
companyInputPlaceholder: 'Enter your company',
|
|
3059
|
+
companyDDLPlaceholder: 'Select a company',
|
|
3046
3060
|
authErrorCallback: error => {
|
|
3047
3061
|
console.log(error);
|
|
3048
3062
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "summit-registration-lite",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.27",
|
|
4
4
|
"description": "Summit Registration Lite",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"moment": "^2.22.2",
|
|
61
61
|
"moment-timezone": "^0.5.21",
|
|
62
62
|
"node-sass": "^7.0.1",
|
|
63
|
-
"openstack-uicore-foundation": "^4.0.
|
|
63
|
+
"openstack-uicore-foundation": "^4.0.80",
|
|
64
64
|
"optimize-css-assets-webpack-plugin": "^6.0.1",
|
|
65
65
|
"path": "^0.12.7",
|
|
66
66
|
"react": "^16.8.4",
|