summit-registration-lite 5.0.8 → 5.0.10

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.js CHANGED
@@ -1910,6 +1910,9 @@ const StripeForm = ({
1910
1910
  });
1911
1911
 
1912
1912
  if (token) {
1913
+ cardElement.update({
1914
+ disabled: true
1915
+ });
1913
1916
  payTicket(provider, {
1914
1917
  token,
1915
1918
  stripe,
@@ -2172,9 +2175,11 @@ const PersonalInfoComponent = ({
2172
2175
  showCompanyInput = true,
2173
2176
  companyDDLPlaceholder
2174
2177
  }) => {
2178
+ const initialFirstName = userProfile.given_name || (invitation ? invitation.first_name : '');
2179
+ const initialLastName = userProfile.family_name || (invitation ? invitation.last_name : '');
2175
2180
  const [personalInfo, setPersonalInfo] = (0,external_react_.useState)({
2176
- firstName: userProfile.given_name || (invitation ? invitation.first_name : ''),
2177
- lastName: userProfile.family_name || (invitation ? invitation.last_name : ''),
2181
+ firstName: initialFirstName,
2182
+ lastName: initialLastName,
2178
2183
  email: userProfile.email || '',
2179
2184
  company: {
2180
2185
  id: null,
@@ -2276,7 +2281,9 @@ const PersonalInfoComponent = ({
2276
2281
  }, /*#__PURE__*/external_react_default().createElement("input", personal_information_extends({
2277
2282
  type: "text",
2278
2283
  placeholder: "First name *",
2279
- defaultValue: personalInfo.firstName || ''
2284
+ defaultValue: personalInfo.firstName || '',
2285
+ readOnly: initialLastName !== '',
2286
+ className: initialLastName !== '' ? personal_information_index_module.readOnly : ''
2280
2287
  }, register("firstName", {
2281
2288
  required: true,
2282
2289
  maxLength: 80
@@ -2292,7 +2299,9 @@ const PersonalInfoComponent = ({
2292
2299
  }, /*#__PURE__*/external_react_default().createElement("input", personal_information_extends({
2293
2300
  type: "text",
2294
2301
  placeholder: "Last name *",
2295
- defaultValue: personalInfo.lastName || ''
2302
+ defaultValue: personalInfo.lastName || '',
2303
+ readOnly: initialLastName !== '',
2304
+ className: initialLastName !== '' ? personal_information_index_module.readOnly : ''
2296
2305
  }, register("lastName", {
2297
2306
  required: true,
2298
2307
  maxLength: 100
@@ -2325,8 +2334,8 @@ const PersonalInfoComponent = ({
2325
2334
  }, "The email is invalid.")), showCompanyInput && /*#__PURE__*/external_react_default().createElement("div", {
2326
2335
  className: personal_information_index_module.fieldWrapper
2327
2336
  }, /*#__PURE__*/external_react_default().createElement("div", null, /*#__PURE__*/external_react_default().createElement(components_namespaceObject.RegistrationCompanyInput, {
2328
- id: "company",
2329
- name: "company",
2337
+ id: "reg-comp-input",
2338
+ name: "reg-comp-input",
2330
2339
  "data-testid": "company",
2331
2340
  styles: customStyles,
2332
2341
  summitId: summitId,