summit-registration-lite 2.0.6 → 2.0.7

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/dist/index.css CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  .form___DoT3x{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0}.form___DoT3x div.fieldWrapper___wa1Ks{display:flex;width:48%;border-radius:5px;border:1px solid var(--color_primary);height:36px;padding:5px;display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.form___DoT3x div.fieldWrapper___wa1Ks:first-of-type{width:100%}.form___DoT3x div.fieldWrapper___wa1Ks:last-of-type{flex-direction:column}.form___DoT3x div.fieldWrapper___wa1Ks input{width:100%;background-color:transparent;border:none;padding:0}.form___DoT3x div.fieldWrapper___wa1Ks input:focus-visible{outline:none}.form___DoT3x div.fieldWrapper___wa1Ks i{position:relative;padding-right:5px}.form___DoT3x div.fieldWrapper___wa1Ks>div{width:100%;padding-left:5px}.form___DoT3x div.fieldWrapper___wa1Ks>div:first-of-type{width:95%}.form___DoT3x div.fieldWrapper___wa1Ks span{display:inline-block;color:#e5424d;font-size:14px;align-self:flex-start}.form___DoT3x input{width:48%;border-radius:5px;color:#3486cd;font-size:16px;height:36px;padding:5px;display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.form___DoT3x input::placeholder{color:var(--color_text_input_hints);font-size:16px}
10
10
 
11
- .title___ECoNz{font-weight:bold;cursor:pointer;display:flex;justify-content:space-between}.title___ECoNz div{font-weight:normal}.form___lDFka{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0 0}.form___lDFka>div{width:48%}.form___lDFka>div input{width:100%;border-radius:5px;border:1px solid var(--color_primary);height:36px;padding:5px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.form___lDFka>div input::placeholder{color:var(--color_text_input_hints)}.form___lDFka>div .readOnly___WRazF{opacity:0.6;cursor:default}.form___lDFka>div span{display:inline-block;color:#e5424d}.form___lDFka>div>:last-child{margin-bottom:5px}.form___lDFka .companies___kmGFB{width:48%}.form___lDFka .companies___kmGFB>div{position:relative;width:100%;border-radius:5px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.form___lDFka .companies___kmGFB>div::placeholder{color:var(--color_text_input_hints)}.form___lDFka .companies___kmGFB>div>div{height:100%;width:100%}.form___lDFka .companies___kmGFB>div>div>div{height:36px;padding:0px;border:1px solid var(--color_primary)}.form___lDFka .companies___kmGFB>div>div>div>div{height:36px}.form___lDFka .companies___kmGFB>div input{padding:5px;border:1px solid var(--color_primary);padding-right:0px !important;background-color:transparent}.form___lDFka .companies___kmGFB>div i{right:10px !important}.moreInfo___cQYdZ{display:inline-block;margin-top:10px}.moreInfoTooltip___lslgT{max-width:280px}.formErrors___dQQMe{margin-top:10px}.formErrors___dQQMe div+div{margin-top:10px}
11
+ .title___ECoNz{font-weight:bold;cursor:pointer;display:flex;justify-content:space-between}.title___ECoNz div{font-weight:normal}.form___lDFka{display:flex;flex-wrap:wrap;justify-content:space-between;margin:10px 0 0}.form___lDFka>div{width:48%}.form___lDFka>div input{width:100%;border-radius:5px;border:1px solid var(--color_primary);height:36px;padding:5px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.form___lDFka>div input::placeholder{color:var(--color_text_input_hints)}.form___lDFka>div .readOnly___WRazF{opacity:0.6;cursor:default}.form___lDFka>div span{display:inline-block;color:#e5424d}.form___lDFka>div>:last-child{margin-bottom:5px}.form___lDFka .companies___kmGFB{width:48%}.form___lDFka .companies___kmGFB>div{position:relative;width:100%;border-radius:5px;display:flex;justify-content:space-between;align-items:center;font-size:15px}.form___lDFka .companies___kmGFB>div::placeholder{color:var(--color_text_input_hints)}.form___lDFka .companies___kmGFB>div>div{height:100%;width:100%}.form___lDFka .companies___kmGFB>div>div>div{height:36px;padding:0px;border:1px solid var(--color_primary)}.form___lDFka .companies___kmGFB>div>div>div>div{height:36px}.form___lDFka .companies___kmGFB>div input{padding:5px;border:1px solid var(--color_primary);padding-right:0px !important;background-color:transparent}.form___lDFka .companies___kmGFB>div i{right:10px !important}.moreInfo___cQYdZ{display:inline-block;margin-top:10px}.moreInfoTooltip___lslgT{max-width:280px}.ticketQuantityNotice___L6gis{margin:10px 0 0 !important}.formErrors___dQQMe{margin-top:10px}.formErrors___dQQMe div+div{margin-top:10px}
12
12
 
13
13
  .title___DNZyl{font-weight:bold;cursor:pointer;display:flex;justify-content:space-between}.summary___quWdZ{text-align:right}.crossOut___QZ7dy{text-decoration:line-through}.discount___sEK_Q{color:green}.promo___F8lPO{font-weight:bold;display:flex;justify-content:flex-end}.form___aoo7w{display:flex;gap:10px;margin-top:10px}.dropdown____HWg0{flex:1 1 auto}.quantity___SIEQZ{flex-shrink:0}.quantity___SIEQZ input,.quantity___SIEQZ button{height:36px;text-align:center;border:1px solid var(--color_primary)}.quantity___SIEQZ input{padding:0 8px;width:48px !important}.quantity___SIEQZ input,.quantity___SIEQZ input:read-only{color:inherit;background-color:#fff;border:1px solid var(--color_primary)}.quantity___SIEQZ button{display:flex;align-items:center}.quantity___SIEQZ button:disabled,.quantity___SIEQZ button:disabled:hover{opacity:0.65;background:#dedede;border-color:#bebebe}.soldOut___Hatfr{height:36px;padding:0 16px;line-height:34px;font-weight:700px;background:#dedede;border:solid 1px #bebebe;border-radius:5px;opacity:0.65;font-weight:700;flex-shrink:0}.moreInfo___LmwOe{display:inline-block;margin-top:10px}.moreInfoTooltip___nOBf1{max-width:280px}.inPersonDisclaimer___PXGTz{margin-top:15px}
14
14
 
package/dist/index.js CHANGED
@@ -200,11 +200,12 @@ const reserveTicket = ({
200
200
  const access_token = await getAccessToken();
201
201
  const tickets = [...Array(ticketQuantity)].map(() => ({
202
202
  type_id: ticket.id,
203
- promo_code: promoCode || null,
204
- attendee_first_name: firstName,
205
- attendee_last_name: lastName,
206
- attendee_email: email
207
- }));
203
+ promo_code: promoCode || null
204
+ })); // Only set the attendee for the first ticket.
205
+
206
+ tickets[0].attendee_first_name = firstName;
207
+ tickets[0].attendee_last_name = lastName;
208
+ tickets[0].attendee_email = email;
208
209
  let params = {
209
210
  access_token,
210
211
  expand: 'tickets,tickets.owner,tickets.ticket_type,tickets.ticket_type.taxes'
@@ -1000,7 +1001,7 @@ const formatErrorMessage = string => {
1000
1001
  };
1001
1002
  ;// CONCATENATED MODULE: ./src/components/personal-information/index.module.scss
1002
1003
  // extracted by mini-css-extract-plugin
1003
- /* harmony default export */ const personal_information_index_module = ({"title":"title___ECoNz","form":"form___lDFka","readOnly":"readOnly___WRazF","companies":"companies___kmGFB","moreInfo":"moreInfo___cQYdZ","moreInfoTooltip":"moreInfoTooltip___lslgT","formErrors":"formErrors___dQQMe"});
1004
+ /* harmony default export */ const personal_information_index_module = ({"title":"title___ECoNz","form":"form___lDFka","readOnly":"readOnly___WRazF","companies":"companies___kmGFB","moreInfo":"moreInfo___cQYdZ","moreInfoTooltip":"moreInfoTooltip___lslgT","ticketQuantityNotice":"ticketQuantityNotice___L6gis","formErrors":"formErrors___dQQMe"});
1004
1005
  ;// CONCATENATED MODULE: ./src/components/personal-information/index.js
1005
1006
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1006
1007
 
@@ -1039,6 +1040,7 @@ const PersonalInfoComponent = ({
1039
1040
  userProfile,
1040
1041
  summitId,
1041
1042
  handleCompanyError,
1043
+ formValues,
1042
1044
  formErrors
1043
1045
  }) => {
1044
1046
  var _errors$email, _errors$email2;
@@ -1123,7 +1125,9 @@ const PersonalInfoComponent = ({
1123
1125
  }, toggleAnimation)
1124
1126
  }, /*#__PURE__*/external_react_default().createElement("div", {
1125
1127
  ref: ref
1126
- }, /*#__PURE__*/external_react_default().createElement("form", {
1128
+ }, formValues.ticketQuantity > 1 && /*#__PURE__*/external_react_default().createElement("div", {
1129
+ className: `${personal_information_index_module.ticketQuantityNotice} alert alert-info`
1130
+ }, "Please note that 1 ticket from this order will be automatically assigned to you; the rest will remain unassigned, with the option to re-assign all tickets after purchase."), /*#__PURE__*/external_react_default().createElement("form", {
1127
1131
  id: "personal-info-form",
1128
1132
  onSubmit: handleSubmit(onSubmit),
1129
1133
  className: personal_information_index_module.form,
@@ -1969,6 +1973,7 @@ const RegistrationLite = _ref => {
1969
1973
  personalInformation
1970
1974
  })),
1971
1975
  handleCompanyError: handleCompanyError,
1976
+ formValues: formValues,
1972
1977
  formErrors: formErrors
1973
1978
  }), /*#__PURE__*/external_react_default().createElement(external_react_spring_namespaceObject.animated.div, {
1974
1979
  style: registration_lite_objectSpread({}, toggleAnimation)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "summit-registration-lite",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "description": "Summit Registration Lite",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/.babelrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "env": {
3
- "production": {
4
- "plugins": [
5
- ["react-remove-properties", { "properties": ["data-testid"] }]
6
- ]
7
- }
8
- }
9
- }
package/.editorconfig DELETED
@@ -1,40 +0,0 @@
1
- # http://editorConfig.org
2
-
3
- root = true
4
-
5
- [*]
6
- charset = utf-8
7
- end_of_line = lf
8
- indent_style = space
9
- insert_final_newline = true
10
- tab_width = 4
11
- trim_trailing_whitespace = true
12
-
13
- [{*.css,*.scss}]
14
- indent_size = 2
15
-
16
- [{*.js,*.jsx,*.tsx,*.ts,*.mjs}]
17
- indent_size = 4
18
-
19
- [*.json]
20
- indent_size = 2
21
-
22
- [*.md,*.mdx]
23
- indent_size = 4
24
- trim_trailing_whitespace = false
25
-
26
- [*.mdx]
27
- indent_size = 2
28
- trim_trailing_whitespace = false
29
-
30
- [.*rc]
31
- indent_size = 2
32
-
33
- [*.{yml,yaml}]
34
- indent_size = 2
35
-
36
- [Makefile]
37
- indent_style = tab
38
-
39
- [Dockerfile]
40
- indent_size = 2
package/.prettierrc DELETED
@@ -1,6 +0,0 @@
1
- {
2
- "semi": true,
3
- "tabWidth": 2,
4
- "singleQuote": true,
5
- "arrowParens": "avoid"
6
- }
package/babel.config.js DELETED
@@ -1,5 +0,0 @@
1
- // babel.config.js
2
- module.exports = {
3
- presets: ['@babel/preset-env', '@babel/preset-react'],
4
- plugins: ["@babel/plugin-proposal-class-properties"],
5
- };
package/jest-setup.js DELETED
@@ -1,3 +0,0 @@
1
- import 'regenerator-runtime/runtime'
2
-
3
- jest.setTimeout(10000); // in milliseconds