@sheerid/jslib 1.150.0 → 1.152.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 +43 -43
- package/package.json +1 -1
- package/sheerid-requestOrg.css +4 -4
- package/sheerid-requestOrg.js +4 -4
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +4 -4
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +6 -6
- package/sheerid.js.map +1 -1
- package/sheerides6.js +56 -13
- package/sheerides6.js.map +1 -1
- package/src/components/StepMilitaryPersonalInfo/militaryStepHelpers.d.ts +0 -5
- package/src/es6.d.ts +2 -2
- package/src/lib/frames/frameMessages.d.ts +7 -2
- package/src/lib/installScript/iframe.d.ts +2 -1
- package/src/lib/installScript/modal.d.ts +2 -1
- package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +5 -0
- package/types-reference.zip +0 -0
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
import { VerificationService, FormSelectChoice, ActiveMilitaryPersonalInfoViewModel, InactiveMilitaryPersonalInfoViewModel, MilitaryStatus, Organization } from "../../lib/types/types";
|
|
2
2
|
export declare const orgsInStatus: (status: MilitaryStatus) => (org: Organization) => boolean;
|
|
3
|
-
export declare const orgToOption: (org: Organization) => {
|
|
4
|
-
value: number;
|
|
5
|
-
label: string;
|
|
6
|
-
country: "BT" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AN" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BM" | "BN" | "BO" | "BR" | "BS" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
|
|
7
|
-
};
|
|
8
3
|
export declare const updateMilitaryViewModel: (key: keyof ActiveMilitaryPersonalInfoViewModel | keyof InactiveMilitaryPersonalInfoViewModel, value: any, verificationService: VerificationService, availableStatuses: FormSelectChoice[]) => ActiveMilitaryPersonalInfoViewModel | InactiveMilitaryPersonalInfoViewModel;
|
package/src/es6.d.ts
CHANGED
|
@@ -84,12 +84,12 @@ export { SSOPendingComponent } from "./components/StepPending/SSOPendingComponen
|
|
|
84
84
|
export { ReviewPendingComponent } from "./components/StepPending/ReviewPendingComponent";
|
|
85
85
|
export { SsnChoice } from "./components/StepSocialSecurityNumber/SsnChoice";
|
|
86
86
|
export { RewardsRemainingComponent } from "./components/RewardsRemaining/RewardsRemainingComponent";
|
|
87
|
-
export { handleEmailOnKeyDown, submitForm, updateFieldValidationErrorsByFieldId, updateViewModelOrganization, getAvailableCountryChoices, getAvailableLocaleChoices, getFirstErroredFieldId, getFieldDisplayOrderFromRefs, handleCountryOnKeyDown, getDefaultCountryChoice, shouldCollectAddressFields, produceDraftViewModel, getAvailableMilitaryStatuses, populateViewModelFromQueryParams, updateFieldValidationErrors, getAvailableStateChoices, getEstAndMaxReviewTimes, produceDraftViewModelWithRequiredFields, getStatusLabel, } from "./lib/utils/stepComponentHelpers/stepComponentHelpers";
|
|
87
|
+
export { handleEmailOnKeyDown, submitForm, updateFieldValidationErrorsByFieldId, updateViewModelOrganization, getAvailableCountryChoices, getAvailableLocaleChoices, getFirstErroredFieldId, getFieldDisplayOrderFromRefs, handleCountryOnKeyDown, getDefaultCountryChoice, shouldCollectAddressFields, produceDraftViewModel, getAvailableMilitaryStatuses, populateViewModelFromQueryParams, updateFieldValidationErrors, getAvailableStateChoices, getEstAndMaxReviewTimes, produceDraftViewModelWithRequiredFields, getStatusLabel, orgToOption, } from "./lib/utils/stepComponentHelpers/stepComponentHelpers";
|
|
88
88
|
export { getSafe, deepClone, deepMerge } from "./lib/utils/objects";
|
|
89
89
|
export { formatTwoDigitValues } from "./lib/utils/datesFormat/formatTwoDigitValues";
|
|
90
90
|
export { carrierConsentValueValidator, phoneNumberValidator, postalCodeValidator, } from "./components/StepAgePersonalInfo/AgeSegmentValidation";
|
|
91
91
|
export { StepActiveMilitaryPersonalInfoComponent } from "./components/StepMilitaryPersonalInfo/StepActiveMilitaryPersonalInfoComponent";
|
|
92
|
-
export { updateMilitaryViewModel, orgsInStatus,
|
|
92
|
+
export { updateMilitaryViewModel, orgsInStatus, } from "./components/StepMilitaryPersonalInfo/militaryStepHelpers";
|
|
93
93
|
export { VerificationApiClient } from "./lib/ServerApi/VerificationApiClient";
|
|
94
94
|
export { resetStore, refreshStore } from "./lib/VerificationService/VerificationServiceStore";
|
|
95
95
|
export { usePollingInterval } from "./lib/utils/usePollingInterval/usePollingInterval";
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { ViewModel } from "../types/types";
|
|
1
|
+
import { Options, ViewModel } from "../types/types";
|
|
2
2
|
export declare const listenToSheerIdFrame: (callback: Function) => void;
|
|
3
3
|
export declare const speakToOuterFrame: (message: object) => void;
|
|
4
|
-
export declare type
|
|
4
|
+
export declare type InstallSetViewModelPageEvent = {
|
|
5
5
|
action: "setViewModel";
|
|
6
6
|
viewModel: Partial<ViewModel> | ViewModel;
|
|
7
7
|
};
|
|
8
|
+
export declare type InstallSetOptionsPageEvent = {
|
|
9
|
+
action: "setOptions";
|
|
10
|
+
options: Options;
|
|
11
|
+
};
|
|
12
|
+
export declare type InstallPageEvent = InstallSetViewModelPageEvent | InstallSetOptionsPageEvent;
|
|
8
13
|
export declare const listenToInstallPage: (callback: (event: MessageEvent) => void) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViewModel } from "../types/types";
|
|
1
|
+
import { Options, ViewModel } from "../types/types";
|
|
2
2
|
declare type IframeOptions = {
|
|
3
3
|
className: string;
|
|
4
4
|
title: string;
|
|
@@ -20,6 +20,7 @@ declare class Iframe {
|
|
|
20
20
|
onLoad(): void;
|
|
21
21
|
addVerificationSizeUpdatesListener(): void;
|
|
22
22
|
setViewModel(viewModel: Partial<ViewModel> | ViewModel): void;
|
|
23
|
+
setOptions(options: Options): void;
|
|
23
24
|
setInstallType(installType: string): void;
|
|
24
25
|
init(): void;
|
|
25
26
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IframeUserConfiguration, ViewModel } from "../types/types";
|
|
1
|
+
import { IframeUserConfiguration, Options, ViewModel } from "../types/types";
|
|
2
2
|
import Iframe from "./iframe";
|
|
3
3
|
declare class Modal {
|
|
4
4
|
verificationUrl: string;
|
|
@@ -22,5 +22,6 @@ declare class Modal {
|
|
|
22
22
|
displayModal(): void;
|
|
23
23
|
init(): void;
|
|
24
24
|
setViewModel(viewModel: Partial<ViewModel> | ViewModel): void;
|
|
25
|
+
setOptions(options: Options): void;
|
|
25
26
|
}
|
|
26
27
|
export default Modal;
|
|
@@ -7,6 +7,11 @@ export declare const updateFieldValidationErrors: (fieldValidationErrors: FieldV
|
|
|
7
7
|
export declare const updateFieldValidationErrorsByFieldId: (fieldId: FieldId | ExtendedFieldId, value: FieldContent, verificationService: VerificationService) => void;
|
|
8
8
|
export declare const shouldCollectAddressFields: (countryChoice: FormSelectChoice<Country, string>, countries: Country[]) => boolean;
|
|
9
9
|
export declare const getStatusLabel: (intl: InjectedIntl, status: FirstResponderStatus | MilitaryStatus | MedicalProfessionalStatus | undefined, defaultMessages: typeof MilitaryStatusDefaultMessagesEnum | typeof FirstResponderStatusDefaultMessagesEnum | typeof MedicalProfessionalStatusDefaultMessagesEnum) => string;
|
|
10
|
+
export declare const orgToOption: (org: Organization) => {
|
|
11
|
+
value: number;
|
|
12
|
+
label: string;
|
|
13
|
+
country: "BT" | "AD" | "AE" | "AF" | "AG" | "AI" | "AL" | "AM" | "AN" | "AO" | "AR" | "AS" | "AT" | "AU" | "AW" | "AZ" | "BA" | "BB" | "BD" | "BE" | "BF" | "BG" | "BH" | "BI" | "BJ" | "BM" | "BN" | "BO" | "BR" | "BS" | "BV" | "BW" | "BY" | "BZ" | "CA" | "CD" | "CF" | "CG" | "CH" | "CI" | "CK" | "CL" | "CM" | "CN" | "CO" | "CR" | "CU" | "CV" | "CY" | "CZ" | "DE" | "DJ" | "DK" | "DM" | "DO" | "DZ" | "EC" | "EE" | "EG" | "EH" | "ER" | "ES" | "ET" | "FI" | "FJ" | "FK" | "FM" | "FO" | "FR" | "GA" | "GB" | "GD" | "GE" | "GF" | "GH" | "GI" | "GL" | "GM" | "GN" | "GP" | "GQ" | "GR" | "GS" | "GT" | "GU" | "GW" | "GY" | "HK" | "HM" | "HN" | "HR" | "HT" | "HU" | "ID" | "IE" | "IL" | "IN" | "IO" | "IQ" | "IR" | "IS" | "IT" | "JM" | "JO" | "JP" | "KE" | "KG" | "KH" | "KI" | "KM" | "KN" | "KP" | "KR" | "KW" | "KY" | "KZ" | "LA" | "LB" | "LC" | "LI" | "LK" | "LR" | "LS" | "LT" | "LU" | "LV" | "LY" | "MA" | "MC" | "MD" | "ME" | "MG" | "MH" | "MK" | "ML" | "MM" | "MN" | "MO" | "MP" | "MQ" | "MR" | "MS" | "MT" | "MU" | "MV" | "MW" | "MX" | "MY" | "MZ" | "NA" | "NC" | "NE" | "NF" | "NG" | "NI" | "NL" | "NO" | "NP" | "NR" | "NU" | "NZ" | "OM" | "PA" | "PE" | "PF" | "PG" | "PH" | "PK" | "PL" | "PM" | "PN" | "PR" | "PS" | "PT" | "PW" | "PY" | "QA" | "RE" | "RO" | "RS" | "RU" | "RW" | "SA" | "SB" | "SC" | "SD" | "SE" | "SG" | "SH" | "SI" | "SK" | "SL" | "SM" | "SN" | "SO" | "SR" | "SS" | "ST" | "SV" | "SY" | "SZ" | "TC" | "TD" | "TF" | "TG" | "TH" | "TJ" | "TK" | "TL" | "TM" | "TN" | "TO" | "TR" | "TT" | "TV" | "TW" | "TZ" | "UA" | "UG" | "UM" | "US" | "UY" | "UZ" | "VA" | "VC" | "VE" | "VG" | "VI" | "VN" | "VU" | "WF" | "WS" | "XK" | "YE" | "YT" | "ZA" | "ZM" | "ZW";
|
|
14
|
+
};
|
|
10
15
|
export declare const getAvailableMilitaryStatuses: (verificationService: VerificationService, intl: InjectedIntl) => FormSelectChoice[];
|
|
11
16
|
/**
|
|
12
17
|
* @private
|
package/types-reference.zip
CHANGED
|
Binary file
|