@sheerid/jslib 1.80.0 → 1.81.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 +5 -5
- package/es5/messages_ar.bundle.js +5 -5
- package/es5/messages_bg.bundle.js +5 -5
- package/es5/messages_cs.bundle.js +5 -5
- package/es5/messages_da.bundle.js +5 -5
- package/es5/messages_de.bundle.js +5 -5
- package/es5/messages_el.bundle.js +5 -5
- package/es5/messages_en-GB.bundle.js +5 -5
- package/es5/messages_es-ES.bundle.js +5 -5
- package/es5/messages_es.bundle.js +5 -5
- package/es5/messages_fi.bundle.js +5 -5
- package/es5/messages_fr-CA.bundle.js +5 -5
- package/es5/messages_fr.bundle.js +5 -5
- package/es5/messages_ga.bundle.js +5 -5
- package/es5/messages_hr.bundle.js +5 -5
- package/es5/messages_hu.bundle.js +5 -5
- package/es5/messages_id.bundle.js +5 -5
- package/es5/messages_it.bundle.js +5 -5
- package/es5/messages_iw.bundle.js +5 -5
- package/es5/messages_ja.bundle.js +5 -5
- package/es5/messages_ko.bundle.js +5 -5
- package/es5/messages_lo.bundle.js +5 -5
- package/es5/messages_lt.bundle.js +5 -5
- package/es5/messages_ms.bundle.js +5 -5
- package/es5/messages_nl.bundle.js +5 -5
- package/es5/messages_no.bundle.js +5 -5
- package/es5/messages_pl.bundle.js +5 -5
- package/es5/messages_pt-BR.bundle.js +5 -5
- package/es5/messages_pt.bundle.js +5 -5
- package/es5/messages_ru.bundle.js +5 -5
- package/es5/messages_sk.bundle.js +5 -5
- package/es5/messages_sl.bundle.js +5 -5
- package/es5/messages_sr.bundle.js +5 -5
- package/es5/messages_sv.bundle.js +5 -5
- package/es5/messages_th.bundle.js +5 -5
- package/es5/messages_tr.bundle.js +5 -5
- package/es5/messages_zh-HK.bundle.js +5 -5
- package/es5/messages_zh.bundle.js +5 -5
- package/manifest.json +46 -46
- package/package.json +1 -1
- package/sheerid-requestOrg.css +4 -4
- package/sheerid-requestOrg.js +10 -10
- package/sheerid-requestOrg.js.map +1 -1
- package/sheerid-utils.js +8 -8
- package/sheerid-utils.js.map +1 -1
- package/sheerid.css +4 -4
- package/sheerid.js +12 -12
- package/sheerid.js.map +1 -1
- package/sheerides6.js +103 -68
- package/sheerides6.js.map +1 -1
- package/src/es6.d.ts +2 -1
- package/src/lib/types/types.d.ts +2 -0
- package/src/lib/utils/stepComponentHelpers/stepComponentHelpers.d.ts +9 -7
- package/types-reference.zip +0 -0
package/src/es6.d.ts
CHANGED
|
@@ -79,7 +79,7 @@ export { SSOPendingComponent } from './components/StepPending/SSOPendingComponen
|
|
|
79
79
|
export { ReviewPendingComponent } from './components/StepPending/ReviewPendingComponent';
|
|
80
80
|
export { SsnChoice } from './components/StepSocialSecurityNumber/SsnChoice';
|
|
81
81
|
export { RewardsRemainingComponent } from './components/RewardsRemaining/RewardsRemainingComponent';
|
|
82
|
-
export { handleEmailOnKeyDown, submitForm, updateFieldValidationErrorsByFieldId, updateViewModelOrganization, getAvailableCountryChoices, getAvailableLocaleChoices, getFirstErroredFieldId, getFieldDisplayOrderFromRefs, handleCountryOnKeyDown, getDefaultCountryChoice, shouldCollectAddressFields, produceDraftViewModel, getAvailableMilitaryStatuses, populateViewModelFromQueryParams, updateFieldValidationErrors, getAvailableStateChoices, getEstAndMaxReviewTimes, } from './lib/utils/stepComponentHelpers/stepComponentHelpers';
|
|
82
|
+
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';
|
|
83
83
|
export { getSafe, deepClone, deepMerge } from './lib/utils/objects';
|
|
84
84
|
export { formatTwoDigitValues } from './lib/utils/datesFormat/formatTwoDigitValues';
|
|
85
85
|
export { carrierConsentValueValidator, phoneNumberValidator, postalCodeValidator } from './components/StepAgePersonalInfo/AgeSegmentValidation';
|
|
@@ -123,3 +123,4 @@ export { StepGeneralIdentityPersonalInfoComponent } from './components/StepIdent
|
|
|
123
123
|
export { StepHybridIdentityPersonalInfoComponent } from './components/StepIdentityPersonalInfo/StepHybridIdentityPersonalInfoComponent';
|
|
124
124
|
export { LinkExternal } from './components/LinkExternal';
|
|
125
125
|
export { collectDeviceProfile } from './lib/fraud/fraud';
|
|
126
|
+
export { recordEvent, recordViewModelChange, recordVerificationResponse, setDimension, setGaDimensionIsTest, isTestEmailDomains, } from './lib/GoogleAnalytics/ga';
|
package/src/lib/types/types.d.ts
CHANGED
|
@@ -401,6 +401,8 @@ export declare type AgePersonalInfoRequest = {
|
|
|
401
401
|
postalCode: string;
|
|
402
402
|
phoneNumber: PhoneNumber;
|
|
403
403
|
country: Country;
|
|
404
|
+
city?: string;
|
|
405
|
+
address1?: string;
|
|
404
406
|
} & WithCoreFields;
|
|
405
407
|
export declare type AgePersonalInfoViewModel = AgePersonalInfoRequest & WithLocaleAndCountry & WithFieldsToSkipValidation;
|
|
406
408
|
/**
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import { InjectedIntl } from 'react-intl';
|
|
2
|
-
import { FieldId, FieldValidationErrors, Organization, VerificationService, FieldContent, ExtendedFieldId, InputSelectOnKeyDown, FormSelectChoice, Country, ProgramTheme, Locale, ViewModel, State, PendingResponse, DocUploadResponse } from '../../types/types';
|
|
3
|
-
import { VerificationStepsEnum } from '../../types/runtimeTypes';
|
|
2
|
+
import { FieldId, FieldValidationErrors, Organization, VerificationService, FieldContent, ExtendedFieldId, InputSelectOnKeyDown, FormSelectChoice, Country, ProgramTheme, Locale, ViewModel, State, PendingResponse, DocUploadResponse, FieldDescription, FirstResponderStatus, MilitaryStatus, MedicalProfessionalStatus } from '../../types/types';
|
|
3
|
+
import { VerificationStepsEnum, MilitaryStatusDefaultMessagesEnum, FirstResponderStatusDefaultMessagesEnum, MedicalProfessionalStatusDefaultMessagesEnum } from '../../types/runtimeTypes';
|
|
4
4
|
export declare const updateViewModelOrganization: (organization: Organization, verificationService: VerificationService) => void;
|
|
5
5
|
export declare const populateViewModelFromQueryParams: (verificationService: VerificationService) => void;
|
|
6
|
-
export declare const updateFieldValidationErrorsByFieldId: (fieldId: FieldId | ExtendedFieldId, value: FieldContent, verificationService: VerificationService) => void;
|
|
7
6
|
export declare const updateFieldValidationErrors: (fieldValidationErrors: FieldValidationErrors, verificationService: VerificationService) => void;
|
|
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
|
+
export declare const getStatusLabel: (intl: InjectedIntl, status: FirstResponderStatus | MilitaryStatus | MedicalProfessionalStatus | undefined, defaultMessages: typeof MilitaryStatusDefaultMessagesEnum | typeof FirstResponderStatusDefaultMessagesEnum | typeof MedicalProfessionalStatusDefaultMessagesEnum) => string;
|
|
9
10
|
export declare const getAvailableMilitaryStatuses: (verificationService: VerificationService, intl: InjectedIntl) => FormSelectChoice[];
|
|
10
11
|
/**
|
|
11
12
|
* @private
|
|
12
13
|
*/
|
|
13
14
|
export declare const getFieldDisplayOrderFromRefs: () => FieldId[] | ExtendedFieldId[];
|
|
14
|
-
/**
|
|
15
|
-
* @private
|
|
16
|
-
*/
|
|
17
|
-
export declare const getFirstErroredFieldId: (fieldDisplayOrder: FieldId[] | ExtendedFieldId[], fieldValidationErrors: FieldValidationErrors) => FieldId | ExtendedFieldId;
|
|
18
15
|
/**
|
|
19
16
|
* HD-638 - focus on year, rather than month (which is an open <select> that covers error msg)
|
|
20
17
|
*/
|
|
21
18
|
export declare const adjustFirstErroredFieldId: (firstErroredFieldId: FieldId | ExtendedFieldId) => FieldId | ExtendedFieldId;
|
|
19
|
+
/**
|
|
20
|
+
* @private
|
|
21
|
+
*/
|
|
22
|
+
export declare const getFirstErroredFieldId: (fieldDisplayOrder: FieldId[] | ExtendedFieldId[], fieldValidationErrors: FieldValidationErrors) => FieldId | ExtendedFieldId;
|
|
22
23
|
/**
|
|
23
24
|
* @private
|
|
24
25
|
*/
|
|
@@ -45,6 +46,7 @@ export declare const getEstAndMaxReviewTimes: (verificationResponse: DocUploadRe
|
|
|
45
46
|
*/
|
|
46
47
|
export declare const getAvailableCountryChoices: (programTheme: ProgramTheme, intl: InjectedIntl) => FormSelectChoice<Country, string>[];
|
|
47
48
|
export declare const getAvailableStateChoices: (programTheme: ProgramTheme, intl: InjectedIntl) => FormSelectChoice<State, string>[];
|
|
49
|
+
export declare const produceDraftViewModelWithRequiredFields: <T extends ViewModel>(previousModel: T, newRequiredFields: FieldDescription[], conditionalRequiredFieldKeys: (keyof T)[]) => T;
|
|
48
50
|
/**
|
|
49
51
|
* @private
|
|
50
52
|
*/
|
package/types-reference.zip
CHANGED
|
Binary file
|