@sheerid/jslib 1.128.0 → 1.129.0

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.
Files changed (51) hide show
  1. package/es5/Tmetrix.bundle.js +4 -4
  2. package/es5/messages_ar.bundle.js +4 -4
  3. package/es5/messages_bg.bundle.js +4 -4
  4. package/es5/messages_cs.bundle.js +4 -4
  5. package/es5/messages_da.bundle.js +4 -4
  6. package/es5/messages_de.bundle.js +4 -4
  7. package/es5/messages_el.bundle.js +4 -4
  8. package/es5/messages_en-GB.bundle.js +4 -4
  9. package/es5/messages_es-ES.bundle.js +4 -4
  10. package/es5/messages_es.bundle.js +4 -4
  11. package/es5/messages_fi.bundle.js +4 -4
  12. package/es5/messages_fr-CA.bundle.js +4 -4
  13. package/es5/messages_fr.bundle.js +4 -4
  14. package/es5/messages_ga.bundle.js +4 -4
  15. package/es5/messages_hr.bundle.js +4 -4
  16. package/es5/messages_hu.bundle.js +4 -4
  17. package/es5/messages_id.bundle.js +4 -4
  18. package/es5/messages_it.bundle.js +4 -4
  19. package/es5/messages_iw.bundle.js +4 -4
  20. package/es5/messages_ja.bundle.js +4 -4
  21. package/es5/messages_ko.bundle.js +4 -4
  22. package/es5/messages_lo.bundle.js +4 -4
  23. package/es5/messages_lt.bundle.js +4 -4
  24. package/es5/messages_ms.bundle.js +4 -4
  25. package/es5/messages_nl.bundle.js +4 -4
  26. package/es5/messages_no.bundle.js +4 -4
  27. package/es5/messages_pl.bundle.js +4 -4
  28. package/es5/messages_pt-BR.bundle.js +4 -4
  29. package/es5/messages_pt.bundle.js +4 -4
  30. package/es5/messages_ru.bundle.js +4 -4
  31. package/es5/messages_sk.bundle.js +4 -4
  32. package/es5/messages_sl.bundle.js +4 -4
  33. package/es5/messages_sr.bundle.js +4 -4
  34. package/es5/messages_sv.bundle.js +4 -4
  35. package/es5/messages_th.bundle.js +4 -4
  36. package/es5/messages_tr.bundle.js +4 -4
  37. package/es5/messages_zh-HK.bundle.js +4 -4
  38. package/es5/messages_zh.bundle.js +4 -4
  39. package/manifest.json +46 -46
  40. package/package.json +1 -1
  41. package/sheerid-requestOrg.css +4 -4
  42. package/sheerid-requestOrg.js +9 -9
  43. package/sheerid-requestOrg.js.map +1 -1
  44. package/sheerid-utils.js +7 -7
  45. package/sheerid-utils.js.map +1 -1
  46. package/sheerid.css +4 -4
  47. package/sheerid.js +11 -11
  48. package/sheerid.js.map +1 -1
  49. package/sheerides6.js +8 -0
  50. package/sheerides6.js.map +1 -1
  51. package/types-reference.zip +0 -0
package/sheerides6.js CHANGED
@@ -17247,6 +17247,7 @@ const BaseCountryComponentWrapper = ({ verificationService, viewModelDraftDecora
17247
17247
  logger.warn("nextFocusField prop is deprecated");
17248
17248
  }
17249
17249
  const countryChoices = getAvailableCountryChoices(verificationService.programTheme, intl);
17250
+ const countryQueryParam = getSafe(() => getQueryParam("country").toUpperCase());
17250
17251
  const defaultCountryChoice = getDefaultCountryChoice(countryChoices);
17251
17252
  const { fieldValidationErrors } = verificationService;
17252
17253
  const hasMultipleCountries = countryChoices.length > 1;
@@ -17293,6 +17294,13 @@ const BaseCountryComponentWrapper = ({ verificationService, viewModelDraftDecora
17293
17294
  updateFieldValidationErrors(updatedFieldValidationErrors, verificationService);
17294
17295
  resetViewModelOrganization(verificationService);
17295
17296
  }, [verificationService.viewModel.countryChoice]);
17297
+ // sets initial country selection based on optional query string param (e.g. ?country=GB)
17298
+ React.useEffect(() => {
17299
+ const countryChoice = countryChoices.find((country) => country.value === countryQueryParam);
17300
+ if (countryChoice) {
17301
+ updateCountryChoice(countryChoice);
17302
+ }
17303
+ }, [countryQueryParam]);
17296
17304
  if (!hasMultipleCountries) {
17297
17305
  return null;
17298
17306
  }