@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.
- package/es5/Tmetrix.bundle.js +4 -4
- package/es5/messages_ar.bundle.js +4 -4
- package/es5/messages_bg.bundle.js +4 -4
- package/es5/messages_cs.bundle.js +4 -4
- package/es5/messages_da.bundle.js +4 -4
- package/es5/messages_de.bundle.js +4 -4
- package/es5/messages_el.bundle.js +4 -4
- package/es5/messages_en-GB.bundle.js +4 -4
- package/es5/messages_es-ES.bundle.js +4 -4
- package/es5/messages_es.bundle.js +4 -4
- package/es5/messages_fi.bundle.js +4 -4
- package/es5/messages_fr-CA.bundle.js +4 -4
- package/es5/messages_fr.bundle.js +4 -4
- package/es5/messages_ga.bundle.js +4 -4
- package/es5/messages_hr.bundle.js +4 -4
- package/es5/messages_hu.bundle.js +4 -4
- package/es5/messages_id.bundle.js +4 -4
- package/es5/messages_it.bundle.js +4 -4
- package/es5/messages_iw.bundle.js +4 -4
- package/es5/messages_ja.bundle.js +4 -4
- package/es5/messages_ko.bundle.js +4 -4
- package/es5/messages_lo.bundle.js +4 -4
- package/es5/messages_lt.bundle.js +4 -4
- package/es5/messages_ms.bundle.js +4 -4
- package/es5/messages_nl.bundle.js +4 -4
- package/es5/messages_no.bundle.js +4 -4
- package/es5/messages_pl.bundle.js +4 -4
- package/es5/messages_pt-BR.bundle.js +4 -4
- package/es5/messages_pt.bundle.js +4 -4
- package/es5/messages_ru.bundle.js +4 -4
- package/es5/messages_sk.bundle.js +4 -4
- package/es5/messages_sl.bundle.js +4 -4
- package/es5/messages_sr.bundle.js +4 -4
- package/es5/messages_sv.bundle.js +4 -4
- package/es5/messages_th.bundle.js +4 -4
- package/es5/messages_tr.bundle.js +4 -4
- package/es5/messages_zh-HK.bundle.js +4 -4
- package/es5/messages_zh.bundle.js +4 -4
- package/manifest.json +46 -46
- package/package.json +1 -1
- package/sheerid-requestOrg.css +4 -4
- package/sheerid-requestOrg.js +9 -9
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +7 -7
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +11 -11
- package/sheerid.js.map +1 -1
- package/sheerides6.js +8 -0
- package/sheerides6.js.map +1 -1
- 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
|
}
|