summit-registration-lite 1.0.79 → 1.0.82
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/.nvmrc +1 -0
- package/README.md +4 -0
- package/dist/index.css +4 -1
- package/dist/index.js +55 -22
- package/package.json +4 -3
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
12.22.9
|
package/README.md
CHANGED
|
@@ -14,6 +14,10 @@ React component for the summit registration lite widget
|
|
|
14
14
|
|
|
15
15
|
**supportEmail** = string with the email address for support
|
|
16
16
|
|
|
17
|
+
**allowsNativeAuth** = boolean to show/hide native auth
|
|
18
|
+
|
|
19
|
+
**allowsOtpAuth** = boolean to show/hide OTP auth
|
|
20
|
+
|
|
17
21
|
**loginOptions** = array with the options to show on the login screen
|
|
18
22
|
|
|
19
23
|
**loading** = boolean to show/hide a loader on the widget
|
package/dist/index.css
CHANGED
|
@@ -75,7 +75,10 @@ input {
|
|
|
75
75
|
background-position: 28px center;
|
|
76
76
|
background-repeat: no-repeat;
|
|
77
77
|
background-size: 16px;
|
|
78
|
-
line-height: 1.4;
|
|
78
|
+
line-height: 1.4;
|
|
79
|
+
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); }
|
|
80
|
+
.button___XnwyV:hover {
|
|
81
|
+
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); }
|
|
79
82
|
|
|
80
83
|
.loginCode___1tdoI {
|
|
81
84
|
margin-bottom: 10px;
|
package/dist/index.js
CHANGED
|
@@ -148,42 +148,42 @@ module.exports = require("@stripe/react-stripe-js");
|
|
|
148
148
|
|
|
149
149
|
/***/ }),
|
|
150
150
|
/* 8 */
|
|
151
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
152
|
+
|
|
153
|
+
// extracted by mini-css-extract-plugin
|
|
154
|
+
module.exports = {"loginWrapper":"loginWrapper___29UY5","innerWrapper":"innerWrapper___3ls8s","button":"button___XnwyV","loginCode":"loginCode___1tdoI","input":"input___2qKqP"};
|
|
155
|
+
|
|
156
|
+
/***/ }),
|
|
157
|
+
/* 9 */
|
|
151
158
|
/***/ (function(module, exports) {
|
|
152
159
|
|
|
153
160
|
module.exports = require("react-use");
|
|
154
161
|
|
|
155
162
|
/***/ }),
|
|
156
|
-
/*
|
|
163
|
+
/* 10 */
|
|
157
164
|
/***/ (function(module, exports, __webpack_require__) {
|
|
158
165
|
|
|
159
166
|
// extracted by mini-css-extract-plugin
|
|
160
167
|
module.exports = {"title":"title___3ZHGA","form":"form___3v5vW","readOnly":"readOnly___GTMgw","companies":"companies___EjHEl"};
|
|
161
168
|
|
|
162
169
|
/***/ }),
|
|
163
|
-
/*
|
|
170
|
+
/* 11 */
|
|
164
171
|
/***/ (function(module, exports) {
|
|
165
172
|
|
|
166
173
|
module.exports = require("react-redux");
|
|
167
174
|
|
|
168
175
|
/***/ }),
|
|
169
|
-
/*
|
|
176
|
+
/* 12 */
|
|
170
177
|
/***/ (function(module, exports) {
|
|
171
178
|
|
|
172
179
|
module.exports = require("openstack-uicore-foundation/lib/components");
|
|
173
180
|
|
|
174
|
-
/***/ }),
|
|
175
|
-
/* 12 */
|
|
176
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
177
|
-
|
|
178
|
-
// extracted by mini-css-extract-plugin
|
|
179
|
-
module.exports = {"outerWrapper":"outerWrapper___Ctsl4","innerWrapper":"innerWrapper___HgUWp","title":"title___2V7rZ"};
|
|
180
|
-
|
|
181
181
|
/***/ }),
|
|
182
182
|
/* 13 */
|
|
183
183
|
/***/ (function(module, exports, __webpack_require__) {
|
|
184
184
|
|
|
185
185
|
// extracted by mini-css-extract-plugin
|
|
186
|
-
module.exports = {"
|
|
186
|
+
module.exports = {"outerWrapper":"outerWrapper___Ctsl4","innerWrapper":"innerWrapper___HgUWp","title":"title___2V7rZ"};
|
|
187
187
|
|
|
188
188
|
/***/ }),
|
|
189
189
|
/* 14 */
|
|
@@ -292,7 +292,7 @@ var external_react_ = __webpack_require__(0);
|
|
|
292
292
|
var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
|
|
293
293
|
|
|
294
294
|
// EXTERNAL MODULE: external "react-redux"
|
|
295
|
-
var external_react_redux_ = __webpack_require__(
|
|
295
|
+
var external_react_redux_ = __webpack_require__(11);
|
|
296
296
|
|
|
297
297
|
// EXTERNAL MODULE: external "redux"
|
|
298
298
|
var external_redux_ = __webpack_require__(18);
|
|
@@ -873,23 +873,23 @@ var react_ = __webpack_require__(24);
|
|
|
873
873
|
var external_react_spring_ = __webpack_require__(2);
|
|
874
874
|
|
|
875
875
|
// EXTERNAL MODULE: external "react-use"
|
|
876
|
-
var external_react_use_ = __webpack_require__(
|
|
876
|
+
var external_react_use_ = __webpack_require__(9);
|
|
877
877
|
|
|
878
878
|
// EXTERNAL MODULE: external "openstack-uicore-foundation/lib/components"
|
|
879
|
-
var components_ = __webpack_require__(
|
|
879
|
+
var components_ = __webpack_require__(12);
|
|
880
880
|
|
|
881
881
|
// EXTERNAL MODULE: external "@stripe/stripe-js"
|
|
882
882
|
var stripe_js_ = __webpack_require__(25);
|
|
883
883
|
|
|
884
884
|
// EXTERNAL MODULE: ./src/styles/general.module.scss
|
|
885
|
-
var general_module = __webpack_require__(
|
|
885
|
+
var general_module = __webpack_require__(13);
|
|
886
886
|
var general_module_default = /*#__PURE__*/__webpack_require__.n(general_module);
|
|
887
887
|
|
|
888
888
|
// EXTERNAL MODULE: ./src/styles/styles.scss
|
|
889
889
|
var styles = __webpack_require__(28);
|
|
890
890
|
|
|
891
891
|
// EXTERNAL MODULE: ./src/components/login/index.module.scss
|
|
892
|
-
var index_module = __webpack_require__(
|
|
892
|
+
var index_module = __webpack_require__(8);
|
|
893
893
|
var index_module_default = /*#__PURE__*/__webpack_require__.n(index_module);
|
|
894
894
|
|
|
895
895
|
// CONCATENATED MODULE: ./src/components/login/index.js
|
|
@@ -911,6 +911,8 @@ var index_module_default = /*#__PURE__*/__webpack_require__.n(index_module);
|
|
|
911
911
|
const LoginComponent = ({
|
|
912
912
|
options,
|
|
913
913
|
login,
|
|
914
|
+
allowsNativeAuth,
|
|
915
|
+
allowsOtpAuthlogin,
|
|
914
916
|
getLoginCode,
|
|
915
917
|
getPasswordlessCode
|
|
916
918
|
}) => {
|
|
@@ -951,9 +953,9 @@ const LoginComponent = ({
|
|
|
951
953
|
}, ">"), /*#__PURE__*/external_react_default.a.createElement("br", null)), emailError && /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
952
954
|
"data-testid": "email-error"
|
|
953
955
|
}, "Please enter a valid email adress")), /*#__PURE__*/external_react_default.a.createElement("span", null, "Or you may signup or login with a social provider:"), options.map((o, index) => {
|
|
954
|
-
return /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
956
|
+
return o.provider_param ? /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
955
957
|
className: `${index_module_default.a.button}`,
|
|
956
|
-
key: `provider-${o.provider_param
|
|
958
|
+
key: `provider-${o.provider_param}`,
|
|
957
959
|
"data-testid": "login-button",
|
|
958
960
|
style: {
|
|
959
961
|
color: o.button_border_color ? o.button_border_color : '#ffffff',
|
|
@@ -963,8 +965,35 @@ const LoginComponent = ({
|
|
|
963
965
|
backgroundSize: o.provider_logo_size ? o.provider_logo_size : ''
|
|
964
966
|
},
|
|
965
967
|
onClick: () => login(o.provider_param)
|
|
966
|
-
}, o.provider_label)
|
|
967
|
-
|
|
968
|
+
}, o.provider_label) : allowsNativeAuth ? /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
969
|
+
className: `${index_module_default.a.button}`,
|
|
970
|
+
key: `provider-fnid`,
|
|
971
|
+
"data-testid": "login-button",
|
|
972
|
+
style: {
|
|
973
|
+
color: o.button_border_color ? o.button_border_color : '#ffffff',
|
|
974
|
+
border: `thin solid ${o.button_border_color ? o.button_border_color : o.button_color}`,
|
|
975
|
+
backgroundColor: o.button_color,
|
|
976
|
+
backgroundImage: o.provider_logo ? `url(${o.provider_logo})` : 'none',
|
|
977
|
+
backgroundSize: o.provider_logo_size ? o.provider_logo_size : ''
|
|
978
|
+
},
|
|
979
|
+
onClick: () => login(o.provider_param)
|
|
980
|
+
}, o.provider_label) : null;
|
|
981
|
+
}), allowsOtpAuthlogin && /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
982
|
+
className: index_module_default.a.loginCode
|
|
983
|
+
}, "or get a login code emailed to you", /*#__PURE__*/external_react_default.a.createElement("div", {
|
|
984
|
+
className: index_module_default.a.input
|
|
985
|
+
}, /*#__PURE__*/external_react_default.a.createElement("input", {
|
|
986
|
+
placeholder: "youremail@example.com",
|
|
987
|
+
value: email,
|
|
988
|
+
onChange: e => setEmail(e.target.value),
|
|
989
|
+
onKeyPress: ev => ev.key === 'Enter' ? loginCode() : null,
|
|
990
|
+
"data-testid": "email-input"
|
|
991
|
+
}), /*#__PURE__*/external_react_default.a.createElement("button", {
|
|
992
|
+
onClick: () => loginCode(),
|
|
993
|
+
"data-testid": "email-button"
|
|
994
|
+
}, ">"), /*#__PURE__*/external_react_default.a.createElement("br", null)), emailError && /*#__PURE__*/external_react_default.a.createElement("span", {
|
|
995
|
+
"data-testid": "email-error"
|
|
996
|
+
}, "Please enter a valid email adress")))));
|
|
968
997
|
};
|
|
969
998
|
|
|
970
999
|
/* harmony default export */ var components_login = (LoginComponent);
|
|
@@ -1189,7 +1218,7 @@ const PaymentComponent = ({
|
|
|
1189
1218
|
var external_react_hook_form_ = __webpack_require__(26);
|
|
1190
1219
|
|
|
1191
1220
|
// EXTERNAL MODULE: ./src/components/personal-information/index.module.scss
|
|
1192
|
-
var personal_information_index_module = __webpack_require__(
|
|
1221
|
+
var personal_information_index_module = __webpack_require__(10);
|
|
1193
1222
|
var personal_information_index_module_default = /*#__PURE__*/__webpack_require__.n(personal_information_index_module);
|
|
1194
1223
|
|
|
1195
1224
|
// CONCATENATED MODULE: ./src/components/personal-information/index.js
|
|
@@ -1817,7 +1846,7 @@ const TicketOwnedComponent = ({
|
|
|
1817
1846
|
|
|
1818
1847
|
/* harmony default export */ var ticket_owned = (TicketOwnedComponent);
|
|
1819
1848
|
// CONCATENATED MODULE: ./src/components/registration-lite.js
|
|
1820
|
-
const _excluded = ["loadSession", "setMarketingSettings", "changeStep", "removeReservedTicket", "reserveTicket", "payTicket", "onPurchaseComplete", "getTicketTypes", "getTaxesTypes", "getLoginCode", "passwordlessLogin", "goToLogin", "loginOptions", "reservation", "checkout", "ticketTypes", "taxTypes", "step", "passwordlessCodeSent", "passwordlessEmail", "passwordlessCode", "getPasswordlessCode", "passwordlessCodeError", "loginWithCode", "goToExtraQuestions", "goToEvent", "goToRegistration", "profileData", "summitData", "supportEmail", "ticketOwned", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError"];
|
|
1849
|
+
const _excluded = ["loadSession", "setMarketingSettings", "changeStep", "removeReservedTicket", "reserveTicket", "payTicket", "onPurchaseComplete", "getTicketTypes", "getTaxesTypes", "getLoginCode", "passwordlessLogin", "goToLogin", "loginOptions", "allowsNativeAuth", "allowsOtpAuth", "reservation", "checkout", "ticketTypes", "taxTypes", "step", "passwordlessCodeSent", "passwordlessEmail", "passwordlessCode", "getPasswordlessCode", "passwordlessCodeError", "loginWithCode", "goToExtraQuestions", "goToEvent", "goToRegistration", "profileData", "summitData", "supportEmail", "ticketOwned", "widgetLoading", "loading", "inPersonDisclaimer", "userProfile", "handleCompanyError"];
|
|
1821
1850
|
|
|
1822
1851
|
function registration_lite_ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1823
1852
|
|
|
@@ -1876,6 +1905,8 @@ const RegistrationLite = _ref => {
|
|
|
1876
1905
|
passwordlessLogin,
|
|
1877
1906
|
goToLogin,
|
|
1878
1907
|
loginOptions,
|
|
1908
|
+
allowsNativeAuth,
|
|
1909
|
+
allowsOtpAuth,
|
|
1879
1910
|
reservation,
|
|
1880
1911
|
checkout,
|
|
1881
1912
|
ticketTypes,
|
|
@@ -1988,6 +2019,8 @@ const RegistrationLite = _ref => {
|
|
|
1988
2019
|
className: general_module_default.a.stepsWrapper
|
|
1989
2020
|
}, !profileData && !passwordlessCodeSent && /*#__PURE__*/external_react_default.a.createElement(components_login, {
|
|
1990
2021
|
options: loginOptions,
|
|
2022
|
+
allowsNativeAuth: allowsNativeAuth,
|
|
2023
|
+
allowsOtpAuth: allowsOtpAuth,
|
|
1991
2024
|
login: provider => rest.authUser(provider),
|
|
1992
2025
|
getLoginCode: getLoginCode,
|
|
1993
2026
|
getPasswordlessCode: getPasswordlessCode
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "summit-registration-lite",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.82",
|
|
4
4
|
"description": "Summit Registration Lite",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"clean": "find . -name \"dist\" -type d -prune -exec rm -rf '{}' + & find . -name \"node_modules\" -type d -prune -exec rm -rf '{}' + && yarn",
|
|
7
8
|
"build-dev": "./node_modules/.bin/webpack --config webpack.dev.js",
|
|
8
9
|
"build": "./node_modules/.bin/webpack --config webpack.prod.js",
|
|
9
10
|
"serve": "webpack-dev-server --open --port=8888 --https --config webpack.dev.js",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"moment": "^2.22.2",
|
|
57
58
|
"moment-timezone": "^0.5.21",
|
|
58
59
|
"node-sass": "^4.13.1",
|
|
59
|
-
"openstack-uicore-foundation": "^3.0.
|
|
60
|
+
"openstack-uicore-foundation": "^3.0.58",
|
|
60
61
|
"optimize-css-assets-webpack-plugin": "^5.0.3",
|
|
61
62
|
"path": "^0.12.7",
|
|
62
63
|
"react": "^16.8.4",
|
|
@@ -104,7 +105,7 @@
|
|
|
104
105
|
"lodash": "^4.17.14",
|
|
105
106
|
"moment": "^2.22.2",
|
|
106
107
|
"moment-timezone": "^0.5.21",
|
|
107
|
-
"openstack-uicore-foundation": "^3.0.
|
|
108
|
+
"openstack-uicore-foundation": "^3.0.58",
|
|
108
109
|
"react": "^16.8.4",
|
|
109
110
|
"react-bootstrap": "^0.31.5",
|
|
110
111
|
"react-datetime": "^2.16.2",
|